[Fix] Tax not changes when user change the POS profile in the sales invoice

This commit is contained in:
Rohit Waghchaure 2018-04-23 15:46:51 +05:30 committed by Nabin Hait
parent bd63f0056a
commit 3e0a937cb8

View File

@ -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