Merge pull request #10259 from pratu16x7/hotfix
[hotfix] website stock not shown due to discount not set
This commit is contained in:
commit
5ebb9a0fc7
@ -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…
x
Reference in New Issue
Block a user