Skip to content

Commit

Permalink
fix: typerror on default_currency
Browse files Browse the repository at this point in the history
(cherry picked from commit 4a7cc4d)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Sep 3, 2024
1 parent 56b4e79 commit 22b283d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ frappe.ui.form.on('Payment Entry', {
frm.set_value("source_exchange_rate", 1);
} else if (frm.doc.paid_from){
if (["Internal Transfer", "Pay"].includes(frm.doc.payment_type)) {
let company_currency = frappe.get_doc(":Company", frm.doc.company).default_currency;
let company_currency = frappe.get_doc(":Company", frm.doc.company)?.default_currency;
frappe.call({
method: "erpnext.setup.utils.get_exchange_rate",
args: {
Expand Down

0 comments on commit 22b283d

Please sign in to comment.