From 1f39feb12fd3493cdcdfc48df091f9ca30db119c Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 5 Jan 2018 12:25:45 +0530 Subject: [PATCH] [Fix] PO -> PI non default taxes not fetched (#12313) --- erpnext/public/js/controllers/transaction.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 483736e938..503f1526ed 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -236,7 +236,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ var taxes_and_charges_field = frappe.meta.get_docfield(me.frm.doc.doctype, "taxes_and_charges", me.frm.doc.name); - if(taxes_and_charges_field) { + if (!this.frm.doc.taxes_and_charges && this.frm.doc.taxes) { + return; + } + + if (taxes_and_charges_field) { return frappe.call({ method: "erpnext.controllers.accounts_controller.get_default_taxes_and_charges", args: {