mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 01:43:10 +00:00
fix(test): Fixed item discount amount calculation and test cases related to pricing rule
This commit is contained in:
@@ -70,7 +70,7 @@ class calculate_taxes_and_totals(object):
|
||||
if item.rate_with_margin > 0 else item.rate
|
||||
|
||||
item.net_rate = item.rate
|
||||
item.discount_amount = item.price_list_rate - item.rate
|
||||
item.discount_amount = item.rate_with_margin - item.rate
|
||||
item.amount = flt(item.rate * item.qty, item.precision("amount"))
|
||||
item.net_amount = item.amount
|
||||
|
||||
|
||||
Reference in New Issue
Block a user