mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
fix: Set Quotation expired if not Ordered or Lost (#20354)
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
This commit is contained in:
committed by
Chinmay Pai
parent
c438a20b76
commit
a7d1985b5f
@@ -182,8 +182,12 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False):
|
|||||||
return doclist
|
return doclist
|
||||||
|
|
||||||
def set_expired_status():
|
def set_expired_status():
|
||||||
frappe.db.sql("""UPDATE `tabQuotation` SET `status` = 'Expired'
|
frappe.db.sql("""
|
||||||
WHERE `status` != "Expired" AND `valid_till` < %s""", (nowdate()))
|
UPDATE
|
||||||
|
`tabQuotation` SET `status` = 'Expired'
|
||||||
|
WHERE
|
||||||
|
`status` not in ('Ordered', 'Expired', 'Lost', 'Cancelled') AND `valid_till` < %s
|
||||||
|
""", (nowdate()))
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def make_sales_invoice(source_name, target_doc=None):
|
def make_sales_invoice(source_name, target_doc=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user