mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 06:02:09 +01:00
fix: lost quotation not to expired
(cherry picked from commit 69ffef8c0e)
This commit is contained in:
@@ -268,7 +268,7 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False):
|
|||||||
|
|
||||||
def set_expired_status():
|
def set_expired_status():
|
||||||
# filter out submitted non expired quotations whose validity has been ended
|
# filter out submitted non expired quotations whose validity has been ended
|
||||||
cond = "`tabQuotation`.docstatus = 1 and `tabQuotation`.status != 'Expired' and `tabQuotation`.valid_till < %s"
|
cond = "`tabQuotation`.docstatus = 1 and `tabQuotation`.status NOT IN ('Expired', 'Lost') and `tabQuotation`.valid_till < %s"
|
||||||
# check if those QUO have SO against it
|
# check if those QUO have SO against it
|
||||||
so_against_quo = """
|
so_against_quo = """
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user