mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-26 10:08:30 +00:00
fix valid date
This commit is contained in:
@@ -219,11 +219,8 @@ class TestQuotation(unittest.TestCase):
|
||||
yesterday = getdate(nowdate()) - datetime.timedelta(days=1)
|
||||
expired_quotation = make_quotation(item_list=quotation_item)
|
||||
# Manually set valid till date to bypass validation
|
||||
frappe.db.sql("""
|
||||
UPDATE tabQuotation
|
||||
SET valid_till = %s
|
||||
WHERE name = %s
|
||||
""",(yesterday,expired_quotation.name))
|
||||
expired_quotation.valid_till = yesterday
|
||||
expired_quotation.save()
|
||||
set_expired_status()
|
||||
|
||||
self.assertEqual(expired_quotation.status,"Expired")
|
||||
|
||||
Reference in New Issue
Block a user