Skip to content

Commit

Permalink
Merge branch 'develop' into FIX-33830
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r authored Mar 31, 2023
2 parents b4ace34 + 770640f commit 2c2b5a5
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 2c2b5a5

Please sign in to comment.