mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix: use 'eq' and isnull() on qb conditions
(cherry picked from commiteee86d2e4b) (cherry picked from commit22689958da) Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
committed by
Akhil Narang
parent
2425119b5e
commit
b4ed2d2c16
@@ -22,7 +22,7 @@ def execute():
|
||||
.where(
|
||||
(si.creation.gte(creation_date))
|
||||
& (si.docstatus == 1)
|
||||
& (si.is_return == True) # noqa: E712
|
||||
& (si.is_return.eq(True))
|
||||
& (si.return_against.notnull())
|
||||
)
|
||||
.run()
|
||||
@@ -51,7 +51,7 @@ def execute():
|
||||
.where(
|
||||
(pi.creation.gte(creation_date))
|
||||
& (pi.docstatus == 1)
|
||||
& (pi.is_return == True) # noqa: E712
|
||||
& (pi.is_return.eq(True))
|
||||
& (pi.return_against.notnull())
|
||||
)
|
||||
.run()
|
||||
|
||||
Reference in New Issue
Block a user