---
id: change/bcapps/14507
type: change
title: '#14507 [29.x]-All VAT Entries are gone through without filters with "Set G/L Account No." function.'
summary: The Set G/L Account No. action on the VAT Entries page now correctly processes only selected or filtered entries instead of updating all entries in the database. The G/L - VAT Reconciliation report also now applies filters appropriately when processing VAT statement lines.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - page vat entries
  - report g/l - vat reconciliation
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-27T01:03:41.007Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6abd201399ee71d2705a47b89bdb932bfe322870
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14507
    title: 'microsoft/BCApps#14507: [29.x]-All VAT Entries are gone through without filters with "Set G/L Account No." function.'
    date: "2026-11-26"
    commit: 6abd201399ee71d2705a47b89bdb932bfe322870
    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 and G/L account filtering for VAT validation.
      by: model
number: 14507
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14507
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-26T10:45:44Z"
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:
  - 660008
systems:
  - finance
quote: All VAT Entries are gone through without filters with "Set G/L Account No." function.
joined_against:
  major: "29"
  commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
---

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

> The Set G/L Account No. action on the VAT Entries page now correctly processes only selected or filtered entries instead of updating all entries in the database. The G/L - VAT Reconciliation report also now applies filters appropriately when processing VAT statement lines.

[Pull request](https://github.com/microsoft/BCApps/pull/14507) · merged into `releases/29.x` (BC29) on 2026-11-26 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
- Buckets process from first to last selected entry number without overlapping
- Bucket range uses separate filter group to preserve selection filters
- G/L - VAT Reconciliation report only adjusts G/L Account No. for VAT Entry Totaling lines
- Fixes performance issue where large companies with millions of entries experienced long processing times
- 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 BC29 snapshot
- `src/Layers/ES/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC29 snapshot
- `src/Layers/GB/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC29 snapshot
- `src/Layers/IT/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC29 snapshot
- `src/Layers/NA/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC29 snapshot
- `src/Layers/NO/BaseApp/Finance/VAT/Ledger/VATEntries.Page.al`: modified, not in the BC29 snapshot

## Context

- Work items: AB#660008
- 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 and G/L account filtering for VAT validation. (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).
