fix: check null values in is_cancelled patch (#30594)

This commit is contained in:
Ankush Menat 2022-04-06 14:20:39 +05:30 committed by GitHub
parent 4895761d89
commit bb875fe217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ def execute():
"""
UPDATE `tab{doctype}`
SET is_cancelled = 0
where is_cancelled in ('', NULL, 'No')""".format(
where is_cancelled in ('', 'No') or is_cancelled is NULL""".format(
doctype=doctype
)
)

View File

@ -10,7 +10,7 @@ def execute():
"""
UPDATE `tab{doctype}`
SET is_subcontracted = 0
where is_subcontracted in ('', NULL, 'No')""".format(
where is_subcontracted in ('', 'No') or is_subcontracted is null""".format(
doctype=doctype
)
)