Constructor
new MAFSizerPackrunSummaryModel(siteId)
MAFSizerPackrunSummaryModel Constructor
Parameters
-
siteId
number
The Site ID associated with this MAF Sizer Packrun Summary
Source
Members
classTypeSummariesArray.<{classType: string, totals: Array.<{fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>
An Array of Packrun Summary Data Objects for each Class Type
Type
-
Array.<{classType: string, totals: Array.<{fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>
Source
createdTimestampDate
When this Summary was Created
Type
-
Date
Source
deletedboolean
Whether the MAF Sizer Packrun Summary has been deleted
Type
-
boolean
Source
idstring
The MAF Sizer Packrun Summary ID
Type
-
string
Source
initialOutletArticlesArray.<{outletNumber: number, articleName: ?string}>
An Array that contains the Articles initially Assigned to each Outlet
Type
-
Array.<{outletNumber: number, articleName: ?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
mafSizerIdstring
The MAF Sizer 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 MAF Sizer Packrun Summary
Type
-
number
Source
timeBatchIdstring
The Time Batch this Summary is associated with
Type
-
string
Source
updateTimestampDate
When the MAF Sizer Packrun Summary was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {MAFSizerPackrunSummaryModel}
Create a new MAFSizerPackrunSummaryModel 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 MAF Sizer Packrun Summary
Returns
-
MAFSizerPackrunSummaryModel