From 3e0a937cb8799cba2604b58267c70ff4cba2556c Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 23 Apr 2018 15:46:51 +0530 Subject: [PATCH] [Fix] Tax not changes when user change the POS profile in the sales invoice --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index b174d9b224..d8220528d4 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -344,8 +344,8 @@ class SalesInvoice(SellingController): self.terms = frappe.db.get_value("Terms and Conditions", self.tc_name, "terms") # fetch charges - if self.taxes_and_charges and not len(self.get("taxes")): - self.set_taxes() + if self.taxes_and_charges: + self.set_other_charges() return pos