#9985 [Master]-For an Item of 'Type' Service or Non-Inventory we allow you to increase the Quantity of the Corrective Credit Memo which then if posted updates the Purchase Order with a negative Received and Invoiced values
Fixes corrective credit memos from posted purchase invoices with Service or Non-Inventory lines. Before, the quantity could be increased, and posting the credit memo left negative Received and Invoiced values on the original purchase order. Purchase Line and Correct Posted Purch. Invoice are changed in W1 and the localization layers.
- 25files
- 18AL files
- 2objects
Pull request · merged into main (BC30) on 2026-08-07 by neeleshsinghal · 25 files (+1565 -0), 18 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Addresses quantity increases on corrective credit memos for Service and Non-Inventory purchase lines
- Before the fix, posting such a credit memo left negative Received and Invoiced values on the purchase order
- Changes Purchase Line (table 39) and Correct Posted Purch. Invoice (codeunit 1313) across W1 and the localization layers
- Adds tests to O365CorrectPurchaseInvoice in several layers
- Behaviour changes for users or extensions.
AL objects touched
- Table 39 “Purchase Line”, Base Application: modified
- Codeunit 1313 “Correct Posted Purch. Invoice”, Base Application: modified
src/Layers/ES/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#645182
- Labels: Team: SCM
- Systems: purchasing
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).