Merge pull request #16711 from rohitwaghchaure/multi_uom_not_working_for_rate_pricing_rule

fix: multi-uom not working for the pricing rule rate
This commit is contained in:
Nabin Hait 2019-02-19 15:05:07 +05:30 committed by GitHub
commit 157526c978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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