[fix] website stock not shown due to discount not set
This commit is contained in:
parent
5f98dddd0c
commit
7587b19d1b
@ -85,7 +85,7 @@ def get_price(item_code, template_item_code, price_list, qty=1):
|
||||
|
||||
if pricing_rule:
|
||||
if pricing_rule.pricing_rule_for == "Discount Percentage":
|
||||
price[0].price_list_rate = flt(price[0].price_list_rate * (1.0 - (pricing_rule.discount_percentage / 100.0)))
|
||||
price[0].price_list_rate = flt(price[0].price_list_rate * (1.0 - (flt(pricing_rule.discount_percentage) / 100.0)))
|
||||
|
||||
if pricing_rule.pricing_rule_for == "Price":
|
||||
price[0].price_list_rate = pricing_rule.price_list_rate
|
||||
|
Loading…
Reference in New Issue
Block a user