Commit 1b8b3797 authored by Sebastien Robin's avatar Sebastien Robin

define more properties on items in order to calculate the security

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15410 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a03f90b
......@@ -804,7 +804,8 @@ class TestERP5BankingMixin:
return bank_account
def createCheckbook(self, id, vault, bank_account, min, max, date=None):
def createCheckbook(self, id, vault, bank_account, min, max, date=None,
destination_value=None):
"""
Create a checkbook for the given bank account
"""
......@@ -859,7 +860,7 @@ class TestERP5BankingMixin:
self.checkbook_model_1 = self.checkbook_model
def createCheck(self, id, reference, checkbook, bank_account=None,
resource_value=None):
resource_value=None, destination_value=None):
"""
Create Check in a checkbook
"""
......@@ -867,7 +868,8 @@ class TestERP5BankingMixin:
portal_type = 'Check',
reference=reference,
destination_payment_value=bank_account,
resource_value=resource_value
resource_value=resource_value,
destination_value=destination_value
)
# mark the check as issued
......
......@@ -143,7 +143,7 @@ class TestERP5BankingCheckPaymentMixin:
self.createCheckAndCheckbookModel()
# create a check
self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
vault=self.bi_counter,
vault=self.paris,
bank_account=self.bank_account_1,
min=50,
max=100,
......@@ -152,27 +152,33 @@ class TestERP5BankingCheckPaymentMixin:
self.check_1 = self.createCheck(id='check_1',
reference='0000050',
resource_value=self.check_model,
checkbook=self.checkbook_1)
checkbook=self.checkbook_1,
destination_value=self.paris)
self.check_2 = self.createCheck(id='check_2',
reference='0000051',
resource_value=self.check_model,
checkbook=self.checkbook_1)
checkbook=self.checkbook_1,
destination_value=self.paris)
self.check_3 = self.createCheck(id='check_3',
reference='0000052',
resource_value=self.check_model,
checkbook=self.checkbook_1)
checkbook=self.checkbook_1,
destination_value=self.paris)
self.check_4 = self.createCheck(id='check_4',
reference='0000053',
resource_value=self.check_model,
checkbook=self.checkbook_1)
checkbook=self.checkbook_1,
destination_value=self.paris)
self.check_5 = self.createCheck(id='check_5',
reference='0000054',
resource_value=self.check_model,
checkbook=self.checkbook_1)
checkbook=self.checkbook_1,
destination_value=self.paris)
self.check_5 = self.createCheck(id='check_6',
reference='0000056',
resource_value=self.check_model,
checkbook=self.checkbook_1)
checkbook=self.checkbook_1,
destination_value=self.paris)
self.non_existant_check_reference = '0000055'
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
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