---
id: change/bcapps/14579
type: change
title: "#14579 [29.x][Genrate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled."
summary: Fixed a bug where generating purchase lines from allocation account entries calculated incorrect non-deductible VAT amounts when prices include VAT.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit purchase alloc. acc. mgt.
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-28T01:06:57.124Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8a7d8af0d3b0b6e3ba2b16bed20aec331023e63a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14579
    title: "microsoft/BCApps#14579: [29.x][Genrate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled."
    date: "2026-11-27"
    commit: 8a7d8af0d3b0b6e3ba2b16bed20aec331023e63a
    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: Change fixes Non-deductible VAT calculation in purchase allocations; page documents setting up and using Non-deductible VAT.
      by: model
number: 14579
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14579
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-27T12:39:41Z"
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:
  - 660780
systems:
  - finance
quote: Generate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled.
joined_against:
  major: "29"
  commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
---

# #14579 [29.x][Genrate Lines from Allocation Account Line leaves incorrect Non-deductible VAT amounts when Prices Including VAT is enabled.

> Fixed a bug where generating purchase lines from allocation account entries calculated incorrect non-deductible VAT amounts when prices include VAT.

[Pull request](https://github.com/microsoft/BCApps/pull/14579) · merged into `releases/29.x` (BC29) on 2026-11-27 by Shikhverma · 6 files (+502 -4), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Corrects non-deductible VAT calculation in purchase allocation account line generation
- Issue occurred specifically when prices including VAT mode was enabled
- Fix applied to Purchase Allocation Account Management codeunit
- Test coverage added across multiple localization layers (W1, IT, NL, NO)
- Affects the allocation account feature for purchase transactions
- 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 BC29 snapshot

## Context

- Work items: AB#660780
- 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: Change fixes Non-deductible VAT calculation in purchase allocations; page documents setting up and using Non-deductible VAT. (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).
