[fix] discount setting multiple times
This commit is contained in:
parent
233a19a373
commit
6705ab3eaf
@ -76,7 +76,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
|
||||
if(frm.doc.additional_discount_percentage && frm.doc.discount_amount) {
|
||||
// Reset discount amount and net / grand total
|
||||
frm.set_value("discount_amount", 0);
|
||||
frm.doc.discount_amount = 0;
|
||||
frm.cscript.calculate_taxes_and_totals();
|
||||
}
|
||||
|
||||
var total = flt(frm.doc[frappe.model.scrub(frm.doc.apply_discount_on)]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user