set transaction date to yesterday

This commit is contained in:
0Pranav 2019-11-25 16:26:04 +05:30
parent 032baeac5b
commit cf3a2f6579

View File

@ -217,7 +217,7 @@ class TestQuotation(unittest.TestCase):
}
]
yesterday = getdate(nowdate()) - datetime.timedelta(days=1)
expired_quotation = make_quotation(item_list=quotation_item,do_not_submit=True)
expired_quotation = make_quotation(item_list=quotation_item,transaction_date=yesterday,do_not_submit=True)
expired_quotation.valid_till = yesterday
expired_quotation.save()
expired_quotation.submit()