From 20c31dd579f369b260777574994ad06a4f6c8d56 Mon Sep 17 00:00:00 2001 From: Saqib Date: Fri, 29 Nov 2019 16:55:10 +0530 Subject: [PATCH] fix: tax templates from all companies fetching in receipt (#19682) * fix: tax templates from all companies fetching in receipt * Update purchase_receipt.js --- .../stock/doctype/purchase_receipt/purchase_receipt.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js index d5914f9b28d..6b5e40e6288 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js @@ -34,6 +34,12 @@ frappe.ui.form.on("Purchase Receipt", { filters: {'company': frm.doc.company } } }); + + frm.set_query("taxes_and_charges", function() { + return { + filters: {'company': frm.doc.company } + } + }); }, onload: function(frm) { @@ -296,4 +302,4 @@ var validate_sample_quantity = function(frm, cdt, cdn) { } }); } -}; \ No newline at end of file +};