From 665311b38a5fe2fe768afc4ac196bfa217af8422 Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Fri, 9 Jun 2017 14:03:20 +0530 Subject: [PATCH 1/2] [hotfix] replaced __ call with _ in project_timesheets.html (#9198) --- erpnext/templates/includes/projects/project_timesheets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/templates/includes/projects/project_timesheets.html b/erpnext/templates/includes/projects/project_timesheets.html index 3a9aecd251..66f47713d2 100644 --- a/erpnext/templates/includes/projects/project_timesheets.html +++ b/erpnext/templates/includes/projects/project_timesheets.html @@ -5,7 +5,7 @@
{{ timesheet.info.name }}
- {{ __("From") }} {{ frappe.format_date(timesheet.from_time) }} {{ __("to") }} {{ frappe.format_date(timesheet.to_time) }} + {{ _("From") }} {{ frappe.format_date(timesheet.from_time) }} {{ _("to") }} {{ frappe.format_date(timesheet.to_time) }}
From 97fd21a01d53653c8ada9ba5fa30737a01487759 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 9 Jun 2017 14:05:10 +0530 Subject: [PATCH 2/2] [Fix] Accounts receivable summary report not loading data because credit note column was missing (#9191) * [Fix] Accounts receivable summary report not loading data because credit note column was missing * Create accounts_receivable_summary.py --- .../accounts_receivable_summary.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py index 81bcccb281..845a2c5362 100644 --- a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py +++ b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py @@ -17,9 +17,11 @@ class AccountsReceivableSummary(ReceivablePayableReport): if party_naming_by == "Naming Series": columns += [ args.get("party_type") + " Name::140"] + credit_debit_label = _("Credit Note Amt") if args.get('party_type') == 'Customer' else _("Debit Note Amt") columns += [ _("Total Invoiced Amt") + ":Currency/currency:140", _("Total Paid Amt") + ":Currency/currency:140", + credit_debit_label + ":Currency/currency:140", _("Total Outstanding Amt") + ":Currency/currency:160", "0-" + str(self.filters.range1) + ":Currency/currency:100", str(self.filters.range1) + "-" + str(self.filters.range2) + ":Currency/currency:100", @@ -56,7 +58,7 @@ class AccountsReceivableSummary(ReceivablePayableReport): row += [self.get_party_name(args.get("party_type"), party)] row += [ - party_dict.invoiced_amt, party_dict.paid_amt, party_dict.outstanding_amt, + party_dict.invoiced_amt, party_dict.paid_amt, party_dict.credit_amt, party_dict.outstanding_amt, party_dict.range1, party_dict.range2, party_dict.range3, party_dict.range4, ] @@ -77,6 +79,7 @@ class AccountsReceivableSummary(ReceivablePayableReport): frappe._dict({ "invoiced_amt": 0, "paid_amt": 0, + "credit_amt": 0, "outstanding_amt": 0, "range1": 0, "range2": 0, @@ -104,7 +107,7 @@ class AccountsReceivableSummary(ReceivablePayableReport): if args.get("party_type") == "Supplier": cols += ["bill_no", "bill_date"] - cols += ["invoiced_amt", "paid_amt", + cols += ["invoiced_amt", "paid_amt", "credit_amt", "outstanding_amt", "age", "range1", "range2", "range3", "range4", "currency"] if args.get("party_type") == "Supplier":