mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 22:38:25 +00:00
chore: fix pre-commit/linter error
This commit is contained in:
@@ -1051,7 +1051,11 @@ 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)
|
||||
|
||||
if item_price and item_price[0][2] == params.get("uom") and not params.get("items", [{}])[0].get("is_free_item", 0):
|
||||
if (
|
||||
item_price
|
||||
and item_price[0][2] == params.get("uom")
|
||||
and not params.get("items", [{}])[0].get("is_free_item", 0)
|
||||
):
|
||||
return item_price[0][1]
|
||||
|
||||
return 0.0
|
||||
|
||||
Reference in New Issue
Block a user