Commit 78dadfa2 authored by Sebastien Robin's avatar Sebastien Robin

add transit vault

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8834 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bba18f84
...@@ -498,8 +498,13 @@ class TestERP5BankingMixin: ...@@ -498,8 +498,13 @@ class TestERP5BankingMixin:
for s in ['auxiliaire', 'reserve', 'externes', 'serre','devises']: for s in ['auxiliaire', 'reserve', 'externes', 'serre','devises']:
s = caveau.newContent(id='%s' %(s,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s,)) s = caveau.newContent(id='%s' %(s,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s,))
if s.getId() == 'serre': 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(),)) 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: else:
for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_externes', for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_externes',
'encaisse_des_billets_recus_pour_ventilation','encaisse_des_devises']: 'encaisse_des_billets_recus_pour_ventilation','encaisse_des_devises']:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment