Constructor
new FreshPackPackrunSummaryModel(siteId)
FreshPackPackrunSummaryModel Constructor
Parameters
-
siteId
number
The Site ID associated with this FreshPack Packrun Summary
Source
Members
clearanceSummariesArray.<{fruitSize: ?string, tasteBand: ?string, maturityProtocol: ?string, harvestProtocol: ?string, clearanceDate: ?Date, kiwiStartDate: ?Date, trayEstimate: ?number, protocolADate: ?Date, protocolBDate: ?Date, protocolCDate: ?Date, protocolNDate: ?Date, useNIRPacking: ?boolean}>
An Array of Clearance Summary Data Objects for all Sizes
Type
-
Array.<{fruitSize: ?string, tasteBand: ?string, maturityProtocol: ?string, harvestProtocol: ?string, clearanceDate: ?Date, kiwiStartDate: ?Date, trayEstimate: ?number, protocolADate: ?Date, protocolBDate: ?Date, protocolCDate: ?Date, protocolNDate: ?Date, useNIRPacking: ?boolean}>
Source
createdTimestampDate
When this Summary was Created
Type
-
Date
Source
deletedboolean
Whether the FreshPack Packrun Summary has been deleted
Type
-
boolean
Source
idstring
The FreshPack 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 FreshPack Packrun Summary
Type
-
number
Source
timeBatchIdstring
The Time Batch this Summary is associated with
Type
-
string
Source
traySummariesArray.<{classType: string, fruitSize: ?string, trayCount: number, averageTrayWeight: number, weight: number}>
An Array of Tray Summary Data Objects for all Sizes and Class Types
Type
-
Array.<{classType: string, fruitSize: ?string, trayCount: number, averageTrayWeight: number, weight: number}>
Source
updateTimestampDate
When the FreshPack Packrun Summary was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {FreshPackPackrunSummaryModel}
Create a new FreshPackPackrunSummaryModel 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 FreshPack Packrun Summary
Returns
-
FreshPackPackrunSummaryModel