commit | 161f35a687bd1ca5150e46e26bb6b78cecf071a8 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Sat May 05 14:32:31 2018 +0530 |
committer | GitHub <noreply@github.com> | Sat May 05 14:32:31 2018 +0530 |
tree | 4d21f37432238f7717ae7b0a54e2a16aa2654775 | |
parent | fcb984b294ba24f0e5ce2ae924939700dcd3323f [diff] |
Update sales_invoice.py
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index d822052..b174d9b 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
@@ -344,8 +344,8 @@ 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