Commit 19962b5a authored by Vincent Pelletier's avatar Vincent Pelletier

Add a case where there are more than one negative stock date to check the right one is returned.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16102 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 332c674b
......@@ -1368,6 +1368,10 @@ class TestNextNegativeInventoryDate(InventoryAPITestCase):
self.assertEquals(getNextNegativeInventoryDate(node_uid=node_uid), date+2)
makeMovement(quantity=5, change_way=1, start_date=date+1)
self.assertEquals(getNextNegativeInventoryDate(node_uid=node_uid), None)
makeMovement(quantity=7, change_way=0, start_date=date+5)
self.assertEquals(getNextNegativeInventoryDate(node_uid=node_uid), date+5)
makeMovement(quantity=7, change_way=1, start_date=date+4)
self.assertEquals(getNextNegativeInventoryDate(node_uid=node_uid), None)
makeMovement(quantity=7, change_way=0, start_date=date+3)
self.assertEquals(getNextNegativeInventoryDate(node_uid=node_uid), date+3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment