Academy index

Page referenceIntermediate/banking/rules

Automatic Transaction Classification Rules

Classification rules complete each incoming bank statement line: its category, payee or text. The main fields and buttons, and what a rule does and does not do.

Reviewed independently, claim by claim against the sources and the screens, on 3 December 2026.

Last checked against the screen and the code: 3 December 2026, version 4618ce238.

This page of the program is under construction: the reference states only what works in it today.

What this page is

When a new line comes in from an uploaded statement, the import tab, a bank feed or an import through the API, the active rules are tried lowest number first, and the first rule whose conditions hold decides alone: it gives the line a category, a payee or a new text. A line already on the statement does not change.

A rule chooses no account, posts no entry and matches no line. To post charges and interest, use the posting rules in Rule-based matching ▸ Journal Entries. The text a rule sets, however, is what the matching rules and posting rules read afterwards.

The conditions

Each condition is a field, an operator and a value. The fields: description, amount, reference, payee and transaction type. For texts: contains, does not contain, equals, does not equal, starts with, ends with, regular expression, empty, not empty; the comparison ignores letter case, Arabic marks and tatweel, the alef forms and extra spaces. For the amount: equals, does not equal, greater than, less than, between; it is compared without its sign. «Match All» needs every condition, «Match Any» one of them.

The «Applied Today» and «Success Rate» cards say «Not tracked by the server»: the program does not count how often a rule applies.

What does not work today

  • The «Transaction Type» condition is compared with the English word deposit or withdrawal as the import stores it, and the value is a text box with no list: typing the Arabic words for deposit or withdrawal matches no line.
  • «Import Rules» stops at the first refused rule in the file: the rules before it are saved, the message says the import failed, and the saved rules do not show until the list is reloaded.

Before you start

  • Nothing but the banking right; a rule works on the lines that come in after it is saved.

Fields

Field as on the screenMeaningRequired
NameThe rule's name.At least two characters in the form.Yes
PriorityThe order of trial: the lower number first, from 1 to 999 (100 by default).No
Match Logic«Match All» or «Match Any».No
FieldThe line's field the condition tests.At least one condition, at most twenty.Yes
OperatorHow it is tested; the list differs between text fields and the amount.Yes
ValueThe value the field is compared with, or the action's value.Required except with «empty» and «not empty»; for the amount a number, and two with «between». A regular expression is refused if it could run without end or is too long.Yes
Action TypeWhat the rule does: set the category, the payee or the description.At least one action, at most five.Yes
ActiveAn inactive rule is kept and not applied.No

Buttons and actions

ButtonWhen it showsWhat it doesPosts
Add RuleIn the page header, for users with the create right.Opens a new rule form.No
Duplicate RuleOn every rule, for users with the create right.Opens an inactive copy of the rule to change and save.No
Export RulesIn the page header when there are rules.Downloads the rules as a JSON file.No
Import RulesAlways, in the page header.Reads a JSON file in the shape «Export Rules» writes and saves each rule in it.No
DeleteOn every rule, for users with the delete right, after a confirmation.Deletes the rule; the lines it classified before stay as they are.No

Permissions

ToPermission needed
Open the page and read the rulesBanking — View
Add a rule, duplicate it and import rulesBanking — Create
Change a rule and switch it on or offBanking — Edit
Delete a ruleBanking — Delete

Learn the idea

Educational content for general understanding, not accounting, tax or legal advice. Sources · About the Academy