#10290 [Main] -Drop shipment undo receipt fails for service and non-inventory items.
Undo receipt and undo shipment operations now work correctly for drop shipments involving service and non-inventory items by removing unnecessary cost application filters and adding a fallback lookup method through drop shipment links.
- 4files
- 3AL files
- 2objects
Pull request · merged into main (BC30) on 2026-08-18 by DhavalMore88 (community contribution) · 4 files (+168 -10), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Removed ‘Cost Application’ filter from drop shipment application entry lookup to include cost-less entries for non-inventoriable items
- Guarded the item application entry lookup so a missing entry is skipped instead of erroring
- Added fallback lookup of the sales shipment line through the drop shipment document link when the item ledger entry path finds nothing
- Enables both undo shipment and undo receipt for service and non-inventory drop shipments
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 5813 “Undo Purchase Receipt Line”, Base Application: modified
- Codeunit 5815 “Undo Sales Shipment Line”, Base Application: modified
src/Layers/RU/BaseApp/Sales/History/UndoSalesShipmentLine.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#646535
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: purchasing, sales
- From the description: “Drop shipment undo receipt fails for service and non-inventory items.”
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).