fix: enclose ternary operator in parentheses

(cherry picked from commit 986daa6578)
This commit is contained in:
ruthra kumar
2023-03-31 12:09:57 +05:30
committed by Mergify
parent 2770840946
commit 198830a6c8

View File

@@ -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));
}