---
id: change/bcapps/9687
type: change
title: "#9687 [main] bug 642230 - Enhance FA General Report logic and add tests for Tax Deprec. Group and FA Posting Group handling"
summary: Fixed a bug where the FA General Report procedures could clear the FA Posting Group or Tax Depreciation Group fields with blank values from depreciation book records instead of only updating with non-blank values. Added comprehensive unit tests for both scenarios.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit fa general report czf
  - codeunit fa general report
system: fixed-assets
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:31.222Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 59750d58b62a85608457e8377496666022e543a9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9687
    title: "microsoft/BCApps#9687: [main] bug 642230 - Enhance FA General Report logic and add tests for Tax Deprec. Group and FA Posting Group handling"
    date: "2026-07-23"
    commit: 59750d58b62a85608457e8377496666022e543a9
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/31246-cz
    - object/codeunit/5626
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9687
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9687
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-23T21:50:08Z"
author: DavidHolusa
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 9
  additions: 281
  deletions: 5
  al: 5
apps:
  - Base Application
  - FixedAssetLocalization
objects_touched:
  - key: codeunit/31246
    page: codeunit/31246-cz
    type: codeunit
    id: 31246
    name: FA General Report CZF
    app: FixedAssetLocalization
    status: modified
  - key: codeunit/5626
    page: codeunit/5626
    type: codeunit
    id: 5626
    name: FA General Report
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 643230
systems:
  - fixed-assets
quote: null
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #9687 [main] bug 642230 - Enhance FA General Report logic and add tests for Tax Deprec. Group and FA Posting Group handling

> Fixed a bug where the FA General Report procedures could clear the FA Posting Group or Tax Depreciation Group fields with blank values from depreciation book records instead of only updating with non-blank values. Added comprehensive unit tests for both scenarios.

[Pull request](https://github.com/microsoft/BCApps/pull/9687) · merged into `main` (BC30) on 2026-07-23 by DavidHolusa · 9 files (+281 -5), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- SetFAPostingGroup and SetFATaxDeprGroup now check that source values are non-blank before updating the fixed asset fields
- Prevents silent data loss where running reports with Group Totals filters could erase posting group assignments
- Guard condition added for blank value validation in both W1 and CZ localizations
- New unit tests cover both the protective case (blank source) and the update case (different non-blank source)
- No breaking changes or data migration required
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 31246 "FA General Report CZF"](../../objects/codeunit/31246-cz.md), FixedAssetLocalization (CZ layer): modified
- [Codeunit 5626 "FA General Report"](../../objects/codeunit/5626.md), Base Application: modified

## Context

- Work items: AB#643230
- Labels: Team: Finance
- Systems: fixed-assets

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