---
id: change/bcapps/14105
type: change
title: "#14105 [29.x]-Project Ledger Entry does not get the modified amount from Purchase Order Statistics if the Purchase line is of type G/L Account in the Spanish version."
summary: Purchase order G/L Account lines with projects now correctly pass the modified invoice discount amount to project ledger entries during partial invoicing, ensuring project costs match the actual invoiced amounts.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit purch.-post
  - codeunit job transfer line
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-11-29T00:46:33.213Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0c54f0fb8c232bd1e2f89663d18d1dbb59fab150
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14105
    title: "microsoft/BCApps#14105: [29.x]-Project Ledger Entry does not get the modified amount from Purchase Order Statistics if the Purchase line is of type G/L Account in the Spanish version."
    date: "2026-11-27"
    commit: 0c54f0fb8c232bd1e2f89663d18d1dbb59fab150
    t: null
    quote: Project Ledger Entry does not get the modified amount from Purchase Order Statistics if the Purchase line is of type G/L Account
links:
  learn: []
  objects:
    - object/codeunit/90
    - object/codeunit/1004
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/projects-powerbi-project-invoiced-sales-by-type
      title: Project Invoiced Sales by Type Power BI Report
      label: possibly related
      why: Documents project ledger entries and purchase order amounts in project-related posting processes.
      by: model
number: 14105
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14105
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-27T04:42:30Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 16
  additions: 2964
  deletions: 51
  al: 14
apps:
  - Base Application
objects_touched:
  - key: codeunit/90
    page: codeunit/90
    type: codeunit
    id: 90
    name: Purch.-Post
    app: Base Application
    status: modified
  - key: codeunit/1004
    page: codeunit/1004
    type: codeunit
    id: 1004
    name: Job Transfer Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Projects/Project/Journal/JobTransferLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NA/BaseApp/Projects/Project/Journal/JobTransferLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 654473
systems:
  - purchasing
  - projects
quote: Project Ledger Entry does not get the modified amount from Purchase Order Statistics if the Purchase line is of type G/L Account
joined_against:
  major: "29"
  commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
---

# #14105 [29.x]-Project Ledger Entry does not get the modified amount from Purchase Order Statistics if the Purchase line is of type G/L Account in the Spanish version.

> Purchase order G/L Account lines with projects now correctly pass the modified invoice discount amount to project ledger entries during partial invoicing, ensuring project costs match the actual invoiced amounts.

[Pull request](https://github.com/microsoft/BCApps/pull/14105) · merged into `releases/29.x` (BC29) on 2026-11-27 by DhavalMore88 (community contribution) · 16 files (+2964 -51), 14 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed project ledger entries not reflecting changed invoice discounts on G/L Account purchase lines during partial invoicing
- Added CalcJobInvDiscAmountPerQtyDiff procedure to calculate per-unit discount gaps before amount division
- Added UpdateJobPurchLineUnitCostForInvDiscToInvoice procedure to adjust unit costs in project lines after creation
- Solution accounts for Indirect Cost %, Prices Including VAT, and currency differences
- Issue affected Spanish and other localized versions; item lines were unaffected
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 90 "Purch.-Post"](../../objects/codeunit/90.md), Base Application: modified
- [Codeunit 1004 "Job Transfer Line"](../../objects/codeunit/1004.md), Base Application: modified
- `src/Layers/BE/BaseApp/Projects/Project/Journal/JobTransferLine.Codeunit.al`: modified, not in the BC29 snapshot
- `src/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al`: modified, not in the BC29 snapshot
- `src/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al`: modified, not in the BC29 snapshot
- `src/Layers/NA/BaseApp/Projects/Project/Journal/JobTransferLine.Codeunit.al`: modified, not in the BC29 snapshot

## Context

- Work items: AB#654473
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: purchasing, projects
- From the description: "Project Ledger Entry does not get the modified amount from Purchase Order Statistics if the Purchase line is of type G/L Account"

## Possibly related

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

- [Project Invoiced Sales by Type Power BI Report](https://learn.microsoft.com/dynamics365/business-central/projects-powerbi-project-invoiced-sales-by-type) — possibly related: Documents project ledger entries and purchase order amounts in project-related posting processes. (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).
