Merge pull request #37958 from frappe/mergify/bp/version-15-hotfix/pr-37956
fix: type error on new payment entry (backport #37956)
This commit is contained in:
		
						commit
						dc10a721ab
					
				| @ -154,7 +154,7 @@ frappe.ui.form.on('Payment Entry', { | ||||
| 		frm.events.set_dynamic_labels(frm); | ||||
| 		frm.events.show_general_ledger(frm); | ||||
| 		erpnext.accounts.ledger_preview.show_accounting_ledger_preview(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() { | ||||
| 				frappe.set_route("List", "Journal Entry", {"voucher_type": "Exchange Gain Or Loss", "reference_name": frm.doc.name}); | ||||
| 			}, __('Actions')); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user