[fix] discount percentage fix
This commit is contained in:
parent
5e76a1cffa
commit
46c97c6e95
@ -170,7 +170,10 @@ class AccountsController(TransactionBase):
|
|||||||
item.set(fieldname, value)
|
item.set(fieldname, value)
|
||||||
|
|
||||||
if ret.get("pricing_rule"):
|
if ret.get("pricing_rule"):
|
||||||
item.set("discount_percentage", ret.get("discount_percentage"))
|
# if user changed the discount percentage then set user's discount percentage ?
|
||||||
|
discount_percentage = ret.get("discount_percentage") if item.get("discount_percentage") == \
|
||||||
|
ret.get("discount_percentage") else item.get("discount_percentage")
|
||||||
|
item.set("discount_percentage", discount_percentage)
|
||||||
if ret.get("pricing_rule_for") == "Price":
|
if ret.get("pricing_rule_for") == "Price":
|
||||||
item.set("pricing_list_rate", ret.get("pricing_list_rate"))
|
item.set("pricing_list_rate", ret.get("pricing_list_rate"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user