[minor-fix] pricing rule test-case fix
This commit is contained in:
parent
75b6fbb6a7
commit
c1331d0e8e
@ -171,8 +171,8 @@ def get_pricing_rule_for_item(args):
|
||||
})
|
||||
else:
|
||||
# if user changed the discount percentage then set discount_percentage of user
|
||||
item_details.discount_percentage = pricing_rule.discount_percentage if args.discount_percentage == pricing_rule.discount_percentage\
|
||||
else args.discount_percentage
|
||||
item_details.discount_percentage = args.discount_percentage if args.discount_percentage != pricing_rule.discount_percentage\
|
||||
and args.discount_percentage > 0 else pricing_rule.discount_percentage
|
||||
return item_details
|
||||
|
||||
def get_pricing_rules(args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user