Translation correction in P&L report (#9436)

This commit is contained in:
Charles-Henri Decultot
2017-06-30 13:15:11 +02:00
committed by Rushabh Mehta
parent 8ebc0df65f
commit 53de2f1b57

View File

@@ -179,9 +179,9 @@ def prepare_data(accounts, balance_must_be, period_list, company_currency):
has_value = False has_value = False
total = 0 total = 0
row = frappe._dict({ row = frappe._dict({
"account_name": d.account_name, "account_name": _(d.account_name),
"account": d.name, "account": _(d.name),
"parent_account": d.parent_account, "parent_account": _(d.parent_account),
"indent": flt(d.indent), "indent": flt(d.indent),
"year_start_date": year_start_date, "year_start_date": year_start_date,
"year_end_date": year_end_date, "year_end_date": year_end_date,
@@ -224,8 +224,8 @@ def filter_out_zero_value_rows(data, parent_children_map, show_zero_values=False
def add_total_row(out, root_type, balance_must_be, period_list, company_currency): def add_total_row(out, root_type, balance_must_be, period_list, company_currency):
total_row = { total_row = {
"account_name": "'" + _("Total {0} ({1})").format(root_type, balance_must_be) + "'", "account_name": "'" + _("Total {0} ({1})").format(_(root_type), _(balance_must_be)) + "'",
"account": "'" + _("Total {0} ({1})").format(root_type, balance_must_be) + "'", "account": "'" + _("Total {0} ({1})").format(_(root_type), _(balance_must_be)) + "'",
"currency": company_currency "currency": company_currency
} }