---
id: change/bcapps/14481
type: change
title: "#14481 [Main] Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled."
summary: Fixed a bug where generating lines from allocation account lines produced incorrect non-deductible VAT amounts when prices including VAT was enabled.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit purchase alloc. acc. mgt.
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-27T01:03:41.007Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 5593078f38242fc7d1426f92d8f800b34fb025f1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14481
    title: "microsoft/BCApps#14481: [Main] Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled."
    date: "2026-11-26"
    commit: 5593078f38242fc7d1426f92d8f800b34fb025f1
    t: null
    quote: Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled.
links:
  learn: []
  objects:
    - object/codeunit/2679
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/finance-setup-nondeductible-vat
      title: Set Up Nondeductible VAT in Business Central
      label: possibly related
      why: Documents nondeductible VAT setup and configuration in purchase transactions.
      by: model
number: 14481
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14481
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-26T10:50:18Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 6
  additions: 502
  deletions: 4
  al: 2
apps:
  - Base Application
objects_touched:
  - key: codeunit/2679
    page: codeunit/2679
    type: codeunit
    id: 2679
    name: Purchase Alloc. Acc. Mgt.
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/ES/BaseApp/Finance/AllocationAccount/Purchase/PurchaseAllocAccMgt.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 658146
systems:
  - finance
quote: Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14481 [Main] Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled.

> Fixed a bug where generating lines from allocation account lines produced incorrect non-deductible VAT amounts when prices including VAT was enabled.

[Pull request](https://github.com/microsoft/BCApps/pull/14481) · merged into `main` (BC30) on 2026-11-26 by Shikhverma · 6 files (+502 -4), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Non-deductible VAT amounts are now correct when lines are generated from an allocation account line with Prices Including VAT enabled
- Fix made in codeunit Purchase Alloc. Acc. Mgt. in the W1 and ES layers
- Applies to purchase documents
- End-to-end tests added for the W1, IT, NL and NO layers
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 2679 "Purchase Alloc. Acc. Mgt."](../../objects/codeunit/2679.md), Base Application: modified
- `src/Layers/ES/BaseApp/Finance/AllocationAccount/Purchase/PurchaseAllocAccMgt.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#658146
- Labels: Team: Finance
- Systems: finance
- From the description: "Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled."

## Possibly related

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

- [Set Up Nondeductible VAT in Business Central](https://learn.microsoft.com/dynamics365/business-central/finance-setup-nondeductible-vat) — possibly related: Documents nondeductible VAT setup and configuration in purchase transactions. (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).
