fix: query
This commit is contained in:
parent
869ea1d9e4
commit
22d2970339
@ -17,8 +17,7 @@ def execute():
|
|||||||
|
|
||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""UPDATE `tabQuotation` qo SET qo.status = 'Expired' WHERE {cond} and not exists({invalid_so_against_quo})"""
|
"""UPDATE `tabQuotation` qo SET qo.status = 'Expired' WHERE {cond} and not exists({invalid_so_against_quo})"""
|
||||||
.format(cond=cond, invalid_so_against_quo=invalid_so_against_quo),
|
.format(cond=cond, invalid_so_against_quo=invalid_so_against_quo)
|
||||||
(nowdate())
|
|
||||||
)
|
)
|
||||||
|
|
||||||
valid_so_against_quo = """
|
valid_so_against_quo = """
|
||||||
@ -32,6 +31,5 @@ def execute():
|
|||||||
|
|
||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""UPDATE `tabQuotation` qo SET qo.status = 'Closed' WHERE {cond} and not exists({valid_so_against_quo})"""
|
"""UPDATE `tabQuotation` qo SET qo.status = 'Closed' WHERE {cond} and not exists({valid_so_against_quo})"""
|
||||||
.format(cond=cond, valid_so_against_quo=valid_so_against_quo),
|
.format(cond=cond, valid_so_against_quo=valid_so_against_quo)
|
||||||
(nowdate())
|
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user