Skip to content

Commit

Permalink
fix: lost quotation not to expired
Browse files Browse the repository at this point in the history
  • Loading branch information
niyazrazak authored Aug 29, 2022
1 parent af5cbc8 commit 69ffef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/quotation/quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def update_item(obj, target, source_parent):

def set_expired_status():
# 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
so_against_quo = """
SELECT
Expand Down

0 comments on commit 69ffef8

Please sign in to comment.