Commit f3951aa6 authored by Aurel's avatar Aurel

add new vault in cash sorting room

allow to pass parameter to bank account creation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8758 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88668eb5
No related merge requests found
...@@ -462,7 +462,7 @@ class TestERP5BankingMixin: ...@@ -462,7 +462,7 @@ class TestERP5BankingMixin:
sss.newContent(id='%s' %(ssss,), portal_type='Category', codification='', vault_type='site/surface/%s/guichet' %(s.getId(),)) sss.newContent(id='%s' %(ssss,), portal_type='Category', codification='', vault_type='site/surface/%s/guichet' %(s.getId(),))
# create sort room # create sort room
salle_tri = surface.newContent(id='salle_tri', portal_type='Category', codification='', vault_type='site/surface/salle_tri') salle_tri = surface.newContent(id='salle_tri', portal_type='Category', codification='', vault_type='site/surface/salle_tri')
for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_billets_recus_pour_ventilation']: for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_billets_recus_pour_ventilation', 'encaisse_des_differences']:
ss = salle_tri.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/surface/salle_tri') ss = salle_tri.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/surface/salle_tri')
if 'ventilation' in ss.getId(): if 'ventilation' in ss.getId():
for country in ['France', 'Spain']: for country in ['France', 'Spain']:
...@@ -561,13 +561,14 @@ class TestERP5BankingMixin: ...@@ -561,13 +561,14 @@ class TestERP5BankingMixin:
last_name = last_name) last_name = last_name)
def createBankAccount(self, person, account_id, currency, amount): def createBankAccount(self, person, account_id, currency, amount, **kw):
""" """
Create and initialize a bank account for a person Create and initialize a bank account for a person
""" """
bank_account = person.newContent(id = account_id, bank_account = person.newContent(id = account_id,
portal_type = 'Bank Account', portal_type = 'Bank Account',
price_currency_value = currency) price_currency_value = currency,
**kw)
# validate this bank account for payment # validate this bank account for payment
bank_account.validate() bank_account.validate()
if amount == 0: if amount == 0:
......
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