[fix] check if supplier value exists (#13616)

This commit is contained in:
Saurabh 2018-04-16 11:07:14 +05:30 committed by Rushabh Mehta
parent ca1cfd91ea
commit f2a941b1a4

View File

@ -39,6 +39,7 @@ frappe.ui.form.on("Tax Rule", "customer", function(frm) {
}); });
frappe.ui.form.on("Tax Rule", "supplier", function(frm) { frappe.ui.form.on("Tax Rule", "supplier", function(frm) {
if(frm.doc.supplier) {
frappe.call({ frappe.call({
method:"erpnext.accounts.doctype.tax_rule.tax_rule.get_party_details", method:"erpnext.accounts.doctype.tax_rule.tax_rule.get_party_details",
args: { args: {
@ -53,4 +54,5 @@ frappe.ui.form.on("Tax Rule", "supplier", function(frm) {
} }
} }
}); });
}
}); });