Class

Batch

Batch(batch)

Constructor

# new Batch(batch)

Parameters:
Name Type Description
batch Batch | Object

View Source model/Batch.js, line 26

Methods

# generate2DMatrixCode(gtin, serialNumberopt) → {string}

Generates the 2D Data Matrix code for a batch or a serial

.

Generates the 2D Data Matrix code for a batch or a serial

Parameters:
Name Type Attributes Description
gtin
serialNumber <optional>

View Source model/Batch.js, line 109

string

# validate(oldStatusopt)

Validate if everything seems ok with the properties of this object.

Validate if everything seems ok with the properties of this object.

Parameters:
Name Type Attributes Description
oldStatus string <optional>

if oldStatus validation is available

View Source model/Batch.js, line 89

undefined if all ok. An array of errors if not all ok.