#10867 [29.x][ALL-E]Issues with Service Contract Invoicing and Retrospective Billing--when the second unposted Service Invoice is deleted the values on the Service Contract are no longer reset--The "Invoiced to Date" field does not resetInitial commit- #10345Initial commit
Fixed Service Contract invoicing to properly reset the "Invoiced to Date" field when unposted Service Invoices are deleted, even when multiple invoices have been processed.
- 3files
- 2AL files
- 2objects
Pull request · merged into releases/29.x (BC29) on 2026-09-03 by sanjmaurya · 3 files (+135 -11), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- The “Invoiced to Date” field was stuck at its previous value after deleting the second unposted invoice, blocking new invoices from being created
- Reversed ledger entries left behind by deleted invoices were incorrectly counted as existing entries
- The fix filters out reversed entries by checking for original entries without corresponding reversals
- Contract lines with only reversed invoicing history now correctly reset “Invoiced to Date” to zero
- Behaviour changes for users or extensions.
AL objects touched
- Table 5900 “Service Header”, Base Application: modified
- Table 5907 “Service Ledger Entry”, Base Application: modified
Context
- Work items: AB#648515
- Labels: Team: SCM
- Systems: service
- From the description: “when the second unposted Service Invoice is deleted the values on the Service Contract are no longer reset”
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).