diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py index 07afa4533f121e807e5563f09ae218f48bbff2fd..c3716c2895936ec37afa5108018376c5b12b7109 100644 --- a/product/ERP5Banking/tests/TestERP5BankingMixin.py +++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py @@ -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): """ diff --git a/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py b/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py index 56679955d01992f1f5e734fde67129eeefcb9f93..3e45b08d172f22d910dcbb9f89f5ce615e62e4b0 100755 --- a/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py +++ b/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py @@ -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):