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:
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 @@ class TestERP5BankingMixin:
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()
......
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