frappe.ui.form.on("Material Transfer", "validate", function(frm, cdt, cdn) {
var t=cur_frm.doc.material_transfer_type ;
default_transit_warehouse = 'aa'
frappe.call({
method: "frappe.client.get_value",
async:false,
args: {
doctype: "Company",
fieldname: "default_transit_warehouse",
filters: { name: cur_frm.doc.company },
},
callback: function(res){
if (res && res.message){
default_transit_warehouse=res.message['default_transit_warehouse']
}
}
});
});
var t=cur_frm.doc.material_transfer_type ;
default_transit_warehouse = 'aa'
frappe.call({
method: "frappe.client.get_value",
async:false,
args: {
doctype: "Company",
fieldname: "default_transit_warehouse",
filters: { name: cur_frm.doc.company },
},
callback: function(res){
if (res && res.message){
default_transit_warehouse=res.message['default_transit_warehouse']
}
}
});
});
No comments:
Post a Comment