mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
fix: currency in bank reconciliation tool
(cherry picked from commit 60674e52b8)
This commit is contained in:
committed by
mergify-bot
parent
8727addec3
commit
d898cb45dc
@@ -64,6 +64,7 @@ frappe.ui.form.on("Bank Reconciliation Tool", {
|
|||||||
"account_currency",
|
"account_currency",
|
||||||
(r) => {
|
(r) => {
|
||||||
frm.currency = r.account_currency;
|
frm.currency = r.account_currency;
|
||||||
|
frm.trigger("render_chart");
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -128,7 +129,7 @@ frappe.ui.form.on("Bank Reconciliation Tool", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
render_chart(frm) {
|
render_chart: frappe.utils.debounce((frm) => {
|
||||||
frm.cards_manager = new erpnext.accounts.bank_reconciliation.NumberCardManager(
|
frm.cards_manager = new erpnext.accounts.bank_reconciliation.NumberCardManager(
|
||||||
{
|
{
|
||||||
$reconciliation_tool_cards: frm.get_field(
|
$reconciliation_tool_cards: frm.get_field(
|
||||||
@@ -140,7 +141,7 @@ frappe.ui.form.on("Bank Reconciliation Tool", {
|
|||||||
currency: frm.currency,
|
currency: frm.currency,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
}, 500),
|
||||||
|
|
||||||
render(frm) {
|
render(frm) {
|
||||||
if (frm.doc.bank_account) {
|
if (frm.doc.bank_account) {
|
||||||
|
|||||||
Reference in New Issue
Block a user