mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Merge pull request #52039 from frappe/mergify/bp/version-15-hotfix/pr-51670
fix: handle undefined bank_transaction_mapping in quick entry (backport #51670)
This commit is contained in:
@@ -3,9 +3,6 @@
|
|||||||
frappe.provide("erpnext.integrations");
|
frappe.provide("erpnext.integrations");
|
||||||
|
|
||||||
frappe.ui.form.on("Bank", {
|
frappe.ui.form.on("Bank", {
|
||||||
onload: function (frm) {
|
|
||||||
add_fields_to_mapping_table(frm);
|
|
||||||
},
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
add_fields_to_mapping_table(frm);
|
add_fields_to_mapping_table(frm);
|
||||||
frm.toggle_display(["address_html", "contact_html"], !frm.doc.__islocal);
|
frm.toggle_display(["address_html", "contact_html"], !frm.doc.__islocal);
|
||||||
@@ -37,11 +34,11 @@ let add_fields_to_mapping_table = function (frm) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
frm.fields_dict.bank_transaction_mapping.grid.update_docfield_property(
|
const grid = frm.fields_dict.bank_transaction_mapping?.grid;
|
||||||
"bank_transaction_field",
|
|
||||||
"options",
|
if (grid) {
|
||||||
options
|
grid.update_docfield_property("bank_transaction_field", "options", options);
|
||||||
);
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
||||||
@@ -116,7 +113,7 @@ erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
|||||||
"There was an issue connecting to Plaid's authentication server. Check browser console for more information"
|
"There was an issue connecting to Plaid's authentication server. Check browser console for more information"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
console.log(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
plaid_success(token, response) {
|
plaid_success(token, response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user