mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix: use 'eq' and isnull() on qb conditions
(cherry picked from commit eee86d2e4b)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
committed by
Akhil Narang
parent
41d7c03cbb
commit
22689958da
@@ -62,10 +62,10 @@ def fetch_item_prices(
|
||||
or_conditions = []
|
||||
if items:
|
||||
and_conditions.append(ip.item_code.isin([x.item_code for x in items]))
|
||||
and_conditions.append(ip.selling == True) # noqa: E712
|
||||
and_conditions.append(ip.selling.eq(True))
|
||||
|
||||
or_conditions.append(ip.customer == None) # noqa: E711
|
||||
or_conditions.append(ip.price_list == None) # noqa: E711
|
||||
or_conditions.append(ip.customer.isnull())
|
||||
or_conditions.append(ip.price_list.isnull())
|
||||
|
||||
if customer:
|
||||
or_conditions.append(ip.customer == customer)
|
||||
|
||||
Reference in New Issue
Block a user