Merge pull request #32036 from niyazrazak/patch-5

fix: lost quotation not to expired
This commit is contained in:
Deepesh Garg
2022-08-31 21:03:31 +05:30
committed by GitHub

View File

@@ -265,7 +265,7 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False):
def set_expired_status():
# filter out submitted non expired quotations whose validity has been ended
cond = "qo.docstatus = 1 and qo.status != 'Expired' and qo.valid_till < %s"
cond = "qo.docstatus = 1 and qo.status NOT IN ('Expired', 'Lost') and qo.valid_till < %s"
# check if those QUO have SO against it
so_against_quo = """
SELECT