How to Set Up Posting Rules from Your Chart of Accounts
Set Up Posting Rules writes the posting rules for you. Paste the chart of accounts from your accounting system and answer four questions. xAssets suggests an account for each part of a journal, you check the list, and one click writes the rules.
A posting rule says which account is debited and which is credited for a transaction type. Without a rule, a transaction is left out of the journal.
Before You Begin
- Switch to the Fixed Asset Management profile.
- You need to be in the ACCOUNTS, ADMINS, CONFIG or FINANCEDIRECTOR user group.
- Set up your asset groups (category groups) first if you keep separate accounts for each class of asset.
Step 1: Copy the Chart of Accounts
Export the chart of accounts from your accounting system and open it in a spreadsheet.
| Accounting system | Where to export it |
|---|---|
| Xero | Accounting > Chart of accounts > Export |
| QuickBooks Online | Chart of accounts > Run report, then Export to Excel |
| Sage 50 Accounts | Nominal codes, then List |
| Business Central, NetSuite, Sage Intacct | The chart of accounts page, then Open in Excel or Export |
Select the code, name and type columns together with their heading row, and copy them. Other columns can come too. They are ignored.
xAssets finds the columns by their headings:
| Column | Headings it recognizes |
|---|---|
| Code | Code, Account Code, Nominal Code, Account Number, Number, No, N/C, Account ID |
| Name | Name, Account Name, Description, Title, Account |
| Type | Type, Account Type, Category, Account Category, Class, Detail Type |
A heading may start with *, as in Xero's export. A list with names and no codes (QuickBooks without account numbers) uses the name as the code. QuickBooks journals match accounts by name, so this is what its import needs.
Step 2: Answer the Questions
- Navigate to Financial Setup > Nominal Ledger > Set Up Posting Rules.

- Fill in the dialog:
| Field | Choose |
|---|---|
| Accounting system | The system your journals go to. Journals are then written in its import layout (see How to Choose the Journal Format) |
| Chart of accounts | Paste the columns from Step 1. Leave it blank to use the nominal codes already in xAssets |
| Accounts per asset group | One set of accounts for every asset group, or Separate accounts for each asset group |
| Construction in progress | Used if assets are built up in a construction in progress account before they are capitalized |
| Revaluation, impairment or indexation | Used if you revalue, impair or index assets |

- Click OK.
The pasted accounts are added to the nominal codes by code. A code that is already there gets the new name and account type. Nothing is deleted, because rules and past journals refer to the existing codes.
Step 3: Check the Suggested Accounts
The Posting Accounts list opens. Each row is one part an account plays in the journals:
| Posts To | Used for |
|---|---|
| Asset cost | Purchases, additions, disposals and transfers |
| Accumulated depreciation | The credit side of depreciation, and its removal on disposal |
| Depreciation expense | The debit side of depreciation |
| Gain or loss on disposal | The difference between book value and proceeds |
| Purchases clearing or accounts payable | The other side of purchases and disposal costs |
| Disposal proceeds | The bank, receivable or clearing account that receives sale proceeds |
| Construction in progress | Costs built up before capitalization (shown when used) |
| Revaluation reserve, Impairment expense, Retained earnings or general fund | Revaluation, impairment and indexation (shown when used) |
| Inter-company transfers | Transfers between companies (shown when there is more than one company) |
With separate accounts per asset group, each asset group that holds depreciating assets gets its own cost, accumulated depreciation, depreciation expense and disposal rows. Why This Account gives the reason for each suggestion.

To use a different account:
- Select the rows to change.
- Click Change account.
- Choose the Account and click OK.

The rows show Chosen by you. Running Set Up Posting Rules again keeps them, and suggests the other rows again.
A row with (choose an account) found no account that fits. A group row that says Uses the account for every asset group takes the account in the Every asset group row.
Step 4: Create the Posting Rules
- Click Create posting rules.
- Click Yes to confirm.
xAssets copies the current rules to the PostingRuleBackup table in the temp database. It then writes one rule for every asset group for each transaction type, plus a rule for each asset group whose accounts differ. A message gives the result:

A transaction type whose accounts are not all chosen keeps its current rules. The message names it, such as Disposal Sale. Choose the account in the list and click Create posting rules again.
Rules for a single category or a single status are kept. They are more specific, so they still take priority in journals.
Step 5: Check the Posting Rules
The Posting Rule Check list opens after the rules are written. It is also on Financial Setup > Nominal Ledger > Check Posting Rules, and on the Check posting rules button. Run it before writing the rules to see what is wrong with the rules you have now.

| Problem | Effect |
|---|---|
| Transactions with no posting rule | Left out of journals. The count shows how many |
| Debit and credit are the same account | The rule posts nothing |
| Posting rule names a missing account | The transactions drop out of journals |
| Depreciation on the wrong kind of account | The charge is debited to a balance sheet account, or credited to an expense account |
| No account chosen for a posting role | Transaction types that post to it are skipped |
| Amount posted is not a formula the journals know | The rule posts the whole amount |
| Steps do not post the whole amount | The steps of a rule add up to more or less than the transaction, so the ledger no longer matches the asset register |
The list says No problems found when every transaction has a rule.
Journal Entries by Transaction Type
Amounts on transactions are stored as positive numbers, so each entry below is literal.
| Transaction types | Debit | Credit |
|---|---|---|
| Purchase, Shipping Cost, Basis Adjustment, Freight, Custom Duty | Asset cost | Purchases clearing |
| Depreciation, Accelerated Depreciation | Depreciation expense | Accumulated depreciation |
| Disposal, Write off (lost or stolen), Disposal Original Value, Partial Disposal | Gain or loss on disposal | Asset cost |
| Disposal Accumulated Depreciation | Accumulated depreciation | Gain or loss on disposal |
| Disposal Sale | Disposal proceeds | Gain or loss on disposal |
| Disposal Cost | Gain or loss on disposal | Purchases clearing |
| Transfer Out | Inter-company transfers | Asset cost |
| Transfer In | Asset cost | Inter-company transfers |
| WIP Build Up, Capitalised Borrowing Costs | Construction in progress | Purchases clearing |
| CIP Transfer Out, CIP Basis Transfer Out | Purchases clearing | Construction in progress |
| CIP Transfer In | Asset cost | Purchases clearing |
| Revaluation Adjustment, Indexation Adjustment | Asset cost | Revaluation reserve |
| Impairment | Impairment expense | Accumulated depreciation |
CIP Transfer Out and CIP Transfer In together post Dr Asset cost, Cr Construction in progress.
Initial Depreciation Load and Fully Depreciated Purchase are not posted, as opening balances are already in your ledger. Running costs such as repairs, fuel and insurance are not posted either. Their invoices go through your accounting system already.
Disposal posts the net book value. Turn on the DisposeOriginalValue setting to post Disposal Original Value and Disposal Accumulated Depreciation in its place. That clears both the cost and the accumulated depreciation accounts.
Posting Part of a Transaction
Each posting rule has an Amount Posted. It says how much of the transaction the rule posts. The debit and the credit always take the same amount, so journals still balance.
| Amount Posted | Posts |
|---|---|
| TransactionAmount | The whole amount. This is the default |
| TransactionAmount * 0.5 | A share of the amount. Type any number, such as TransactionAmount * 0.6 for 60% |
| TransactionAmount * BusinessUse | The asset's business use percentage in that book, from its depreciation details |
| Remainder | What the transaction's other steps leave, so the steps add up to the whole amount |
| 0 | Nothing. The type has a rule, so it is not reported as missing, but no journal line is written |
To split a transaction between two accounts, add two rules for the same transaction type and asset group with different Step Number values:
- Step 1: the first account, with TransactionAmount * 0.6.
- Step 2: the second account, with Remainder.
Take a vehicle that is partly used privately. Give step 1 TransactionAmount * BusinessUse and the depreciation expense account, and step 2 Remainder and the private use account. Use this only in a book whose depreciation is the full charge, not one whose depreciation type already allows for business use.
Open Financial Setup > Nominal Ledger > Transaction Types and Posting Rules. To see the rules for a transaction type, click its number in the Posting Rules column.
Account Matching
Each account is scored for each row, and the highest score of 4 or more is suggested:
- Name: words that fit the row add points, for example "accumulated" and "depreciation" for Accumulated depreciation. Words that rule an account out take points away, so "Depreciation Charge" is not suggested for accumulated depreciation.
- Account type: an account of the expected type adds 3. Depreciation expense expects an Expense account. Cost and accumulated depreciation expect a Fixed Asset account.
- Asset group: for a group row, an account whose name contains the group's name adds 4. "Motor Vehicles - Cost" matches the Vehicles group, and the IT group matches "Computer".
The account type comes from the type column of your paste. Each system's names are read as one of Fixed Asset, Current Asset, Liability, Equity, Income or Expense. A Sage 50 list has no type column, so the standard Sage ranges are used. They are 0010-0999 fixed assets, 1000 current assets, 2000 liabilities, 3000 capital and reserves, 4000 sales, 5000-9999 purchases and overheads.
Important Notes
- The paste can hold up to about a thousand accounts. Paste a longer list in parts, running Set Up Posting Rules for each.
- A name may contain a comma. The code column must not.
- To undo the rules, restore them from the PostingRuleBackup table. Each run of Create posting rules replaces that copy.
- Rules can still be edited one at a time in Financial Setup > Nominal Ledger > Transaction Types and Posting Rules.
Related Articles
- How to Configure Nominal Codes for My GL -- Nominal codes and posting rules by hand
- How to Choose the Journal Format for Your Accounting System -- Journal files in your system's import layout
- How to Generate Journal Entries -- Producing the journals at period end
- Nominal Codes -- Reference for nominal codes