feat: pricing rule enhancements
This commit is contained in:
@@ -20,6 +20,9 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
||||
|
||||
if(item.discount_percentage){
|
||||
item.discount_amount = flt(item.rate_with_margin) * flt(item.discount_percentage) / 100;
|
||||
}
|
||||
|
||||
if (item.discount_amount) {
|
||||
item.rate = flt((item.rate_with_margin) - (item.discount_amount), precision('rate', item));
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user