Commit 876a1205 authored by Sebastien Robin's avatar Sebastien Robin

we must specify start_date when reseting an inventory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17695 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbbff553
......@@ -1100,7 +1100,7 @@ class TestERP5BankingMixin:
def resetInventory(self,
sequence=None, line_list=None, sequence_list=None, extra_id=None,
destination=None, currency=None, **kwd):
destination=None, currency=None, start_date=None, **kwd):
"""
Make sure we can not close the counter date
when there is still some operations remaining
......@@ -1111,7 +1111,8 @@ class TestERP5BankingMixin:
extra_id = '_reset'
# Before the test, we need to input the inventory
self.createCashInventory(source=None, destination=destination, currency=currency,
line_list=line_list,extra_id=extra_id, reset_quantity=1)
line_list=line_list,extra_id=extra_id, reset_quantity=1,
start_date=start_date)
def stepDeleteResetInventory(self, sequence=None, sequence_list=None, **kwd):
"""
......
......@@ -201,11 +201,14 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin,
bi_counter = self.paris.surface.banque_interne
bi_counter_vault = bi_counter.guichet_1.encaisse_des_billets_et_monnaies.entrante
line_list = self.line_list
start_date = DateTime()
self.resetInventory(source=None, destination=bi_counter_vault, currency=self.currency_1,
line_list=line_list,extra_id='_reset_in')
line_list=line_list,extra_id='_reset_in',
start_date=start_date)
bi_counter_vault = bi_counter.guichet_1.encaisse_des_billets_et_monnaies.sortante
self.resetInventory(source=None, destination=bi_counter_vault, currency=self.currency_1,
line_list=line_list,extra_id='_reset_out')
line_list=line_list,extra_id='_reset_out',
start_date=start_date)
def stepCheckRightStockBeforeClosingDate(self,
sequence=None, sequence_list=None, **kwd):
......
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