#12770 [Main]-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.
Fixed a bug where project ledger entries did not reflect modified invoice discounts on G/L Account lines in purchase orders, even though G/L entries were correct.
- 16files
- 14AL files
- 2objects
Pull request · merged into main (BC30) on 2026-11-09 by DhavalMore88 (community contribution) · 16 files (+2454 -51), 14 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Project ledger entries now use the invoiced discount when partial invoices are posted with a changed invoice discount on G/L Account lines
- New procedures in Purch.-Post calculate the per-unit discount gap and apply it to the unit cost of the line copy used for project posting
- The adjustment accounts for Indirect Cost %, Prices Including VAT and currency
- Item lines were not affected by the bug
- Purch.-Post changed in W1, NA, BE, CH, ES, FI, GB, IT, RU and APAC layers; Job Transfer Line also updated in W1, NA, BE and IT
- 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 BC30 snapshotsrc/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/NA/BaseApp/Projects/Project/Journal/JobTransferLine.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#643968
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: purchasing, projects
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).