[Erp5-report] r8834 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jul 27 14:34:45 CEST 2006


Author: seb
Date: Thu Jul 27 14:34:41 2006
New Revision: 8834

URL: http://svn.erp5.org?rev=8834&view=rev
Log:
add transit vault

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

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=8834&r1=8833&r2=8834&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Thu Jul 27 14:34:41 2006
@@ -498,8 +498,13 @@
       for s in ['auxiliaire', 'reserve', 'externes', 'serre','devises']:
         s = caveau.newContent(id='%s' %(s,), portal_type='Category', codification='',  vault_type='site/caveau/%s' %(s,))
         if s.getId() == 'serre':
-          for ss in ['encaisse_des_billets_neufs_non_emis', 'encaisse_des_billets_retires_de_la_circulation','encaisse_des_billets_detruits']:
+          for ss in ['encaisse_des_billets_neufs_non_emis', 'encaisse_des_billets_retires_de_la_circulation','encaisse_des_billets_detruits','encaisse_des_billets_neufs_non_emis_en_transit_allant_a']:
             ss =  s.newContent(id='%s' %(ss,), portal_type='Category', codification='',  vault_type='site/caveau/%s' %(s.getId(),))
+           if 'transit' in ss.getId():
+              for country in ['France', 'Spain']:
+                if country[0] != c.getCodification()[0]:
+                  ss.newContent(id='%s' %(country,), portal_type='Category', codification='',  vault_type='site/caveau/%s' %(s.getId(),))
+
         else:
           for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_externes',
                      'encaisse_des_billets_recus_pour_ventilation','encaisse_des_devises']:
@@ -781,7 +786,7 @@
                                  line['variation_id'],
                                  line['variation_value'],
                                  line['quantity'],
-				 variation_list=variation_list)
+                                 variation_list=variation_list)
     # deliver the inventory
     if inventory.getSimulationState()!='delivered':
       inventory.deliver()




More information about the Erp5-report mailing list