Constructor
new MAFSizerBatchModel(siteId)
MAFSizerBatchModel Constructor
Parameters
-
siteId
number
The Site ID associated with this MAF Sizer Batch
Source
Members
articleSummariesArray.<{name: string, fruitCount: number, fruitWeight: number}>
An Array of Summary Data Objects for each Article
Type
-
Array.<{name: string, fruitCount: number, fruitWeight: number}>
Source
batchIdstring
The Numeric MAF Batch ID
Type
-
string
Source
batchNamestring
The Batch Name
Type
-
string
Source
createdTimestampDate
When this Batch was Created
Type
-
Date
Source
deletedboolean
Whether the MAF Sizer Batch has been deleted
Type
-
boolean
Source
fruitSummariesArray.<{articleName: string, fruitSize: string, fruitCount: number, fruitWeight: number}>
An Array of Summary Data Objects for each Fruit Size and Article
Type
-
Array.<{articleName: string, fruitSize: string, fruitCount: number, fruitWeight: number}>
Source
growerCodestring
The Grower Code
Type
-
string
Source
growerNamestring
The Grower Name
Type
-
string
Source
idstring
The MAF Sizer Batch ID
Type
-
string
Source
mafSizerIdstring
The MAF Sizer ID this Batch is associated with
Type
-
string
Source
outletSummariesArray.<{number: number, fruitCount: number, fruitWeight: number}>
An Array of Summary Data Objects for each Outlet
Type
-
Array.<{number: number, fruitCount: number, fruitWeight: number}>
Source
packrunIdstring
The Packrun ID associated with this Batch
Type
-
string
Source
siteIdnumber
The Site ID associated with this MAF Sizer Batch
Type
-
number
Source
totalWeightnumber
The Total Weight Processed for this Batch
Type
-
number
Source
updateTimestampDate
When the MAF Sizer Batch was last updated
Type
-
Date
Source
varietyCodestring
The Variety Code
Type
-
string
Source
varietyNamestring
The Variety Name
Type
-
string
Source
Methods
fromJSON(json, siteId) → {MAFSizerBatchModel}
Create a new MAFSizerBatchModel 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 Batch
Returns
-
MAFSizerBatchModel