---
id: change/bcapps/13787
type: change
title: "#13787 [Main]error in allocation account function"
summary: Fixes bug 655888, an error in the allocation account function, by changing Purchase Alloc. Acc. Mgt. (W1 and ES) and Alloc. Acc. Handle Doc. Post (W1). New end-to-end purchase allocation account tests are added in W1, IT, NL and NO.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit alloc. acc. handle doc. post
  - codeunit purchase alloc. acc. mgt.
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-22T00:57:50.681Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 164c0d5bf3c8cc025c77a3c257909b4ba39ad749
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13787
    title: "microsoft/BCApps#13787: [Main]error in allocation account function"
    date: "2026-11-18"
    commit: 164c0d5bf3c8cc025c77a3c257909b4ba39ad749
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/2674
    - object/codeunit/2679
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 13787
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13787
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-18T15:16:43Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 1352
  deletions: 7
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/2674
    page: codeunit/2674
    type: codeunit
    id: 2674
    name: Alloc. Acc. Handle Doc. Post
    app: Base Application
    status: modified
  - 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:
  - 655888
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #13787 [Main]error in allocation account function

> Fixes bug 655888, an error in the allocation account function, by changing Purchase Alloc. Acc. Mgt. (W1 and ES) and Alloc. Acc. Handle Doc. Post (W1). New end-to-end purchase allocation account tests are added in W1, IT, NL and NO.

[Pull request](https://github.com/microsoft/BCApps/pull/13787) · merged into `main` (BC30) on 2026-11-18 by Shikhverma · 7 files (+1352 -7), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes an error in the allocation account function reported in bug 655888
- Purchase Alloc. Acc. Mgt. changed in the W1 and ES layers
- Alloc. Acc. Handle Doc. Post updated in W1
- End-to-end purchase allocation account tests added for W1, IT, NL and NO
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 2674 "Alloc. Acc. Handle Doc. Post"](../../objects/codeunit/2674.md), Base Application: modified
- [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#655888
- Labels: Team: Finance
- Systems: finance

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