From 20ad1bed8082251d1a3d202bf6f5fd233f95f9bb Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Fri, 6 Apr 2007 08:06:43 +0000
Subject: [PATCH] Define a quanity for usd 100 banknotes. Create
 encaisse_des_devises vault with an usd section.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13992 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Banking/tests/TestERP5BankingMixin.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py
index c90ca60ad5..94b0b297d2 100644
--- a/product/ERP5Banking/tests/TestERP5BankingMixin.py
+++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py
@@ -379,6 +379,10 @@ class TestERP5BankingMixin:
     self.quantity_usd_200 = {}
     # 2 banknotes of 200
     self.quantity_usd_200['variation/not_defined'] = 2
+    # quantity of usd banknote of 100
+    self.quantity_usd_100 = {}
+    # 2 banknotes of 100
+    self.quantity_usd_100['variation/not_defined'] = 2
     # quantity of usd banknote of 50
     self.quantity_usd_50 = {}
     # 3 banknotes of 50
@@ -544,6 +548,7 @@ class TestERP5BankingMixin:
         caisse_courante = surface.newContent(id='caisse_courante', portal_type='Category', codification='',  vault_type='site/surface/caisse_courante')
         caisse_courante.newContent(id='encaisse_des_billets_et_monnaies', portal_type='Category', codification='',  vault_type='site/surface/caisse_courante')
         caisse_courante.newContent(id='billets_mutiles', portal_type='Category', codification='',  vault_type='site/surface/caisse_courante')
+        caisse_courante.newContent(id='encaisse_des_devises', portal_type='Category', codification='',  vault_type='site/surface/caisse_courante')
         # create counter for surface
         for s in ['banque_interne', 'gros_versement', 'gros_paiement']:
           vault_codification = c.getCodification()
@@ -603,6 +608,9 @@ class TestERP5BankingMixin:
             if s.getId() == 'auxiliaire':
               for ss in ['encaisse_des_billets_a_ventiler_et_a_detruire', 'encaisse_des_billets_ventiles_et_detruits']:
                 s.newContent(id='%s' %(ss,), portal_type='Category', codification='',  vault_type='site/caveau/%s' %(s.getId(),))
+        # Create forreing currency entries in encaisse_des_devises.
+        for currency in ['usd', ]:
+          caisse_courante.encaisse_des_devises.newContent(id=currency, portal_type='Category', codification='', vault_type='surface/caisse_courante/%s' % (currency, ))
 
     # Create other site now but without vault
     if len(site_list) != 0:
-- 
2.30.9