---
id: change/bcapps/10290
type: change
title: "#10290 [Main] -Drop shipment undo receipt fails for service and non-inventory items."
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit undo purchase receipt line
  - codeunit undo sales shipment line
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:36.806Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: fd0372fdf3540a00a6b00f76261d853a2985f96c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10290
    title: "microsoft/BCApps#10290: [Main] -Drop shipment undo receipt fails for service and non-inventory items."
    date: "2026-08-18"
    commit: fd0372fdf3540a00a6b00f76261d853a2985f96c
    t: null
    quote: Drop shipment undo receipt fails for service and non-inventory items.
links:
  learn: []
  objects:
    - object/codeunit/5813
    - object/codeunit/5815
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10290
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10290
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-18T14:34:15Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 168
  deletions: 10
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/5813
    page: codeunit/5813
    type: codeunit
    id: 5813
    name: Undo Purchase Receipt Line
    app: Base Application
    status: modified
  - key: codeunit/5815
    page: codeunit/5815
    type: codeunit
    id: 5815
    name: Undo Sales Shipment Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/RU/BaseApp/Sales/History/UndoSalesShipmentLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646535
systems:
  - purchasing
  - sales
quote: Drop shipment undo receipt fails for service and non-inventory items.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #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.

[Pull request](https://github.com/microsoft/BCApps/pull/10290) · 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"](../../objects/codeunit/5813.md), Base Application: modified
- [Codeunit 5815 "Undo Sales Shipment Line"](../../objects/codeunit/5815.md), 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).
