Constructor
new CompacSizerPackrunSummaryModel(siteId)
CompacSizerPackrunSummaryModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Compac Sizer Packrun Summary
Source
Members
compacSizerIdstring
The Compac Sizer ID this Summary is associated with
Type
-
string
Source
createdTimestampDate
When this Summary was Created
Type
-
Date
Source
deletedboolean
Whether the Compac Sizer Packrun Summary has been deleted
Type
-
boolean
Source
idstring
The Compac Sizer Packrun Summary ID
Type
-
string
Source
initialOutletProductsArray.<{outletNumber: number, productId: string, productName: ?string}>
An Array that contains the Products initially Assigned to each Outlet
Type
-
Array.<{outletNumber: number, productId: string, productName: ?string}>
Source
initialOutletTypesArray.<{outletNumber: number, type: string, typeId: ?string}>
An Array that contains the Types initially configured for each Outlet
Type
-
Array.<{outletNumber: number, type: string, typeId: ?string}>
Source
outletProductChangesArray.<{timestamp: Date, outletNumber: number, productId: string, productName: ?string, outletProductChangeId: string}>
An Array of Outlet Product Changes
Type
-
Array.<{timestamp: Date, outletNumber: number, productId: string, productName: ?string, outletProductChangeId: string}>
Source
outletSummariesArray.<{name: string, type: string, number: number, totals: Array.<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>
An Array of Packrun Summary Data Objects for each Outlet
Type
-
Array.<{name: string, type: string, number: number, totals: Array.<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>
Source
outletTypeChangesArray.<{timestamp: Date, outletNumber: number, typeId: ?string}>
An Array of Outlet Type Changes. Only applies to Outlets configured as Dynamic
Type
-
Array.<{timestamp: Date, outletNumber: number, typeId: ?string}>
Source
packrunIdstring
The Packrun ID this Summary is associated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Compac Sizer Packrun Summary
Type
-
number
Source
timeBatchIdstring
The Time Batch this Summary is associated with
Type
-
string
Source
updateTimestampDate
When the Compac Sizer Packrun Summary was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {CompacSizerPackrunSummaryModel}
Create a new CompacSizerPackrunSummaryModel 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 Compac Sizer Packrun Summary
Returns
-
CompacSizerPackrunSummaryModel