Constructor
new FreshQualityPackrunSummaryModel(siteId)
FreshQualityPackrunSummaryModel Constructor
Parameters
-
siteId
number
The Site ID associated with this FreshQuality Packrun Summary
Source
Members
categorySummariesArray.<{name: string, percentage: number, defects: Array.<{name: string, fruitCount: number, percentage: number}>}>
An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
Type
-
Array.<{name: string, percentage: number, defects: Array.<{name: string, fruitCount: number, percentage: number}>}>
Source
class1R600SamplesArray.<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array.<{name: string, group: string, fruitCount: number}>}>
An Array of Class 1 R600 Samples
Type
-
Array.<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array.<{name: string, group: string, fruitCount: number}>}>
Source
createdTimestampDate
When this Summary was Created
Type
-
Date
Source
deletedboolean
Whether the FreshQuality Packrun Summary has been deleted
Type
-
boolean
Source
idstring
The FreshQuality Packrun Summary ID
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Summary is associated with
Type
-
string
Source
packrunIdstring
The Packrun ID this Summary is associated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this FreshQuality Packrun Summary
Type
-
number
Source
timeBatchIdstring
The Time Batch this Summary is associated with
Type
-
string
Source
totalFruitSamplednumber
The Total Number of Fruit Sampled in this Packrun Summary
Type
-
number
Source
updateTimestampDate
When the FreshQuality Packrun Summary was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {FreshQualityPackrunSummaryModel}
Create a new FreshQualityPackrunSummaryModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>
|string
A JSON Object or JSON String
-
siteId
number
The Site ID associated with this FreshQuality Packrun Summary
Returns
-
FreshQualityPackrunSummaryModel