mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 09:53:09 +00:00
Merge pull request #33271 from sonali8848/filters-on-bank-reconciliation
feat: Date filters on bank reconciliation tool
This commit is contained in:
@@ -5,7 +5,12 @@ erpnext.accounts.bank_reconciliation.DataTableManager = class DataTableManager {
|
||||
Object.assign(this, opts);
|
||||
this.dialog_manager = new erpnext.accounts.bank_reconciliation.DialogManager(
|
||||
this.company,
|
||||
this.bank_account
|
||||
this.bank_account,
|
||||
this.bank_statement_from_date,
|
||||
this.bank_statement_to_date,
|
||||
this.filter_by_reference_date,
|
||||
this.from_reference_date,
|
||||
this.to_reference_date
|
||||
);
|
||||
this.make_dt();
|
||||
}
|
||||
@@ -17,6 +22,8 @@ erpnext.accounts.bank_reconciliation.DataTableManager = class DataTableManager {
|
||||
"erpnext.accounts.doctype.bank_reconciliation_tool.bank_reconciliation_tool.get_bank_transactions",
|
||||
args: {
|
||||
bank_account: this.bank_account,
|
||||
from_date: this.bank_statement_from_date,
|
||||
to_date: this.bank_statement_to_date
|
||||
},
|
||||
callback: function (response) {
|
||||
me.format_data(response.message);
|
||||
|
||||
@@ -5,8 +5,12 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
||||
this.bank_account = bank_account;
|
||||
this.company = company;
|
||||
this.make_dialog();
|
||||
this.bank_statement_from_date = bank_statement_from_date;
|
||||
this.bank_statement_to_date = bank_statement_to_date;
|
||||
this.filter_by_reference_date = filter_by_reference_date;
|
||||
this.from_reference_date = from_reference_date;
|
||||
this.to_reference_date = to_reference_date;
|
||||
}
|
||||
|
||||
show_dialog(bank_transaction_name, update_dt_cards) {
|
||||
this.bank_transaction_name = bank_transaction_name;
|
||||
this.update_dt_cards = update_dt_cards;
|
||||
@@ -35,13 +39,13 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
||||
if (r.message) {
|
||||
this.bank_transaction = r.message;
|
||||
r.message.payment_entry = 1;
|
||||
r.message.journal_entry = 1;
|
||||
this.dialog.set_values(r.message);
|
||||
this.dialog.show();
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
get_linked_vouchers(document_types) {
|
||||
frappe.call({
|
||||
method:
|
||||
@@ -49,6 +53,11 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
||||
args: {
|
||||
bank_transaction_name: this.bank_transaction_name,
|
||||
document_types: document_types,
|
||||
from_date: this.bank_statement_from_date,
|
||||
to_date: this.bank_statement_to_date,
|
||||
filter_by_reference_date: this.filter_by_reference_date,
|
||||
from_reference_date:this.from_reference_date,
|
||||
to_reference_date:this.to_reference_date
|
||||
},
|
||||
|
||||
callback: (result) => {
|
||||
@@ -66,6 +75,7 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
||||
row[1],
|
||||
row[2],
|
||||
reference_date,
|
||||
row[8],
|
||||
format_currency(row[3], row[9]),
|
||||
row[6],
|
||||
row[4],
|
||||
@@ -101,6 +111,11 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
||||
editable: false,
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
name: "Posting Date",
|
||||
editable: false,
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
name: __("Amount"),
|
||||
editable: false,
|
||||
@@ -578,4 +593,4 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user