revert(mainmaterial): reverted changes to check for machine needing mm
This commit is contained in:
@@ -6,6 +6,11 @@ SELECT lot.ProductionLotHumanReadableId,
|
||||
else 0 end as Staged,
|
||||
x.ProvidedAmount as Provided,
|
||||
x.EffectiveConsumption as consumption,
|
||||
x.TotalDemand as totalNeeded,
|
||||
/* remaining needed to complete the lot */
|
||||
x.TotalDemand - x.EffectiveConsumption as remainingNeeded,
|
||||
/* do we have enough staged or scanned to the lot? */
|
||||
case when (case when x.ProvidedAmount <> 0 then x.ProvidedAmount else x.EffectiveConsumption end) > x.TotalDemand then 'good' else 'bad' end as noShortage ,
|
||||
x.IsManualProcess as isManual,
|
||||
MaterialHumanReadableId
|
||||
FROM [test1_AlplaPROD2.0_Read].[issueMaterial].[MaterialDemand] x (nolock)
|
||||
|
||||
Reference in New Issue
Block a user