fix: multi-uom not working for the pricing rule rate

This commit is contained in:
Rohit Waghchaure 2019-02-18 20:07:44 +05:30
parent 1bcbe9069b
commit 5821b672ad

View File

@ -196,8 +196,9 @@ def get_pricing_rule_for_item(args):
pricing_rule_rate = 0.0
if pricing_rule.currency == args.currency:
pricing_rule_rate = pricing_rule.rate
item_details.update({
"price_list_rate": pricing_rule_rate,
"price_list_rate": pricing_rule_rate * args.get("conversion_factor"),
"discount_percentage": 0.0
})
else: