[Erp5-report] r14244 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 26 07:00:22 CEST 2007


Author: seb
Date: Thu Apr 26 07:00:20 2007
New Revision: 14244

URL: http://svn.erp5.org?rev=14244&view=rev
Log:
make sure to check the sorting vault when we close a counter date

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py?rev=14244&r1=14243&r2=14244&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingAvailableInventory.py Thu Apr 26 07:00:20 2007
@@ -240,6 +240,25 @@
     counter_date = self.counter_date_5
     self.assertEquals(counter_date.getReference(),'4')
 
+  def stepSetInventoryInSortVault(self, sequence=None, sequence_list=None, **kwd):
+    """
+    put some banknotes into the vault used for sorting
+    """
+    destination = self.paris.surface.salle_tri.encaisse_des_billets_et_monnaies
+    self.createCashInventory(source=None, 
+                             destination=destination, 
+                             currency=self.currency_1,
+                             line_list=self.line_list,
+                             extra_id='_sort_vault')
+
+  def stepResetInventoryInSortVault(self, sequence=None, sequence_list=None, **kwd):
+    """
+    put some banknotes into the vault used for sorting
+    """
+    inventory_module = self.getPortal().cash_inventory_module
+    to_delete_id_list = [x for x in inventory_module.objectIds() 
+                         if x.find('_sort_vault')>=0]
+    inventory_module.manage_delObjects(ids=to_delete_id_list)
 
   def test_01_ERP5BankingAvailabeInventory(self, quiet=QUIET, run=RUN_ALL_TEST):
     """
@@ -270,6 +289,9 @@
                       'CheckAccountFinalInventory ' \
                       'CheckBadStockBeforeClosingDate ' \
                       'ResetInventory Tic ' \
+                      'SetInventoryInSortVault Tic ' \
+                      'CheckBadStockBeforeClosingDate ' \
+                      'ResetInventoryInSortVault Tic ' \
                       'CheckRightStockBeforeClosingDate ' \
                       'CheckReferenceIsIncreasedEveryDay '
     sequence_list.addSequenceString(sequence_string)




More information about the Erp5-report mailing list