Merge pull request #34940 from ruthra-kumar/broken_set_exchange_gain_loss_btn_in_payment_entry

fix: broken 'set exchange gain/loss' btn in payment entry
This commit is contained in:
ruthra kumar 2023-04-21 09:47:53 +05:30 committed by GitHub
commit 3ec1597860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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