mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 19:18:32 +00:00
Merge pull request #34686 from frappe/mergify/bp/version-14-hotfix/pr-34679
fix: enclose ternary operator in parenthesis (backport #34679)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user