> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/financials-and-accounts-receivable/flag-gl-account-tax-setup-risk.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Flag GL Account Tax Setup Risk

Assesses one GL account for inconsistent tax handling and connected tax codes. Read-only.

| Business area                      | Action type |
| ---------------------------------- | ----------- |
| Financials and Accounts Receivable | Read-only   |

## Overview

In IFS Cloud each GL account carries a tax profile: Tax Handling (TaxHandlingValue = Restricted, All, Blocked), Tax Account flag (TaxFlag), and Tax Code Mandatory in Voucher Entry (TaxCodeMandatory). The tax codes allowed on the account are held in the AccountTaxCode child (FeeCode, DefaultTaxCode).

IFS Cloud reads GL accounts and tax codes to flag setup risk.

## How it works

{% stepper %}
{% step %}
Get Gl Account Tax Profile.
{% endstep %}

{% step %}
List Account Tax Codes.
{% endstep %}

{% step %}
For each FeeCode Get Tax Code Validity.
{% endstep %}

{% step %}
List Tax Codes Valid Today (comma-separated feecodes).
{% endstep %}

{% step %}
Apply rules R1-R11, verdict = highest severity.
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads the GL account tax profile (TaxHandlingValue, TaxFlag, TaxCodeMandatory, validity, logical account type).
* Lists all tax codes connected to the account and identifies the default code.
* Checks each connected tax code's validity window and fee type.
* Confirms which connected codes are valid today using the projection's own validity function.
* Applies server-side consistency rules (Blocked vs connected codes, Blocked vs mandatory, All vs more than one code).
* Applies heuristic risk rules (Restricted without codes, mandatory without valid default, expired default).
* Produces a ranked verdict with rule IDs, evidence values and a recommended manual fix.
* Explicitly reports when an account is not found or not visible to the user.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                 |
| --------- | -------------------------- |
| ACCRUL    | AccountsHandling           |
| ACCRUL    | TaxCodesPerAccountHandling |
| ACCRUL    | TaxCodesHandling           |

## Version compatibility

| Projection                 | Supported IFS Cloud releases |
| -------------------------- | ---------------------------- |
| AccountsHandling           | 24R2, 25R1, 25R2, 26R1, 26R2 |
| TaxCodesPerAccountHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| TaxCodesHandling           | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
