Merge pull request #17815 from deepeshgarg007/ar_translation

fix: Add translations for missing labels in AR report
This commit is contained in:
Deepesh Garg
2019-05-31 12:37:18 +05:30
committed by GitHub

View File

@@ -68,13 +68,13 @@ class ReceivablePayableReport(object):
if self.filters.based_on_payment_terms: if self.filters.based_on_payment_terms:
columns.append({ columns.append({
"label": "Payment Term", "label": _("Payment Term"),
"fieldname": "payment_term", "fieldname": "payment_term",
"fieldtype": "Data", "fieldtype": "Data",
"width": 120 "width": 120
}) })
columns.append({ columns.append({
"label": "Invoice Grand Total", "label": _("Invoice Grand Total"),
"fieldname": "invoice_grand_total", "fieldname": "invoice_grand_total",
"fieldtype": "Currency", "fieldtype": "Currency",
"options": "currency", "options": "currency",
@@ -83,7 +83,7 @@ class ReceivablePayableReport(object):
for label in ("Invoiced Amount", "Paid Amount", credit_or_debit_note, "Outstanding Amount"): for label in ("Invoiced Amount", "Paid Amount", credit_or_debit_note, "Outstanding Amount"):
columns.append({ columns.append({
"label": label, "label": _(label),
"fieldname": frappe.scrub(label), "fieldname": frappe.scrub(label),
"fieldtype": "Currency", "fieldtype": "Currency",
"options": "currency", "options": "currency",