mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 02:04:50 +00:00
fix: rate change on changing of the qty (#40241)
(cherry picked from commit e7d707797a)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
|
|||||||
|
|
||||||
item_rate = flt(item.rate_with_margin , precision("rate", item));
|
item_rate = flt(item.rate_with_margin , precision("rate", item));
|
||||||
|
|
||||||
if (item.discount_percentage) {
|
if (item.discount_percentage && !item.discount_amount) {
|
||||||
item.discount_amount = flt(item.rate_with_margin) * flt(item.discount_percentage) / 100;
|
item.discount_amount = flt(item.rate_with_margin) * flt(item.discount_percentage) / 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user