Commit be6dd371 authored by Kevin Deldycke's avatar Kevin Deldycke

redefinition of bank account numbers (IBAN & BBAN)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2681 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75afbb15
############################################################################## ##############################################################################
# #
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002-2005 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# Kevin Deldycke <kevin@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential # programmers who take the whole responsability of assessing all potential
...@@ -27,37 +28,31 @@ ...@@ -27,37 +28,31 @@
############################################################################## ##############################################################################
class BankAccount: class BankAccount:
""" """
Properties for BankAccount Objects Properties for BankAccount Objects
""" """
_properties = ( _properties = (
{ 'id' : 'iban', {'id' : 'bank_country_code',
'description' : """The IBAN of this bank account. IBAN 'description' : 'The ISO 3166 2-letters country code of the bank to include in the IBAN.',
is and international standard for identifying bank 'type' : 'string',
accounts worldwide. It is compulsory in the European Union.""", 'mode' : 'w'
'type' : 'string', },
'mode' : 'w' }, {'id' : 'bank_code',
{ 'id' : 'bank_name', 'description' : 'The code that identify the Bank holding this bank account. It it the first part of the BBAN.',
'description' : 'The name and country of the Bank holding this bank account', 'type' : 'string',
'type' : 'string', 'mode' : 'w'
'mode' : 'w' }, },
{ 'id' : 'bank_branch_name', {'id' : 'branch',
'description' : 'The branch holding this bank account', 'description' : 'The branch code holding this bank account. This is the middle part of the BBAN.',
'type' : 'string', 'type' : 'string',
'mode' : 'w' }, 'mode' : 'w'
{ 'id' : 'bank_account_number', },
'description' : 'The bank account number in the branch', {'id' : 'bank_account_number',
'type' : 'string', 'description' : 'The bank account number. This is the last part of the BBAN',
'mode' : 'w' }, 'type' : 'string',
{ 'id' : 'bank_account_id_type', 'mode' : 'w'
'description' : 'A type (ex. RIB, SWIFT, etc.) for the optional id', },
'type' : 'string', )
'mode' : 'w' },
{ 'id' : 'bank_account_id',
'description' : 'An optional id for this bank account',
'type' : 'string',
'mode' : 'w' },
)
_categories = ( 'region', 'source') _categories = ( 'source', )
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