Require a dimension on journal lines for an account

Attach a dimension rule to a General Ledger account template and verify that journal lines use the required value.

Use a dimension rule when journal lines for an account must carry a specific dimension value. You need permission to manage General Ledger. In this example, the expense account with key travel-expense requires the operations department. Replace both keys with existing keys in your legal entity. The department must be configured in ERP Foundation and in effect on the accounting date.

Save and attach the rule

  1. In General Ledger, select the legal entity and open Setup. Under Portable configuration definitions, set Definition scope to Legal entity and Definition type to Dimension rule. Enter an unused Logical key such as require-operations and give the rule a name in Account name.
  2. Enter the rule in Configuration, then select Save definition.
{
  "dimensionKind": "department",
  "dimensionKey": "operations",
  "requiredForAccountTemplateKeys": ["travel-expense"],
  "allowMultiple": false
}

Use Load existing definition if the account already has a template. Add the rule key to its dimensionRuleKeys, keeping its existing settings. To start a template from scratch, select Account template and use the account’s logical key as the template’s key. Match the example’s type and normal balance to your account, and replace require-operations if you chose a different rule key.

{
  "accountType": "expense",
  "normalBalance": "debit",
  "dimensionRuleKeys": ["require-operations"]
}

Before saving the template, confirm that Definition scope is Legal entity for the same entity. If you loaded a global template, switch its scope to Legal entity to create or update the entity-specific version. Select Save definition. Journal validation uses the template’s attached rules to determine which values the account accepts and which it requires.

Verify the rule on a journal line

Open Journals and prepare a draft using the account. On that line, choose operations in Department, then follow the manual journal validation steps. If the required value is missing from the selector, check the dimension’s entity and effective dates. If the draft rejects a selected value, check the account template and the keys in its attached rules.

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?