mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-27 02:28:30 +00:00
chore: linter fix
This commit is contained in:
@@ -1095,7 +1095,7 @@ def get_batch_based_item_price(pctx: ItemPriceCtx | dict | str, item_code) -> fl
|
||||
if not item_price:
|
||||
item_price = get_item_price(pctx, item_code, ignore_party=True, force_batch_no=True)
|
||||
|
||||
is_free_item = pctx.get('items', [{}])[0].get('is_free_item')
|
||||
is_free_item = pctx.get("items", [{}])[0].get("is_free_item")
|
||||
|
||||
if item_price and item_price[0].uom == pctx.uom and not is_free_item:
|
||||
return item_price[0].price_list_rate
|
||||
|
||||
Reference in New Issue
Block a user