#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.
- 16files
- 14AL files
- 2objects
Pull request · 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”, Base Application: modified
- Codeunit 1004 “Job Transfer Line”, Base Application: modified
src/Layers/BE/BaseApp/Projects/Project/Journal/JobTransferLine.Codeunit.al: modified, not in the BC29 snapshotsrc/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al: modified, not in the BC29 snapshotsrc/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al: modified, not in the BC29 snapshotsrc/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 — 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).