Recode Account Cards
This tool renumbers the codes of the sub accounts under a main account you choose. Each sub account takes the code of its main account followed by a sequence number. For the steps, see Recode accounts.
Opening the window
- From the ribbon: Accounts > Tools > Tools > Recode Account Cards. The icon appears if your licence includes the extended reports feature.
- You need the Recode Account Cards permission in Users Management. It is one check box that allows running the tool.
- From the Chart of Accounts: right-click an account that has sub accounts and choose Recode Accounts. The window opens with the account already chosen.

Field and buttons
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Account | The main account whose sub accounts will be recoded. | Yes | Choose an account that has sub accounts. Example: 132. The code of this account does not change. |
| Button | What it does |
|---|---|
| Ok | Asks for confirmation, then recodes the sub accounts. |
| Cancel | Closes the window with no change. |
What the program does
The program recodes from the chosen account downward, level by level:
- It takes the direct children of the account and sorts them by their current codes.
- It gives each child a new code: the code of its parent followed by the child's sequence number.
- It writes the sequence number with enough digits for the number of children: one digit up to 9 children, two up to 99, three up to 999, and four after that.
- It repeats the steps for the children of each child, down to the last level.
- If an account gets the same code as another account, the program adds the character
*at the end of its code.
Example: the account 11 has three sub accounts with the codes 1105, 1102 and 1109. After the command, 1102 becomes 111, 1105 becomes 112 and 1109 becomes 113. If it had twelve sub accounts, their codes would be 1101 to 1112.
The program does not change account names, balances or entries. It changes the code only. If you choose an account with no sub accounts, nothing changes, and the success message still appears.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Account must be selected | You clicked Ok and Account is empty. | Choose an account. |
| This operation will re-code the sub account cards. Do you want to continue? | You clicked Ok after choosing an account. | Choose Yes to continue, or No to cancel. |
| Operation successfully completed | The recoding finished. | Nothing. |
| You don't have the appropriate authority to perform this operation | You do not have the Recode Account Cards permission. | Ask the users administrator for it. |
| Error in PrcReorderAccountsCodes | The command failed in the database. | Try again. If the error repeats, contact technical support. |
After success, the program records the operation in the operations log with the code and name of the account.
Related
This page applies to alameen ERP 10, version 10.1.79.764.