fix(ocp): more material check work
This commit is contained in:
@@ -157,3 +157,259 @@ where lot.ProductionLotHumanReadableId = @lot and MaterialDescription not like '
|
||||
and MaterialDescription NOT LIKE '%bb%'
|
||||
and MaterialDescription NOT LIKE '%mcg%'
|
||||
`;
|
||||
|
||||
export const something = [
|
||||
{
|
||||
MaterialHumanReadableId: 98,
|
||||
MaterialDescription: "BAN Banding 51544 1cyc",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 352,
|
||||
totalNeeded: 66.2904,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: "pkgAutoGood",
|
||||
noPKGManualShortage: "noManPkg",
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 1314200,
|
||||
Percentage: 0,
|
||||
QuantityPosition: 4,
|
||||
"": null,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 174,
|
||||
MaterialDescription: "MB PE Ampacet BW 11744",
|
||||
Staged: 0,
|
||||
isManual: true,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 162.728623,
|
||||
totalNeeded: 1.814699,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: null,
|
||||
noPKGManualShortage: null,
|
||||
noManualShortage: "noOK",
|
||||
autoConsumeCheck: "autoConsumeNOK",
|
||||
invForAutoConsume: null,
|
||||
Percentage: 2.19,
|
||||
QuantityPosition: null,
|
||||
"": 0,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 99,
|
||||
MaterialDescription: "TOP Plastic 6040643 44x56x4 w/o CB 30cyc",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 88,
|
||||
totalNeeded: 66.2904,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: "pkgAutoGood",
|
||||
noPKGManualShortage: "noManPkg",
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 2048,
|
||||
Percentage: 0,
|
||||
QuantityPosition: 1,
|
||||
"": null,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 119,
|
||||
MaterialDescription: "MM HDPE PCR KW Plastics KWR 101-150",
|
||||
Staged: 1,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 53643.717,
|
||||
consumption: 0,
|
||||
totalDemand: 3744.977905,
|
||||
totalNeeded: 41.762952,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: null,
|
||||
noPKGManualShortage: null,
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 53754.112,
|
||||
Percentage: 50.4,
|
||||
QuantityPosition: null,
|
||||
"": 0,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 504,
|
||||
MaterialDescription: "LBL IML Label F 1.8L Evolution 1265677",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 79357.090909,
|
||||
totalNeeded: 1,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: null,
|
||||
noPKGManualShortage: null,
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 900500,
|
||||
Percentage: 0,
|
||||
QuantityPosition: null,
|
||||
"": 1,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 176,
|
||||
MaterialDescription: "MM HDPE Dow DMDF 6230",
|
||||
Staged: 1,
|
||||
isManual: false,
|
||||
IsMainMaterial: true,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 74063.734,
|
||||
consumption: 0,
|
||||
totalDemand: 3522.805744,
|
||||
totalNeeded: 39.285348,
|
||||
noMMShortage: "mmGood",
|
||||
noPKGAutoShortage: null,
|
||||
noPKGManualShortage: null,
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 182624.771,
|
||||
Percentage: 47.41,
|
||||
QuantityPosition: null,
|
||||
"": 0,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 397,
|
||||
MaterialDescription: "STW Film 20x45ga 180567",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 17.6,
|
||||
totalNeeded: 66.2904,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: "pkgAutoGood",
|
||||
noPKGManualShortage: "noManPkg",
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 1063.92,
|
||||
Percentage: 0,
|
||||
QuantityPosition: 0.2,
|
||||
"": null,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 96,
|
||||
MaterialDescription: "PAL PRA 44x56x5 50cyc",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 88,
|
||||
totalNeeded: 66.2904,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: "pkgAutoGood",
|
||||
noPKGManualShortage: "noManPkg",
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 1529,
|
||||
Percentage: 0,
|
||||
QuantityPosition: 1,
|
||||
"": null,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 505,
|
||||
MaterialDescription: "LBL IML Label B 1.8L Evolution 1265678",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 79357.090909,
|
||||
totalNeeded: 1,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: null,
|
||||
noPKGManualShortage: null,
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 903000,
|
||||
Percentage: 0,
|
||||
QuantityPosition: null,
|
||||
"": 1,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 97,
|
||||
MaterialDescription: "SSH Plastic 48100349 44x56x0.06 30cyc",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 792,
|
||||
totalNeeded: 66.2904,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: "pkgAutoGood",
|
||||
noPKGManualShortage: "noManPkg",
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 29962,
|
||||
Percentage: 0,
|
||||
QuantityPosition: 9,
|
||||
"": null,
|
||||
},
|
||||
{
|
||||
MaterialHumanReadableId: 169,
|
||||
MaterialDescription: "LBL Label 4x6 white 9396",
|
||||
Staged: 0,
|
||||
isManual: false,
|
||||
IsMainMaterial: false,
|
||||
TotalPlannedLoadingUnits: 88,
|
||||
TotalProducedLoadingUnits: 0,
|
||||
remainingPallets: 88,
|
||||
Provided: 0,
|
||||
consumption: 0,
|
||||
totalDemand: 264,
|
||||
totalNeeded: 66.2904,
|
||||
noMMShortage: null,
|
||||
noPKGAutoShortage: "pkgAutoGood",
|
||||
noPKGManualShortage: "noManPkg",
|
||||
noManualShortage: null,
|
||||
autoConsumeCheck: "autoConsumeOk",
|
||||
invForAutoConsume: 55637,
|
||||
Percentage: 0,
|
||||
QuantityPosition: 3,
|
||||
"": null,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user