mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
committed by
mergify-bot
parent
a83a0a03b1
commit
97e102ceef
@@ -123,7 +123,7 @@ class calculate_taxes_and_totals(object):
|
||||
|
||||
item.discount_amount = item.price_list_rate * (item.discount_percentage / 100.0)
|
||||
|
||||
elif item.discount_amount or item.pricing_rules:
|
||||
elif item.discount_amount and item.pricing_rules:
|
||||
item.rate = item.price_list_rate - item.discount_amount
|
||||
|
||||
if item.doctype in ['Quotation Item', 'Sales Order Item', 'Delivery Note Item', 'Sales Invoice Item',
|
||||
|
||||
Reference in New Issue
Block a user