[Erp5-report] r17695 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 20 10:31:22 CET 2007
Author: seb
Date: Tue Nov 20 10:31:22 2007
New Revision: 17695
URL: http://svn.erp5.org?rev=17695&view=rev
Log:
we must specify start_date when reseting an inventory
Modified:
erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py
Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=17695&r1=17694&r2=17695&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Tue Nov 20 10:31:22 2007
@@ -1100,7 +1100,7 @@
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 @@
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):
"""
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py?rev=17695&r1=17694&r2=17695&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py Tue Nov 20 10:31:22 2007
@@ -201,11 +201,14 @@
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):
More information about the Erp5-report
mailing list