From 876a120596210ddd9dec5cbf29f3d07a98457e69 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 20 Nov 2007 09:31:22 +0000 Subject: [PATCH] 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 --- product/ERP5Banking/tests/TestERP5BankingMixin.py | 5 +++-- .../ERP5Banking/tests/testERP5BankingAvailableInventory.py | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py index 07afa4533f..c3716c2895 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 56679955d0..3e45b08d17 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): -- 2.30.9