fix: broken 'set exchange gain/loss' btn in payment entry (#34940)

fix: broken set exchagne gain/loss btn broken in payment entry

(cherry picked from commit df0682fa8c)

Co-authored-by: ruthra kumar <ruthra@erpnext.com>
This commit is contained in:
mergify[bot]
2023-04-21 14:26:10 +05:30
committed by GitHub
parent 6aabab26d8
commit 00968badf5

View File

@@ -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];