refactor: make strings translate
This commit is contained in:
parent
0ab57d49c1
commit
cb2213ef0c
@ -150,7 +150,7 @@ def get_tax_data_for_each_vat_setting(vat_setting, filters, doctype):
|
|||||||
|
|
||||||
def append_data(data, title, amount, adjustment_amount, vat_amount):
|
def append_data(data, title, amount, adjustment_amount, vat_amount):
|
||||||
"""Returns data with appended value."""
|
"""Returns data with appended value."""
|
||||||
data.append({"title":title, "amount": amount, "adjustment_amount": adjustment_amount, "vat_amount": vat_amount})
|
data.append({"title": _(title), "amount": amount, "adjustment_amount": adjustment_amount, "vat_amount": vat_amount})
|
||||||
|
|
||||||
def get_tax_amount(item_code, account_head, doctype, parent):
|
def get_tax_amount(item_code, account_head, doctype, parent):
|
||||||
if doctype == 'Sales Invoice':
|
if doctype == 'Sales Invoice':
|
||||||
|
|||||||
@ -16,7 +16,6 @@ def create_ksa_vat_setting(company):
|
|||||||
with open(file_path, 'r') as json_file:
|
with open(file_path, 'r') as json_file:
|
||||||
account_data = json.load(json_file)
|
account_data = json.load(json_file)
|
||||||
|
|
||||||
|
|
||||||
# Creating KSA VAT Setting
|
# Creating KSA VAT Setting
|
||||||
ksa_vat_setting = frappe.get_doc({
|
ksa_vat_setting = frappe.get_doc({
|
||||||
'doctype': 'KSA VAT Setting',
|
'doctype': 'KSA VAT Setting',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user