[Enhance] New print format for UAE/KSA for vat/excise (#12202)

* [Enhance] New print format for UAE/KSA for vat/excise

* Fixed spelling
This commit is contained in:
rohitwaghchaure
2017-12-28 14:20:13 +05:30
committed by Nabin Hait
parent dbb5ae9a9e
commit d45266881a
9 changed files with 74 additions and 11 deletions

View File

@@ -544,6 +544,7 @@ def get_itemised_tax_breakup_html(doc):
get_rounded_tax_amount(itemised_tax, doc.precision("tax_amount", "taxes"))
update_itemised_tax_data(doc)
frappe.flags.company = None
return frappe.render_template(
@@ -556,6 +557,12 @@ def get_itemised_tax_breakup_html(doc):
)
)
@erpnext.allow_regional
def update_itemised_tax_data(doc):
#Don't delete this method, used for localization
pass
@erpnext.allow_regional
def get_itemised_tax_breakup_header(item_doctype, tax_accounts):
return [_("Item"), _("Taxable Amount")] + tax_accounts