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

This commit is contained in:
ruthra kumar 2023-04-20 10:39:15 +05:30
parent 59f3fedbf7
commit df0682fa8c

View File

@ -977,6 +977,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];