In Spain, the number of digits of account numbers is fixed for all accounts (or better said, for non-view accounts). The thing is that the number of fixed digits is choosen by the company so we have customers that use 6 digits, others 8, others 9 and one even uses 11 digits.
This means that we do not know the exact account code until the chart of accounts is created and we need to know that number in the "account.account.create_chart_account" wizard. Let me put an example. There's the following account structure: 4 - (view) Acreedores y deudores => Customers and Suppliers 43 - (view) Clientes => Customers 430 - (view) Clientes => Customers 4300 - (view) Clientes (euros) => Customers (euro) 4300000 - (receivable) Clientes The number of zeros in the last account should depend on the number of digits the company decides to work with. So basically what we'd need: - Add a new field to "account.account.create_chart_account.account" that allowed the user to select the number of digits. - To be able to do is to use a special sign in the account code that allowed us define codes such as "4300%" or "472%18", which would be replaced by the necessary number of "0" so that the final code has the required number of digits. Do other countries need that? Should we put that into core or better in a new module? -- Albert Cervera i Areny http://www.NaN-tic.com Tel: +34 93 553 18 03 http://twitter.com/albertnan http://www.nan-tic.com/blog -- [email protected] mailing list
