fix: unsupported operand type(s) for +: 'int' and 'NoneType'
(cherry picked from commit 0f28074e5a)
This commit is contained in:
committed by
Mergify
parent
896bac10bc
commit
a6241fc813
@@ -813,9 +813,9 @@ def insert_item_price(args):
|
|||||||
):
|
):
|
||||||
if frappe.has_permission("Item Price", "write"):
|
if frappe.has_permission("Item Price", "write"):
|
||||||
price_list_rate = (
|
price_list_rate = (
|
||||||
(args.rate + args.discount_amount) / args.get("conversion_factor")
|
(flt(args.rate) + flt(args.discount_amount)) / args.get("conversion_factor")
|
||||||
if args.get("conversion_factor")
|
if args.get("conversion_factor")
|
||||||
else (args.rate + args.discount_amount)
|
else (flt(args.rate) + flt(args.discount_amount))
|
||||||
)
|
)
|
||||||
|
|
||||||
item_price = frappe.db.get_value(
|
item_price = frappe.db.get_value(
|
||||||
|
|||||||
Reference in New Issue
Block a user