fix: Batch Price gets updated only if it is a billed item
(cherry picked from commit 9597b1a69e)
# Conflicts:
# erpnext/stock/get_item_details.py
This commit is contained in:
@@ -1051,8 +1051,14 @@ 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
|
||||
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 params.get("is_free_item") == 0:
|
||||
return item_price[0].price_list_rate
|
||||
>>>>>>> 9597b1a69e (fix: Batch Price gets updated only if it is a billed item)
|
||||
|
||||
return 0.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user