---
id: change/bcapps/13854
type: change
title: '#13854 [Main]-All VAT Entries are gone through without filters with "Set G/L Account No." function.'
summary: VAT Entries page and G/L - VAT Reconciliation report now respect user filters and selections when setting G/L Account numbers, preventing unintended updates to all entries in the database.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page vat entries
  - report g/l - vat reconciliation
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-24T01:03:39.668Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: a2de2a58efc48160422a768d48db0ca00c022b74
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13854
    title: 'microsoft/BCApps#13854: [Main]-All VAT Entries are gone through without filters with "Set G/L Account No." function.'
    date: "2026-11-23"
    commit: a2de2a58efc48160422a768d48db0ca00c022b74
    t: null
    quote: All VAT Entries are gone through without filters with Set G/L Account No. function.
links:
  learn: []
  objects:
    - object/page/315
    - object/report/11
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/reports/report-11
      title: G/L - VAT Reconciliation (Report)
      label: possibly related
      why: G/L - VAT Reconciliation report uses VAT entries to show amounts, directly affected by this fix.
      by: model
number: 13854
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13854
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-23T12:27:46Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 11
  additions: 184
  deletions: 55
  al: 9
apps:
  - Base Application
objects_touched:
  - key: page/315
    page: page/315
    type: page
    id: 315
    name: VAT Entries
    app: Base Application
    status: modified
  - key: report/11
    page: report/11
    type: report
    id: 11
    name: G/L - VAT Reconciliation
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/GB/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NA/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NO/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 660009
systems:
  - finance
quote: All VAT Entries are gone through without filters with Set G/L Account No. function.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #13854 [Main]-All VAT Entries are gone through without filters with "Set G/L Account No." function.

> VAT Entries page and G/L - VAT Reconciliation report now respect user filters and selections when setting G/L Account numbers, preventing unintended updates to all entries in the database.

[Pull request](https://github.com/microsoft/BCApps/pull/13854) · merged into `main` (BC30) on 2026-11-23 by DhavalMore88 (community contribution) · 11 files (+184 -55), 9 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- SetGLAccountNo action now uses SetSelectionFilter to process only selected or filtered VAT entries instead of all entries
- Bucket processing range adjusted to run from first to last selected entry without overlaps
- G/L Account No. adjustments in VAT reconciliation report now apply only to VAT Entry Totaling lines, not Account Totaling lines
- Filter group 10 used for bucket range to prevent overwriting existing selection filters
- Significantly improves performance for large companies with millions of VAT entries
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 315 "VAT Entries"](../../objects/page/315.md), Base Application: modified
- [Report 11 "G/L - VAT Reconciliation"](../../objects/report/11.md), Base Application: modified
- `src/Layers/BE/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/GB/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NA/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NO/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#660009
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: finance
- From the description: "All VAT Entries are gone through without filters with Set G/L Account No. function."

## Possibly related

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

- [G/L - VAT Reconciliation (Report)](https://learn.microsoft.com/dynamics365/business-central/reports/report-11) — possibly related: G/L - VAT Reconciliation report uses VAT entries to show amounts, directly affected by this fix. (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).
