mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: check null values in is_cancelled patch (#30594)
This commit is contained in:
@@ -20,7 +20,7 @@ def execute():
|
|||||||
"""
|
"""
|
||||||
UPDATE `tab{doctype}`
|
UPDATE `tab{doctype}`
|
||||||
SET is_cancelled = 0
|
SET is_cancelled = 0
|
||||||
where is_cancelled in ('', NULL, 'No')""".format(
|
where is_cancelled in ('', 'No') or is_cancelled is NULL""".format(
|
||||||
doctype=doctype
|
doctype=doctype
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ def execute():
|
|||||||
"""
|
"""
|
||||||
UPDATE `tab{doctype}`
|
UPDATE `tab{doctype}`
|
||||||
SET is_subcontracted = 0
|
SET is_subcontracted = 0
|
||||||
where is_subcontracted in ('', NULL, 'No')""".format(
|
where is_subcontracted in ('', 'No') or is_subcontracted is null""".format(
|
||||||
doctype=doctype
|
doctype=doctype
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user