Skip to main content

Account rules

Accounting rules allow you to automate the selection of expense categories based on text patterns found in transaction descriptions. This saves time by pre-filling the expense account when the description matches a defined pattern.

Written by Maria Tirkkonen

How Account Rules Work

Bezala checks the transaction description against all defined account rules, when a new receipt form is created. If a pattern matches text in the receipt’s description, the associated expense account is automatically assigned.

The purchase type must be added to Bezala's chart of accounts for the account rule to work. Instructions for how to add purchase type accounts (i.e. EXPENSE accounts) can be found here.

Managing Account Rules

If you have Manager/Accountant role in Bezala you can manage the account rules in Bezala’s webversion.

Bezala works in English, Finnish, Swedish and German. Make sure you add rules in all languages your Bezala users use.

Navigate to:

  1. Click on Main menu icon in upper left-hand corner in web version

  2. Click on “Automation”

  3. Click on “Account Rules”-tab

  4. Click “Download Spreadsheet”.

    1. Use your downloaded Excel as template. Don’t change column title or order of columns in template.

    2. Write 1 keyword/row (i.e. Pattern column) starting from row 4 in template.

      1. Account rules work correctly when only one account is applicable for the rule’s keyword. If your hotel costs are e.g. divided into hotel domestic account and hotel international account, the keyword hotel is not a good keyword.

      2. A keyword doesn’t have to be a full word. Shorter keywords can be better than longer. Here are a few examples:

        1. park instead of parking

        2. Tesl instead of Tesla supercharger

        3. plane or ticket instead of airplane ticket. Here you should think about if you have different accounts for e.g. train and airplane tickets, then it is correct to use plane. If not, then ticket covers many more situations compared to plane.

    3. Make sure Account Code matches the correct account code in the Accounts-page of your Bezala environment.

      1. How to check: Main menu ==> Accounts ==> Code-column cell value for the account you want to use as purchase type.

  5. Save Excel somewhere you can easily find it on your device.

  6. Click “Upload Spreadsheet” and choose your saved Excel file.

Note: Account rules are specific for each Bezala environment. If you want to have the same rules for each environment in e.g. your company group, you need to “Upload spreadsheet” in every Bezala environment separately. This assumes that your chart of accounts are the same for every company.

Deleting and filtering account rules

The Excel import can only add new rules and update existing ones. Delete rules by clicking the red trash icon on correct rule row.

Filtering: Use the Pattern and Account Code text filters to search through your rules in “Account rules”-tab. (Filter can be useful especially if you need to delete a rule, since rules can’t be deleted by Excel import).

  • Filter search by Account Code if you want to check a specific account's keywords.

  • Filter search by Pattern if you notice a specific word being automatically chosen to wrong purchase type or no purchase type.

    • Wrong account assigned to keyword:

      • If keyword gets 2+ results with different account codes, you should:

        • delete the wrong account rule or

        • edit the keyword for wrong account to match it without conflict with correct account keyword. E.g. if you have different accounts for train and airplane tickets, don’t use ticket as a keyword.

    • No account assigned to keyword:

      • Add new rule with wanted keyword in pattern column and the correct account code in account code column.

FAQ

Why isn't my account rule being applied?

  • Check if the user has a default expense account in their profile settings (Main menu ==> Users ==> yellow edit pen on correct user row). Default accounts may take priority.

  • Check above instructions for "Wrong account assigned to keyword" and/or "No account assigned to keyword".

Can I have multiple rules for different account codes?

Yes, the more rules the better. Make sure that pattern i.e. keywords are not in conflict with each other (i.e. same pattern for 2+ account codes). Rules are easier to make for accounts that have a clear distinction, where e.g. the word hotel is not recommended if you have one account for domestic and one for international hotel receipts.

When should I use account rules?

  • When an account has a clear distinction, e.g. taxi-related keywords for taxi account code.

  • When users often use wrong account for specific keywords. For example, if you have different accounts for software receipts in EU and outside EU.

    • Don't use software as keyword. Use specific company names as keywords and assign them to correct account codes accordingly.

Can you give me examples of good account rules to have?

Make sure you use correct template from Bezala (Automation ==> Account rules-tab ==> Download Spreadsheet), but here is a table of rules in English, Finnish and Swedish for hotel account (7820), travel expenses (7800), parking (7850) and taxi (7810).

Pattern

Account Code

hotel

7820

hostel

7820

motel

7820

airbnb

7820

booking.com

7820

Scandic

7820

ticket

7800

train

7800

metro

7800

hsl

7800

hrt

7800

tunnelbana

7800

arlanda express

7800

bus

7800

Finnair

7800

Lufthansa

7800

airplane

7800

KML

7800

Norwegian

7800

SAS

7800

VR

7800

SJ

7800

Flixbus

7800

park

7850

pysäk

7850

taxi

7810

taksi

7810

uber

7810

bolt

7810

SJ: this rule might not be a good choice, since many Swedish words include the letters sj.

Did this answer your question?