---
id: change/bcapps/9788
type: change
title: "#9788 [Master]-Incorrect Reservation Split Generated After Replanning a Replenishment Production Order Created by MRP Planning Run"
summary: Fixed incorrect reservation splits when replanning production orders with multiple component lines using the same item. The fix rebuilds the reservation split instead of only adjusting the delta.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit mfg. invt. profile offsetting
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:10:58.456Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ccf5df63c15ae3212ade3a3c64993f6567488002
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9788
    title: "microsoft/BCApps#9788: [Master]-Incorrect Reservation Split Generated After Replanning a Replenishment Production Order Created by MRP Planning Run"
    date: "2026-07-29"
    commit: ccf5df63c15ae3212ade3a3c64993f6567488002
    t: null
    quote: replanning kept the old reservation split and only adjusted the delta, producing an incorrect reserved quantity per line
links:
  learn: []
  objects:
    - object/codeunit/99000869
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9788
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9788
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-29T08:19:16Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 171
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/99000869
    page: codeunit/99000869
    type: codeunit
    id: 99000869
    name: Mfg. Invt. Profile Offsetting
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 643972
systems:
  - inventory
quote: replanning kept the old reservation split and only adjusted the delta, producing an incorrect reserved quantity per line
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9788 [Master]-Incorrect Reservation Split Generated After Replanning a Replenishment Production Order Created by MRP Planning Run

> Fixed incorrect reservation splits when replanning production orders with multiple component lines using the same item. The fix rebuilds the reservation split instead of only adjusting the delta.

[Pull request](https://github.com/microsoft/BCApps/pull/9788) · merged into `main` (BC30) on 2026-07-29 by neeleshsinghal · 2 files (+171 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Resolves issue where replanning kept old reservation splits and only adjusted deltas
- Adds event subscriber OnAfterShouldDeleteReservEntry in manufacturing layer
- Handles cases with same component item on multiple production order lines
- No schema changes required
- Includes test coverage for the fix
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 99000869 "Mfg. Invt. Profile Offsetting"](../../objects/codeunit/99000869.md), Base Application: modified

## Context

- Work items: AB#643972
- Labels: Team: SCM
- Systems: inventory
- From the description: "replanning kept the old reservation split and only adjusted the delta, producing an incorrect reserved quantity per line"

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