From c06f72f9f7885be13cc173362349b381b882f2c4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 23:42:35 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20fixing=20buying=20controller=20t?= =?UTF-8?q?o=20include=20transaction=20controller=E2=80=A6=20(backport=20#?= =?UTF-8?q?49140)=20(#49370)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: :bug: fixing buying controller to include transaction controller… (#49140) * fix: :bug: fixing buying controller to include transaction controller function * refactor: fixed formatting --------- Co-authored-by: Mihir Kandoi (cherry picked from commit aedb171dd4d3b30d419f94c80ac5ef4555cf3ea8) # Conflicts: # erpnext/public/js/controllers/buying.js * chore: resolve conflicts --------- Co-authored-by: jll-02 <63648645+jll-02@users.noreply.github.com> Co-authored-by: Mihir Kandoi --- erpnext/public/js/controllers/buying.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/buying.js b/erpnext/public/js/controllers/buying.js index a1675be8954..e7ee7d505a1 100644 --- a/erpnext/public/js/controllers/buying.js +++ b/erpnext/public/js/controllers/buying.js @@ -159,8 +159,9 @@ erpnext.buying = { }); } - company(){ - if(!frappe.meta.has_field(this.frm.doc.doctype, "billing_address")) return; + company() { + super.company(); + if (!frappe.meta.has_field(this.frm.doc.doctype, "billing_address")) return; frappe.call({ method: "erpnext.setup.doctype.company.company.get_billing_shipping_address",