diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.html b/erpnext/accounts/report/accounts_receivable/accounts_receivable.html index 09f3cc2bed..40ec252a24 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.html +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.html @@ -161,21 +161,21 @@ {% } %} - {%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"]) %} + {%= format_currency(data[i]["invoiced_amount"], data[i]["currency"]) %} {% if(!filters.show_pdc_in_print) { %} - {%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %} + {%= format_currency(data[i]["paid_amount"], data[i]["currency"]) %} - {%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %} + {%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["credit_note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"]) %} {% } %} - {%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %} + {%= format_currency(data[i]["outstanding_amount"], data[i]["currency"]) %} {% if(filters.show_pdc_in_print) { %} {% if(report.report_name === "Accounts Receivable") { %} - {%= data[i][__("Customer LPO")] %} + {%= data[i]["po_no"] %} {% } %} {%= frappe.datetime.str_to_user(data[i][__("PDC/LC Date")]) %} {%= data[i][__("PDC/LC Ref")] %} diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 04287ad00e..647ba9787b 100755 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -104,7 +104,12 @@ class ReceivablePayableReport(object): ] if args.get('party_type') == 'Customer': - columns += [_("Customer LPO") + ":Data:100"] + columns.append({ + "label": _("Customer LPO"), + "fieldtype": "Data", + "fieldname": "po_no", + "width": 100, + }) columns += [_("Delivery Note") + ":Data:100"] if args.get("party_type") == "Customer": diff --git a/erpnext/stock/report/warehouse_wise_item_balance_age_and_value/__init__.py b/erpnext/stock/report/warehouse_wise_item_balance_age_and_value/__init__.py new file mode 100644 index 0000000000..e69de29bb2