set transaction date to yesterday
This commit is contained in:
parent
032baeac5b
commit
cf3a2f6579
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user