Update sales_invoice.py

This commit is contained in:
Nabin Hait 2018-05-05 14:32:31 +05:30 committed by GitHub
parent fcb984b294
commit 161f35a687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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:
self.set_other_charges()
if self.taxes_and_charges and not len(self.get("taxes")):
self.set_taxes()
return pos