From 8356d4b8922fdf25128456dd7553a49d893a329f Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 9 Aug 2018 15:51:11 +0530 Subject: [PATCH] [Fix] disable_rounded_total not found error (#15113) --- erpnext/public/js/controllers/buying.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/buying.js b/erpnext/public/js/controllers/buying.js index 20ac6b4f18e..0fd6c97f505 100644 --- a/erpnext/public/js/controllers/buying.js +++ b/erpnext/public/js/controllers/buying.js @@ -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)); }