mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
fix: type error on new payment entry
(cherry picked from commit adff287160)
This commit is contained in:
@@ -152,7 +152,7 @@ frappe.ui.form.on('Payment Entry', {
|
|||||||
frm.events.hide_unhide_fields(frm);
|
frm.events.hide_unhide_fields(frm);
|
||||||
frm.events.set_dynamic_labels(frm);
|
frm.events.set_dynamic_labels(frm);
|
||||||
frm.events.show_general_ledger(frm);
|
frm.events.show_general_ledger(frm);
|
||||||
if(frm.doc.references.find((elem) => {return elem.exchange_gain_loss != 0})) {
|
if((frm.doc.references) && (frm.doc.references.find((elem) => {return elem.exchange_gain_loss != 0}))) {
|
||||||
frm.add_custom_button(__("View Exchange Gain/Loss Journals"), function() {
|
frm.add_custom_button(__("View Exchange Gain/Loss Journals"), function() {
|
||||||
frappe.set_route("List", "Journal Entry", {"voucher_type": "Exchange Gain Or Loss", "reference_name": frm.doc.name});
|
frappe.set_route("List", "Journal Entry", {"voucher_type": "Exchange Gain Or Loss", "reference_name": frm.doc.name});
|
||||||
}, __('Actions'));
|
}, __('Actions'));
|
||||||
|
|||||||
Reference in New Issue
Block a user