From 03f3a8a2ef33a87254eb8f534fe058ba67b8f7e0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 13 May 2014 16:38:31 +0530 Subject: [PATCH] Get taxes and charges records from matser. Fixes #1634 --- erpnext/public/js/transaction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js index 9850e8fffbf..e12a30e14ef 100644 --- a/erpnext/public/js/transaction.js +++ b/erpnext/public/js/transaction.js @@ -704,7 +704,8 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({ return this.frm.call({ method: "erpnext.controllers.accounts_controller.get_taxes_and_charges", args: { - "master_doctype": "Sales Taxes and Charges Master", + "master_doctype": frappe.meta.get_docfield(this.frm.doc.doctype, "taxes_and_charges", + this.frm.doc.name).options, "master_name": this.frm.doc.taxes_and_charges, "tax_parentfield": this.other_fname },