Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
(cherry picked from commit 7c9c0c7)

# Conflicts:
#	erpnext/stock/get_item_details.py
  • Loading branch information
mihir-kandoi authored and mergify[bot] committed Mar 3, 2025
1 parent 9e649d8 commit 61d5680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,11 +1051,15 @@ def get_batch_based_item_price(params, item_code) -> float:
if not item_price:
item_price = get_item_price(params, item_code, ignore_party=True, force_batch_no=True)

<<<<<<< HEAD
<<<<<<< HEAD
if item_price and item_price[0][2] == params.get("uom"):
return item_price[0][1]
=======
if item_price and item_price[0].uom == pctx.uom and not pctx.get("items")[0].get("is_free_item"):
=======
if item_price and item_price[0].uom == pctx.uom and not pctx.get("items", [{}])[0].get("is_free_item", 0):
>>>>>>> 7c9c0c7776 (fix: error)
return item_price[0].price_list_rate
>>>>>>> a3596f717b (fix: dont update rate of free item when batch is updated)

Expand Down

0 comments on commit 61d5680

Please sign in to comment.