fix: use 'eq' and isnull() on qb conditions

(cherry picked from commit eee86d2e4b)
(cherry picked from commit 22689958da)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
ruthra kumar
2024-03-28 09:17:36 +05:30
committed by Akhil Narang
parent 2425119b5e
commit b4ed2d2c16
2 changed files with 5 additions and 5 deletions

View File

@@ -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()