#10361 [main] Line Discount Amount Rounding Discrepancy When Transferring Project Planning Lines to Sales Invoice
Line Discount Amount is now correctly preserved when transferring project planning lines to a sales invoice, eliminating rounding discrepancies caused by recalculation from the rounded percentage.
- 4files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-31 by Shikhverma · 4 files (+824 -1), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fixed rounding discrepancy where line discount amount was recalculated from rounded percentage instead of preserving the original value
- After percentage validation, the exact line discount amount from the planning line is now transferred to the sales line
- Handles partial invoicing and credit memos through quantity ratio calculation
- Converts discount amount to invoice currency when needed
- Added test case validating that discount amount remains accurate through the transfer process
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 1002 “Job Create-Invoice”, Base Application: modified
Also merged into
- #10952 into
releases/29.xon 2026-09-03
Context
- Work items: AB#647197
- Labels: Team: SCM
- Systems: projects
- From the description: “Line Discount Amount rounding discrepancy when transferring Project Planning Lines to a Sales Invoice.”
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).