---
id: change/bcapps/10225
type: change
title: "#10225 [Master]-When we run the Order Planning Worksheet by Project, a supply suggestion is created for items that are already received but not invoiced in Purchase Orders, but only after updating Order and Posting Dates on Purchase Order."
summary: Fixes Order Planning Worksheet run by project creating supply suggestions for items already received but not invoiced on purchase orders, which happened after the order and posting dates on the purchase order were updated. The change is in the Get Unplanned Demand codeunit.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit get unplanned demand
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:48.759Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 413dd23af1496b5171178d5d4db45d4e406831cc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10225
    title: "microsoft/BCApps#10225: [Master]-When we run the Order Planning Worksheet by Project, a supply suggestion is created for items that are already received but not invoiced in Purchase Orders, but only after updating Order and Posting Dates on Purchase Order."
    date: "2026-08-14"
    commit: 413dd23af1496b5171178d5d4db45d4e406831cc
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/5520
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10225
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10225
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-14T15:48:59Z"
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: 88
  deletions: 16
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5520
    page: codeunit/5520
    type: codeunit
    id: 5520
    name: Get Unplanned Demand
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646661
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10225 [Master]-When we run the Order Planning Worksheet by Project, a supply suggestion is created for items that are already received but not invoiced in Purchase Orders, but only after updating Order and Posting Dates on Purchase Order.

> Fixes Order Planning Worksheet run by project creating supply suggestions for items already received but not invoiced on purchase orders, which happened after the order and posting dates on the purchase order were updated. The change is in the Get Unplanned Demand codeunit.

[Pull request](https://github.com/microsoft/BCApps/pull/10225) · merged into `main` (BC30) on 2026-08-14 by neeleshsinghal · 2 files (+88 -16), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Get Unplanned Demand codeunit adjusted
- No supply suggestion for received but not invoiced purchase order items when planning by project
- Issue appeared after updating Order and Posting Dates on the purchase order
- Order planning tests updated
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5520 "Get Unplanned Demand"](../../objects/codeunit/5520.md), Base Application: modified

## Context

- Work items: AB#646661
- Labels: Team: SCM
- Systems: inventory

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