commit | df0682fa8c85221e214fda0e05a1699377868fae | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Thu Apr 20 10:39:15 2023 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Thu Apr 20 10:39:15 2023 +0530 |
tree | 20a3f2d39b2899b3ef660efe05eafd07c3034b95 | |
parent | 59f3fedbf7b92161f842479d05563f723d61bd78 [diff] |
fix: broken set exchagne gain/loss btn broken in payment entry
diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.js b/erpnext/accounts/doctype/payment_entry/payment_entry.js index ed6d0a7..07761c7 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js
@@ -977,6 +977,7 @@ precision("difference_amount")); const add_deductions = (details) => { + let row = null; if (!write_off_row.length && difference_amount) { row = frm.add_child("deductions"); row.account = details[account];