Skip to content

Commit

Permalink
fix: broken 'set exchange gain/loss' btn in payment entry (#34940)
Browse files Browse the repository at this point in the history
fix: broken set exchagne gain/loss btn broken in payment entry

(cherry picked from commit df0682f)

Co-authored-by: ruthra kumar <ruthra@erpnext.com>
  • Loading branch information
mergify[bot] and ruthra-kumar authored Apr 21, 2023
1 parent 6aabab2 commit 00968ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ frappe.ui.form.on('Payment Entry', {
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];
Expand Down

0 comments on commit 00968ba

Please sign in to comment.