diff --git a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html index dd1609a00c..23d2a31fff 100644 --- a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html +++ b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html @@ -8,7 +8,7 @@ {%= __("Posting Date") %} - {%= __("Journal Entry") %} + {%= __("Payment Entry") %} {%= __("Reference") %} {%= __("Debit") %} {%= __("Credit") %} @@ -19,10 +19,10 @@ {% if (data[i]["posting_date"]) { %} {%= dateutil.str_to_user(data[i]["posting_date"]) %} - {%= data[i]["journal_entry"] %} + {%= data[i]["payment_entry"] %} {%= __("Against") %}: {%= data[i]["against_account"] %} - {% if (data[i]["reference"]) { %} -
{%= __("Reference") %}: {%= data[i]["reference"] %} + {% if (data[i]["reference_no"]) { %} +
{%= __("Reference") %}: {%= data[i]["reference_no"] %} {% if (data[i]["ref_date"]) { %}
{%= __("Reference Date") %}: {%= dateutil.str_to_user(data[i]["ref_date"]) %} {% } %} @@ -38,7 +38,7 @@ - {%= data[i]["journal_entry"] %} + {%= data[i]["payment_entry"] %} {%= format_currency(data[i]["debit"]) %} {%= format_currency(data[i]["credit"]) %} diff --git a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.py b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.py index 8ed338efe1..95b7ff7545 100644 --- a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.py +++ b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.py @@ -129,7 +129,7 @@ def get_entries(filters): reference_no, reference_date as ref_date, if(paid_to=%(account)s, received_amount, 0) as debit, if(paid_from=%(account)s, paid_amount, 0) as credit, - posting_date, party as against_account, clearance_date, + posting_date, ifnull(party,if(paid_from=%(account)s,paid_to,paid_from)) as against_account, clearance_date, if(paid_to=%(account)s, paid_to_account_currency, paid_from_account_currency) as account_currency from `tabPayment Entry` where