Skip to content

Commit

Permalink
Merge pull request #34686 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-34679

fix: enclose ternary operator in parenthesis (backport #34679)
  • Loading branch information
ruthra-kumar authored Mar 31, 2023
2 parents bd0c20f + b835760 commit dcf62dc
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 @@ -135,7 +135,7 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
}
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 dcf62dc

Please sign in to comment.