Merge pull request #34241 from ruthra-kumar/bug_on_credit_note_creation
fix: pos return throwing amount greater than grand total
This commit is contained in:
commit
f9c75055bb
@ -131,8 +131,8 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
|
|||||||
item.net_amount = item.amount = flt(item.rate * item.qty, precision("amount", item));
|
item.net_amount = item.amount = flt(item.rate * item.qty, precision("amount", item));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let qty = item.qty || 1;
|
// allow for '0' qty on Credit/Debit notes
|
||||||
qty = me.frm.doc.is_return ? -1 * qty : qty;
|
let qty = item.qty || -1
|
||||||
item.net_amount = item.amount = flt(item.rate * qty, precision("amount", item));
|
item.net_amount = item.amount = flt(item.rate * qty, precision("amount", item));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user