Skip to content

Commit

Permalink
Merge pull request #33356 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-33354

fix: unsupported operand type(s) for +: 'int' and 'NoneType' (backport #33354)
  • Loading branch information
rohitwaghchaure authored Dec 15, 2022
2 parents 6940923 + 7bdfb3d commit beaf955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
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 beaf955

Please sign in to comment.