[Fix] - making customer/supplier field manadatory on order type condition
This commit is contained in:
parent
e2bb950012
commit
01f8a4966a
@ -51,11 +51,13 @@ frappe.ui.form.on('Blanket Order', {
|
||||
|
||||
set_tc_name_filter: function(frm) {
|
||||
if (frm.doc.blanket_order_type === 'Selling') {
|
||||
frm.set_df_property("customer","reqd", 1)
|
||||
frm.set_query("tc_name", function() {
|
||||
return { filters: { selling: 1 } };
|
||||
});
|
||||
}
|
||||
if (frm.doc.blanket_order_type === 'Purchasing') {
|
||||
frm.set_df_property("customer","reqd", 1)
|
||||
frm.set_query("tc_name", function() {
|
||||
return { filters: { buying: 1 } };
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user