Skip to content

Commit

Permalink
fix: unsupported operand type(s) for +: 'int' and 'NoneType'
Browse files Browse the repository at this point in the history
(cherry picked from commit 0f28074)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Dec 15, 2022
1 parent 6940923 commit 7bdfb3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/stock/get_item_details.py
Expand Up @@ -828,9 +828,9 @@ def insert_item_price(args):
):
if frappe.has_permission("Item Price", "write"):
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")
else (args.rate + args.discount_amount)
else (flt(args.rate) + flt(args.discount_amount))
)

item_price = frappe.db.get_value(
Expand Down

0 comments on commit 7bdfb3d

Please sign in to comment.