fix: Calculate taxes if tax is based on item quantity and inclusive on item price

This commit is contained in:
Nabin Hait
2020-08-11 20:34:57 +05:30
parent ee5b9c7691
commit 19ea7218d9
4 changed files with 51 additions and 23 deletions

View File

@@ -985,7 +985,7 @@ def validate_inclusive_tax(tax, doc):
# all rows about the reffered tax should be inclusive
_on_previous_row_error("1 - %d" % (tax.row_id,))
elif tax.get("category") == "Valuation":
frappe.throw(_("Valuation type charges can not marked as Inclusive"))
frappe.throw(_("Valuation type charges can not be marked as Inclusive"))
def set_balance_in_account_currency(gl_dict, account_currency=None, conversion_rate=None, company_currency=None):