---
id: change/bcapps/13171
type: change
title: "#13171 [Fixed Assets] Prevent change of FA Posting group after acquisition and FA journal cancellation line with empty Document No."
summary: "Two Fixed Assets bugs are fixed: FA Posting Group field is now protected after acquisition posting, and FA journal cancellation creates a valid document number when the batch is not empty."
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table fa depreciation book
  - codeunit cancel fa ledger entries
system: fixed-assets
review:
  state: reviewed
  by: opus
  at: "2026-10-31T01:04:15.105Z"
  flags: []
generated:
  at: "2026-11-11T00:15:47.902Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4c394b1f12db3ef7dec0a16896a2f839f7fa6185
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13171
    title: "microsoft/BCApps#13171: [Fixed Assets] Prevent change of FA Posting group after acquisition and FA journal cancellation line with empty Document No."
    date: "2026-10-27"
    commit: 4c394b1f12db3ef7dec0a16896a2f839f7fa6185
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/5612
    - object/codeunit/5624
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/fa-how-depreciate-amortize
      title: Depreciate or amortize FA
      label: possibly related
      why: touches Codeunit 5624 "Cancel FA Ledger Entries"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Russia/depreciation-bonus
      title: Depreciation bonus in Russia
      label: possibly related
      why: touches Codeunit 5624 "Cancel FA Ledger Entries"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/ui-how-preview-post-results
      title: Preview Posting Results
      label: possibly related
      why: Documents posting preview and ledger entry posting functionality for journals.
      by: model
number: 13171
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13171
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-27T09:30:16Z"
author: dcenic
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 12
  additions: 863
  deletions: 0
  al: 8
apps:
  - Base Application
objects_touched:
  - key: table/5612
    page: table/5612
    type: table
    id: 5612
    name: FA Depreciation Book
    app: Base Application
    status: modified
  - key: codeunit/5624
    page: codeunit/5624
    type: codeunit
    id: 5624
    name: Cancel FA Ledger Entries
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/FR/BaseApp/FixedAssets/FixedAsset/CancelFALedgerEntries.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/RU/BaseApp/FixedAssets/FixedAsset/CancelFALedgerEntries.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 651299
  - 651316
systems:
  - fixed-assets
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13171 [Fixed Assets] Prevent change of FA Posting group after acquisition and FA journal cancellation line with empty Document No.

> Two Fixed Assets bugs are fixed: FA Posting Group field is now protected after acquisition posting, and FA journal cancellation creates a valid document number when the batch is not empty.

[Pull request](https://github.com/microsoft/BCApps/pull/13171) · merged into `main` (BC30) on 2026-10-27 by dcenic · 12 files (+863 -0), 8 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- FA Posting Group validation now blocks changes after acquisition cost is posted, preventing G/L account mismatch
- New CheckFAPostingGroupChangeAfterAcquisition validation prevents unguarded posting group modification
- Cancel FA Ledger Entries now uses the last batch line's document number when creating cancellation entries in non-empty batches
- Fixes applied across W1 and localized versions (DACH, FR, GB, RU)
- Comprehensive test cases added to verify both correction scenarios
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 5612 "FA Depreciation Book"](../../objects/table/5612.md), Base Application: modified
- [Codeunit 5624 "Cancel FA Ledger Entries"](../../objects/codeunit/5624.md), Base Application: modified
- `src/Layers/FR/BaseApp/FixedAssets/FixedAsset/CancelFALedgerEntries.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/RU/BaseApp/FixedAssets/FixedAsset/CancelFALedgerEntries.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#651299, AB#651316
- Labels: Team: Finance
- Systems: fixed-assets

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Depreciate or amortize FA](https://learn.microsoft.com/dynamics365/business-central/fa-how-depreciate-amortize) — possibly related: touches Codeunit 5624 "Cancel FA Ledger Entries"
- [Depreciation bonus in Russia](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Russia/depreciation-bonus) — possibly related: touches Codeunit 5624 "Cancel FA Ledger Entries"
- [Preview Posting Results](https://learn.microsoft.com/dynamics365/business-central/ui-how-preview-post-results) — possibly related: Documents posting preview and ledger entry posting functionality for journals. (model-linked)

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).
