[Fix] disable_rounded_total not found error (#15113)

This commit is contained in:
rohitwaghchaure 2018-08-09 15:51:11 +05:30 committed by Nabin Hait
parent ba62013cbb
commit 8356d4b892

View File

@ -26,7 +26,8 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
};
});
if (this.frm.doc.__islocal) {
if (this.frm.doc.__islocal
&& frappe.meta.has_field(this.frm.doc.doctype, "disable_rounded_total")) {
this.frm.set_value("disable_rounded_total", cint(frappe.sys_defaults.disable_rounded_total));
}