Skip to content

Commit

Permalink
Merge pull request frappe#34685 from frappe/mergify/bp/version-13-hot…
Browse files Browse the repository at this point in the history
…fix/pr-34679

fix: enclose ternary operator in parenthesis (backport frappe#34679)
  • Loading branch information
ruthra-kumar committed Mar 31, 2023
2 parents 2770840 + 198830a commit 008c985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/controllers/taxes_and_totals.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
}
else {
// allow for '0' qty on Credit/Debit notes
let qty = item.qty || me.frm.doc.is_debit_note ? 1 : -1;
let qty = item.qty || (me.frm.doc.is_debit_note ? 1 : -1);
item.net_amount = item.amount = flt(item.rate * qty, precision("amount", item));
}

Expand Down

0 comments on commit 008c985

Please sign in to comment.