How many exact brick parts are missing before an order arrives?
Four red new pieces are required in this fictional build. Two are in the bin and one is on order. That leaves two missing today and one if the open order arrives in full.
Fictional records
Wanted
Part
Color
Condition
Qty
P1
red
new
4
OnHand
Part
Color
Condition
Qty
P1
red
new
2
P1
red
used
1
P1
blue
new
3
Inbound
Part
Color
Condition
Qty
State
P1
red
new
1
open
What to check
Use a confirmed part reference and include the specified color and condition. Record an approved substitute separately.
Count matching physical stock first. Subtract it from the requirement, with a floor of zero.
Then show the conditional remainder after matching open order quantities. After receipt, reconcile the order line and count the received quantity only once.
Worked result
Wanted!D2 requires four. OnHand!D2 supplies two exact units. Inbound!D2 adds one conditional unit. The other colors and conditions in rows 3–4 do not meet the stated requirement.