Commit 55aa6c5d authored by Sebastien Robin's avatar Sebastien Robin

make sure to set a right codification on counters

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12445 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a0a7da43
......@@ -512,9 +512,17 @@ class TestERP5BankingMixin:
caisse_courante.newContent(id='billets_mutiles', portal_type='Category', codification='', vault_type='site/surface/caisse_courante')
# create counter for surface
for s in ['banque_interne', 'gros_versement', 'gros_paiement']:
s = surface.newContent(id='%s' %(s,), portal_type='Category', codification='', vault_type='site/surface/%s' %(s,))
vault_codification = c.getCodification()
if s == 'banque_interne':
vault_codification += 'BI'
elif s == 'gros_versement':
vault_codification += 'GV'
elif s == 'gros_paiement':
vault_codification += 'GP'
s = surface.newContent(id='%s' %(s,), portal_type='Category', codification=vault_codification, vault_type='site/surface/%s' %(s,))
for ss in ['guichet_1', 'guichet_2', 'guichet_3']:
ss = s.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/surface/%s/guichet' %(s.getId(),))
final_vault_codification = vault_codification + ss[-1]
ss = s.newContent(id='%s' %(ss,), portal_type='Category', codification=final_vault_codification, vault_type='site/surface/%s/guichet' %(s.getId(),))
for sss in ['encaisse_des_billets_et_monnaies',]:
sss = ss.newContent(id='%s' %(sss,), portal_type='Category', codification='', vault_type='site/surface/%s/guichet' %(s.getId(),))
for ssss in ['entrante', 'sortante']:
......
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