@ricado/api-client 2.5.8 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +2 -2
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +2 -2
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +3 -2
- package/lib/Controllers/Packhouse/Site/PackrunController.js +544 -0
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -2
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +27 -1
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +27 -1
- package/lib/Models/Packhouse/Site/PackingLineModel.js +255 -1
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +74 -1
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +208 -4
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +2 -2
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +2 -2
- package/src/Controllers/Packhouse/Site/PackingLineController.js +3 -2
- package/src/Controllers/Packhouse/Site/PackrunController.js +699 -0
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -2
- package/src/Models/Packhouse/Site/CompacSizerModel.js +37 -1
- package/src/Models/Packhouse/Site/MAFSizerModel.js +37 -1
- package/src/Models/Packhouse/Site/PackingLineModel.js +344 -1
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +95 -1
- package/src/PackageVersion.js +1 -1
|
@@ -161,7 +161,7 @@ export default RejectBinScaleController;
|
|
|
161
161
|
* @typedef {Object} RejectBinScaleController.CreateData
|
|
162
162
|
* @property {?number} [rtuId] The RTU this Reject Bin Scale belongs to
|
|
163
163
|
* @property {string} name The Name of this Reject Bin Scale
|
|
164
|
-
* @property {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, currentLiveWeight: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}} points The Points used by this Reject Bin Scale
|
|
164
|
+
* @property {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, currentLiveWeight: ?number, startLiveWeighingRequest: ?number, finishLiveWeighingRequest: ?number, fruitDeliveryActive: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}} points The Points used by this Reject Bin Scale
|
|
165
165
|
* @property {string} packingLineId The Packing Line that owns this Reject Bin Scale
|
|
166
166
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
167
167
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
@@ -172,6 +172,7 @@ export default RejectBinScaleController;
|
|
|
172
172
|
* @property {?number} [autoWeighingStartDelay] The Delay in Milliseconds before Auto Live Weighing would Start
|
|
173
173
|
* @property {?number} [autoWeighingFinishThreshold] The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
174
174
|
* @property {?number} [autoWeighingFinishDelay] The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
175
|
+
* @property {?boolean} [autoWeighingFinishAtGrossTarget] Whether Live Weighing should be Automatically Finished when the Target Gross Weight is Met
|
|
175
176
|
* @property {?number} [manualInterventionMaximumDuration] The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
176
177
|
* @property {?number} [liveWeighingIncreaseTolerance] The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
177
178
|
* @property {?number} [liveWeighingDecreaseTolerance] The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
@@ -187,7 +188,7 @@ export default RejectBinScaleController;
|
|
|
187
188
|
*
|
|
188
189
|
* @typedef {Object} RejectBinScaleController.UpdateData
|
|
189
190
|
* @property {string} [name] The Name of this Reject Bin Scale
|
|
190
|
-
* @property {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, currentLiveWeight: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}} [points] The Points used by this Reject Bin Scale
|
|
191
|
+
* @property {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, currentLiveWeight: ?number, startLiveWeighingRequest: ?number, finishLiveWeighingRequest: ?number, fruitDeliveryActive: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}} [points] The Points used by this Reject Bin Scale
|
|
191
192
|
* @property {string} [packingLineId] The Packing Line that owns this Reject Bin Scale
|
|
192
193
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
193
194
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
@@ -198,6 +199,7 @@ export default RejectBinScaleController;
|
|
|
198
199
|
* @property {?number} [autoWeighingStartDelay] The Delay in Milliseconds before Auto Live Weighing would Start
|
|
199
200
|
* @property {?number} [autoWeighingFinishThreshold] The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
200
201
|
* @property {?number} [autoWeighingFinishDelay] The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
202
|
+
* @property {?boolean} [autoWeighingFinishAtGrossTarget] Whether Live Weighing should be Automatically Finished when the Target Gross Weight is Met
|
|
201
203
|
* @property {?number} [manualInterventionMaximumDuration] The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
202
204
|
* @property {?number} [liveWeighingIncreaseTolerance] The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
203
205
|
* @property {?number} [liveWeighingDecreaseTolerance] The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
@@ -76,7 +76,7 @@ class CompacSizerModel extends BaseModel
|
|
|
76
76
|
/**
|
|
77
77
|
* The Points used by this Compac Sizer
|
|
78
78
|
*
|
|
79
|
-
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}}
|
|
79
|
+
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
82
|
this.points = (function(){
|
|
@@ -104,6 +104,10 @@ class CompacSizerModel extends BaseModel
|
|
|
104
104
|
|
|
105
105
|
pointsDefaultValue.currentBatchFruitSizeProfile = null;
|
|
106
106
|
|
|
107
|
+
pointsDefaultValue.currentBatchPackrunId = 0;
|
|
108
|
+
|
|
109
|
+
pointsDefaultValue.currentBatchPackrunName = 0;
|
|
110
|
+
|
|
107
111
|
pointsDefaultValue.machineAverageFruitWeight = 0;
|
|
108
112
|
|
|
109
113
|
pointsDefaultValue.machineAverageFruitSize = 0;
|
|
@@ -527,6 +531,38 @@ class CompacSizerModel extends BaseModel
|
|
|
527
531
|
pointsObject.currentBatchFruitSizeProfile = null;
|
|
528
532
|
}
|
|
529
533
|
|
|
534
|
+
if(typeof jsonObject['points'] === 'object' && 'currentBatchPackrunId' in jsonObject['points'])
|
|
535
|
+
{
|
|
536
|
+
pointsObject.currentBatchPackrunId = (function(){
|
|
537
|
+
if(typeof jsonObject['points'].currentBatchPackrunId !== 'number')
|
|
538
|
+
{
|
|
539
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunId)) ? Number(jsonObject['points'].currentBatchPackrunId) : Math.floor(Number(jsonObject['points'].currentBatchPackrunId));
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunId) ? jsonObject['points'].currentBatchPackrunId : Math.floor(jsonObject['points'].currentBatchPackrunId);
|
|
543
|
+
}());
|
|
544
|
+
}
|
|
545
|
+
else
|
|
546
|
+
{
|
|
547
|
+
pointsObject.currentBatchPackrunId = 0;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if(typeof jsonObject['points'] === 'object' && 'currentBatchPackrunName' in jsonObject['points'])
|
|
551
|
+
{
|
|
552
|
+
pointsObject.currentBatchPackrunName = (function(){
|
|
553
|
+
if(typeof jsonObject['points'].currentBatchPackrunName !== 'number')
|
|
554
|
+
{
|
|
555
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunName)) ? Number(jsonObject['points'].currentBatchPackrunName) : Math.floor(Number(jsonObject['points'].currentBatchPackrunName));
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunName) ? jsonObject['points'].currentBatchPackrunName : Math.floor(jsonObject['points'].currentBatchPackrunName);
|
|
559
|
+
}());
|
|
560
|
+
}
|
|
561
|
+
else
|
|
562
|
+
{
|
|
563
|
+
pointsObject.currentBatchPackrunName = 0;
|
|
564
|
+
}
|
|
565
|
+
|
|
530
566
|
if(typeof jsonObject['points'] === 'object' && 'machineAverageFruitWeight' in jsonObject['points'])
|
|
531
567
|
{
|
|
532
568
|
pointsObject.machineAverageFruitWeight = (function(){
|
|
@@ -76,7 +76,7 @@ class MAFSizerModel extends BaseModel
|
|
|
76
76
|
/**
|
|
77
77
|
* The Points used by this MAF Sizer
|
|
78
78
|
*
|
|
79
|
-
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}}
|
|
79
|
+
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
82
|
this.points = (function(){
|
|
@@ -94,6 +94,10 @@ class MAFSizerModel extends BaseModel
|
|
|
94
94
|
|
|
95
95
|
pointsDefaultValue.currentBatchVarietyName = 0;
|
|
96
96
|
|
|
97
|
+
pointsDefaultValue.currentBatchPackrunId = 0;
|
|
98
|
+
|
|
99
|
+
pointsDefaultValue.currentBatchPackrunName = 0;
|
|
100
|
+
|
|
97
101
|
pointsDefaultValue.machineAverageFruitWeight = 0;
|
|
98
102
|
|
|
99
103
|
pointsDefaultValue.machineAverageFruitSize = 0;
|
|
@@ -415,6 +419,38 @@ class MAFSizerModel extends BaseModel
|
|
|
415
419
|
pointsObject.currentBatchVarietyName = 0;
|
|
416
420
|
}
|
|
417
421
|
|
|
422
|
+
if(typeof jsonObject['points'] === 'object' && 'currentBatchPackrunId' in jsonObject['points'])
|
|
423
|
+
{
|
|
424
|
+
pointsObject.currentBatchPackrunId = (function(){
|
|
425
|
+
if(typeof jsonObject['points'].currentBatchPackrunId !== 'number')
|
|
426
|
+
{
|
|
427
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunId)) ? Number(jsonObject['points'].currentBatchPackrunId) : Math.floor(Number(jsonObject['points'].currentBatchPackrunId));
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunId) ? jsonObject['points'].currentBatchPackrunId : Math.floor(jsonObject['points'].currentBatchPackrunId);
|
|
431
|
+
}());
|
|
432
|
+
}
|
|
433
|
+
else
|
|
434
|
+
{
|
|
435
|
+
pointsObject.currentBatchPackrunId = 0;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if(typeof jsonObject['points'] === 'object' && 'currentBatchPackrunName' in jsonObject['points'])
|
|
439
|
+
{
|
|
440
|
+
pointsObject.currentBatchPackrunName = (function(){
|
|
441
|
+
if(typeof jsonObject['points'].currentBatchPackrunName !== 'number')
|
|
442
|
+
{
|
|
443
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunName)) ? Number(jsonObject['points'].currentBatchPackrunName) : Math.floor(Number(jsonObject['points'].currentBatchPackrunName));
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunName) ? jsonObject['points'].currentBatchPackrunName : Math.floor(jsonObject['points'].currentBatchPackrunName);
|
|
447
|
+
}());
|
|
448
|
+
}
|
|
449
|
+
else
|
|
450
|
+
{
|
|
451
|
+
pointsObject.currentBatchPackrunName = 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
418
454
|
if(typeof jsonObject['points'] === 'object' && 'machineAverageFruitWeight' in jsonObject['points'])
|
|
419
455
|
{
|
|
420
456
|
pointsObject.machineAverageFruitWeight = (function(){
|
|
@@ -190,7 +190,7 @@ class PackingLineModel extends BaseModel
|
|
|
190
190
|
/**
|
|
191
191
|
* The Optional Shift Management Object for this Packing Line
|
|
192
192
|
*
|
|
193
|
-
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
193
|
+
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, currentShiftTotalBinsTipped: ?number, currentShiftTotalClass1Trays: ?number, currentShiftTotalClass2Trays: ?number, currentShiftTotalDowntimePercentage: ?number, currentShiftTotalDowntimeSeconds: ?number, currentShiftTotalLayeredTraysPercentage: ?number, currentShiftAverageClass1TraysPerHour: ?number, currentShiftAverageCostPerTray: ?number, currentShiftAverageClass1Manning: ?number, currentShiftAverageClass2Manning: ?number, currentShiftAverageQualityR600Ideal: ?number, currentShiftAverageScorePercentage: ?number, currentShiftProjectedTotalBinsTipped: ?number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, currentShiftCustomQualityAverageValue: ?number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean, useDefaultManningAtShiftStart: ?boolean}}
|
|
194
194
|
* @public
|
|
195
195
|
*/
|
|
196
196
|
this.shiftManagement = null;
|
|
@@ -3955,6 +3955,279 @@ class PackingLineModel extends BaseModel
|
|
|
3955
3955
|
pointsObject.currentShiftScorePercentage = 0;
|
|
3956
3956
|
}
|
|
3957
3957
|
|
|
3958
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalBinsTipped' in jsonObject['shiftManagement'].points)
|
|
3959
|
+
{
|
|
3960
|
+
pointsObject.currentShiftTotalBinsTipped = (function(){
|
|
3961
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped === null)
|
|
3962
|
+
{
|
|
3963
|
+
return null;
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped !== 'number')
|
|
3967
|
+
{
|
|
3968
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped));
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped) ? jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped);
|
|
3972
|
+
}());
|
|
3973
|
+
}
|
|
3974
|
+
else
|
|
3975
|
+
{
|
|
3976
|
+
pointsObject.currentShiftTotalBinsTipped = null;
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalClass1Trays' in jsonObject['shiftManagement'].points)
|
|
3980
|
+
{
|
|
3981
|
+
pointsObject.currentShiftTotalClass1Trays = (function(){
|
|
3982
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays === null)
|
|
3983
|
+
{
|
|
3984
|
+
return null;
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays !== 'number')
|
|
3988
|
+
{
|
|
3989
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays));
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays) ? jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays);
|
|
3993
|
+
}());
|
|
3994
|
+
}
|
|
3995
|
+
else
|
|
3996
|
+
{
|
|
3997
|
+
pointsObject.currentShiftTotalClass1Trays = null;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalClass2Trays' in jsonObject['shiftManagement'].points)
|
|
4001
|
+
{
|
|
4002
|
+
pointsObject.currentShiftTotalClass2Trays = (function(){
|
|
4003
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays === null)
|
|
4004
|
+
{
|
|
4005
|
+
return null;
|
|
4006
|
+
}
|
|
4007
|
+
|
|
4008
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays !== 'number')
|
|
4009
|
+
{
|
|
4010
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays));
|
|
4011
|
+
}
|
|
4012
|
+
|
|
4013
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays) ? jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays);
|
|
4014
|
+
}());
|
|
4015
|
+
}
|
|
4016
|
+
else
|
|
4017
|
+
{
|
|
4018
|
+
pointsObject.currentShiftTotalClass2Trays = null;
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalDowntimePercentage' in jsonObject['shiftManagement'].points)
|
|
4022
|
+
{
|
|
4023
|
+
pointsObject.currentShiftTotalDowntimePercentage = (function(){
|
|
4024
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage === null)
|
|
4025
|
+
{
|
|
4026
|
+
return null;
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage !== 'number')
|
|
4030
|
+
{
|
|
4031
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage));
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage) ? jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage);
|
|
4035
|
+
}());
|
|
4036
|
+
}
|
|
4037
|
+
else
|
|
4038
|
+
{
|
|
4039
|
+
pointsObject.currentShiftTotalDowntimePercentage = null;
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalDowntimeSeconds' in jsonObject['shiftManagement'].points)
|
|
4043
|
+
{
|
|
4044
|
+
pointsObject.currentShiftTotalDowntimeSeconds = (function(){
|
|
4045
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds === null)
|
|
4046
|
+
{
|
|
4047
|
+
return null;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds !== 'number')
|
|
4051
|
+
{
|
|
4052
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds));
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds) ? jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds);
|
|
4056
|
+
}());
|
|
4057
|
+
}
|
|
4058
|
+
else
|
|
4059
|
+
{
|
|
4060
|
+
pointsObject.currentShiftTotalDowntimeSeconds = null;
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalLayeredTraysPercentage' in jsonObject['shiftManagement'].points)
|
|
4064
|
+
{
|
|
4065
|
+
pointsObject.currentShiftTotalLayeredTraysPercentage = (function(){
|
|
4066
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage === null)
|
|
4067
|
+
{
|
|
4068
|
+
return null;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage !== 'number')
|
|
4072
|
+
{
|
|
4073
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage));
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage) ? jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage);
|
|
4077
|
+
}());
|
|
4078
|
+
}
|
|
4079
|
+
else
|
|
4080
|
+
{
|
|
4081
|
+
pointsObject.currentShiftTotalLayeredTraysPercentage = null;
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageClass1TraysPerHour' in jsonObject['shiftManagement'].points)
|
|
4085
|
+
{
|
|
4086
|
+
pointsObject.currentShiftAverageClass1TraysPerHour = (function(){
|
|
4087
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour === null)
|
|
4088
|
+
{
|
|
4089
|
+
return null;
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour !== 'number')
|
|
4093
|
+
{
|
|
4094
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour));
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour) ? jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour);
|
|
4098
|
+
}());
|
|
4099
|
+
}
|
|
4100
|
+
else
|
|
4101
|
+
{
|
|
4102
|
+
pointsObject.currentShiftAverageClass1TraysPerHour = null;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageCostPerTray' in jsonObject['shiftManagement'].points)
|
|
4106
|
+
{
|
|
4107
|
+
pointsObject.currentShiftAverageCostPerTray = (function(){
|
|
4108
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray === null)
|
|
4109
|
+
{
|
|
4110
|
+
return null;
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray !== 'number')
|
|
4114
|
+
{
|
|
4115
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray));
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4118
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray) ? jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray);
|
|
4119
|
+
}());
|
|
4120
|
+
}
|
|
4121
|
+
else
|
|
4122
|
+
{
|
|
4123
|
+
pointsObject.currentShiftAverageCostPerTray = null;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageClass1Manning' in jsonObject['shiftManagement'].points)
|
|
4127
|
+
{
|
|
4128
|
+
pointsObject.currentShiftAverageClass1Manning = (function(){
|
|
4129
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning === null)
|
|
4130
|
+
{
|
|
4131
|
+
return null;
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning !== 'number')
|
|
4135
|
+
{
|
|
4136
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning));
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning) ? jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning);
|
|
4140
|
+
}());
|
|
4141
|
+
}
|
|
4142
|
+
else
|
|
4143
|
+
{
|
|
4144
|
+
pointsObject.currentShiftAverageClass1Manning = null;
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4147
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageClass2Manning' in jsonObject['shiftManagement'].points)
|
|
4148
|
+
{
|
|
4149
|
+
pointsObject.currentShiftAverageClass2Manning = (function(){
|
|
4150
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning === null)
|
|
4151
|
+
{
|
|
4152
|
+
return null;
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning !== 'number')
|
|
4156
|
+
{
|
|
4157
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning));
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning) ? jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning);
|
|
4161
|
+
}());
|
|
4162
|
+
}
|
|
4163
|
+
else
|
|
4164
|
+
{
|
|
4165
|
+
pointsObject.currentShiftAverageClass2Manning = null;
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageQualityR600Ideal' in jsonObject['shiftManagement'].points)
|
|
4169
|
+
{
|
|
4170
|
+
pointsObject.currentShiftAverageQualityR600Ideal = (function(){
|
|
4171
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal === null)
|
|
4172
|
+
{
|
|
4173
|
+
return null;
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal !== 'number')
|
|
4177
|
+
{
|
|
4178
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal));
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal) ? jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal);
|
|
4182
|
+
}());
|
|
4183
|
+
}
|
|
4184
|
+
else
|
|
4185
|
+
{
|
|
4186
|
+
pointsObject.currentShiftAverageQualityR600Ideal = null;
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageScorePercentage' in jsonObject['shiftManagement'].points)
|
|
4190
|
+
{
|
|
4191
|
+
pointsObject.currentShiftAverageScorePercentage = (function(){
|
|
4192
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage === null)
|
|
4193
|
+
{
|
|
4194
|
+
return null;
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage !== 'number')
|
|
4198
|
+
{
|
|
4199
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage));
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage) ? jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage);
|
|
4203
|
+
}());
|
|
4204
|
+
}
|
|
4205
|
+
else
|
|
4206
|
+
{
|
|
4207
|
+
pointsObject.currentShiftAverageScorePercentage = null;
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4210
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftProjectedTotalBinsTipped' in jsonObject['shiftManagement'].points)
|
|
4211
|
+
{
|
|
4212
|
+
pointsObject.currentShiftProjectedTotalBinsTipped = (function(){
|
|
4213
|
+
if(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped === null)
|
|
4214
|
+
{
|
|
4215
|
+
return null;
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped !== 'number')
|
|
4219
|
+
{
|
|
4220
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped)) ? Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped));
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped) ? jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped : Math.floor(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped);
|
|
4224
|
+
}());
|
|
4225
|
+
}
|
|
4226
|
+
else
|
|
4227
|
+
{
|
|
4228
|
+
pointsObject.currentShiftProjectedTotalBinsTipped = null;
|
|
4229
|
+
}
|
|
4230
|
+
|
|
3958
4231
|
if(typeof jsonObject['shiftManagement'].points === 'object' && 'class1TraysPerHourTargets' in jsonObject['shiftManagement'].points)
|
|
3959
4232
|
{
|
|
3960
4233
|
pointsObject.class1TraysPerHourTargets = (function(){
|
|
@@ -4279,6 +4552,32 @@ class PackingLineModel extends BaseModel
|
|
|
4279
4552
|
|
|
4280
4553
|
pointsDefaultValue.currentShiftScorePercentage = 0;
|
|
4281
4554
|
|
|
4555
|
+
pointsDefaultValue.currentShiftTotalBinsTipped = null;
|
|
4556
|
+
|
|
4557
|
+
pointsDefaultValue.currentShiftTotalClass1Trays = null;
|
|
4558
|
+
|
|
4559
|
+
pointsDefaultValue.currentShiftTotalClass2Trays = null;
|
|
4560
|
+
|
|
4561
|
+
pointsDefaultValue.currentShiftTotalDowntimePercentage = null;
|
|
4562
|
+
|
|
4563
|
+
pointsDefaultValue.currentShiftTotalDowntimeSeconds = null;
|
|
4564
|
+
|
|
4565
|
+
pointsDefaultValue.currentShiftTotalLayeredTraysPercentage = null;
|
|
4566
|
+
|
|
4567
|
+
pointsDefaultValue.currentShiftAverageClass1TraysPerHour = null;
|
|
4568
|
+
|
|
4569
|
+
pointsDefaultValue.currentShiftAverageCostPerTray = null;
|
|
4570
|
+
|
|
4571
|
+
pointsDefaultValue.currentShiftAverageClass1Manning = null;
|
|
4572
|
+
|
|
4573
|
+
pointsDefaultValue.currentShiftAverageClass2Manning = null;
|
|
4574
|
+
|
|
4575
|
+
pointsDefaultValue.currentShiftAverageQualityR600Ideal = null;
|
|
4576
|
+
|
|
4577
|
+
pointsDefaultValue.currentShiftAverageScorePercentage = null;
|
|
4578
|
+
|
|
4579
|
+
pointsDefaultValue.currentShiftProjectedTotalBinsTipped = null;
|
|
4580
|
+
|
|
4282
4581
|
pointsDefaultValue.class1TraysPerHourTargets = 0;
|
|
4283
4582
|
|
|
4284
4583
|
pointsDefaultValue.class1TraysPerHourAdjustments = 0;
|
|
@@ -4410,6 +4709,27 @@ class PackingLineModel extends BaseModel
|
|
|
4410
4709
|
pointsObject.currentShiftCustomQualityValue = 0;
|
|
4411
4710
|
}
|
|
4412
4711
|
|
|
4712
|
+
if(typeof customQualityConfigurationItem.points === 'object' && 'currentShiftCustomQualityAverageValue' in customQualityConfigurationItem.points)
|
|
4713
|
+
{
|
|
4714
|
+
pointsObject.currentShiftCustomQualityAverageValue = (function(){
|
|
4715
|
+
if(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue === null)
|
|
4716
|
+
{
|
|
4717
|
+
return null;
|
|
4718
|
+
}
|
|
4719
|
+
|
|
4720
|
+
if(typeof customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue !== 'number')
|
|
4721
|
+
{
|
|
4722
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue));
|
|
4723
|
+
}
|
|
4724
|
+
|
|
4725
|
+
return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue) ? customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue);
|
|
4726
|
+
}());
|
|
4727
|
+
}
|
|
4728
|
+
else
|
|
4729
|
+
{
|
|
4730
|
+
pointsObject.currentShiftCustomQualityAverageValue = null;
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4413
4733
|
if(typeof customQualityConfigurationItem.points === 'object' && 'customQualityTargets' in customQualityConfigurationItem.points)
|
|
4414
4734
|
{
|
|
4415
4735
|
pointsObject.customQualityTargets = (function(){
|
|
@@ -4454,6 +4774,8 @@ class PackingLineModel extends BaseModel
|
|
|
4454
4774
|
|
|
4455
4775
|
pointsDefaultValue.currentShiftCustomQualityValue = 0;
|
|
4456
4776
|
|
|
4777
|
+
pointsDefaultValue.currentShiftCustomQualityAverageValue = null;
|
|
4778
|
+
|
|
4457
4779
|
pointsDefaultValue.customQualityTargets = 0;
|
|
4458
4780
|
|
|
4459
4781
|
pointsDefaultValue.customQualityScoreWeighting = 0;
|
|
@@ -4627,6 +4949,27 @@ class PackingLineModel extends BaseModel
|
|
|
4627
4949
|
{
|
|
4628
4950
|
shiftManagementObject.manningUsesTeams = false;
|
|
4629
4951
|
}
|
|
4952
|
+
|
|
4953
|
+
if(typeof jsonObject['shiftManagement'] === 'object' && 'useDefaultManningAtShiftStart' in jsonObject['shiftManagement'])
|
|
4954
|
+
{
|
|
4955
|
+
shiftManagementObject.useDefaultManningAtShiftStart = (function(){
|
|
4956
|
+
if(jsonObject['shiftManagement'].useDefaultManningAtShiftStart === null)
|
|
4957
|
+
{
|
|
4958
|
+
return null;
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
if(typeof jsonObject['shiftManagement'].useDefaultManningAtShiftStart !== 'boolean')
|
|
4962
|
+
{
|
|
4963
|
+
return Boolean(jsonObject['shiftManagement'].useDefaultManningAtShiftStart);
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
return jsonObject['shiftManagement'].useDefaultManningAtShiftStart;
|
|
4967
|
+
}());
|
|
4968
|
+
}
|
|
4969
|
+
else
|
|
4970
|
+
{
|
|
4971
|
+
shiftManagementObject.useDefaultManningAtShiftStart = null;
|
|
4972
|
+
}
|
|
4630
4973
|
|
|
4631
4974
|
return shiftManagementObject;
|
|
4632
4975
|
}());
|