fix: fix: date validation, setting up default conpany, customer/supplier manadatory property on Blanket Order

This commit is contained in:
Khushal Trivedi 2019-10-21 18:17:42 +05:30
parent 974f04be24
commit e22ca23b81

View File

@ -61,7 +61,7 @@ frappe.ui.form.on('Blanket Order', {
});
}
if (frm.doc.blanket_order_type === 'Purchasing') {
frm.set_df_property("supplier","reqd", 1);
frm.set_df_property("supplier","reqd", 1);
frm.set_df_property("customer","reqd", 0);
frm.set_value("customer", "");