---
id: change/bcapps/10209
type: change
title: "#10209 Promote AA0471, AA0472 and AA0474 to Error in the base ruleset"
summary: Three analyzer rules (AA0471, AA0472, AA0474) are promoted from None to Error in the base ruleset, with violations in the Withholding Tax app fixed by adding missing AutoFormatExpression attributes to amount fields.
tier: official
language: en
tags:
  - other
  - main
  - bc30
  - tableextension wht empl. ledger entry ext
  - table wht threshold accumulator
  - table withholding tax entry
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:00.529Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c451f37e7dc95b5609942a77b1a47df7850d07ca
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10209
    title: "microsoft/BCApps#10209: Promote AA0471, AA0472 and AA0474 to Error in the base ruleset"
    date: "2026-08-14"
    commit: c451f37e7dc95b5609942a77b1a47df7850d07ca
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/tableextension/6810
    - object/table/6794
    - object/table/6788
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10209
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10209
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-14T12:07:31Z"
author: JesperSchulz
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: other
behavior_change: false
breaking: false
files:
  count: 4
  additions: 8
  deletions: 25
  al: 3
apps:
  - WithholdingTax
objects_touched:
  - key: tableextension/6810
    page: tableextension/6810
    type: tableextension
    id: 6810
    name: WHT Empl. Ledger Entry Ext
    app: WithholdingTax
    status: modified
  - key: table/6794
    page: table/6794
    type: table
    id: 6794
    name: WHT Threshold Accumulator
    app: WithholdingTax
    status: modified
  - key: table/6788
    page: table/6788
    type: table
    id: 6788
    name: Withholding Tax Entry
    app: WithholdingTax
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640773
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10209 Promote AA0471, AA0472 and AA0474 to Error in the base ruleset

> Three analyzer rules (AA0471, AA0472, AA0474) are promoted from None to Error in the base ruleset, with violations in the Withholding Tax app fixed by adding missing AutoFormatExpression attributes to amount fields.

[Pull request](https://github.com/microsoft/BCApps/pull/10209) · merged into `main` (BC30) on 2026-08-14 by JesperSchulz · 4 files (+8 -25), 3 AL · other · tier official · reviewed (checked by Opus)

## What changed

- AA0471, AA0472 and AA0474 are moved from None to Error in base.ruleset.json
- AA0472 had no violations, so its override is simply removed
- Missed amount fields in Withholding Tax Entry and WHT Empl. Ledger Entry Ext now use AutoFormatExpression = Rec."Currency Code"
- WHT Threshold Accumulator gets an empty AutoFormatExpression because it only holds LCY amounts
- AA0473 and AS0112 keep their overrides because CI found hundreds of violations

## AL objects touched

- [Table extension 6810 "WHT Empl. Ledger Entry Ext"](../../objects/tableextension/6810.md), WithholdingTax: modified
- [Table 6794 "WHT Threshold Accumulator"](../../objects/table/6794.md), WithholdingTax: modified
- [Table 6788 "Withholding Tax Entry"](../../objects/table/6788.md), WithholdingTax: modified

## Context

- Work items: AB#640773
- Labels: AL: Apps (W1), Ownership: Needs Review, Team: Other
- Systems: development

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
