Title

Global

Methods

# confirmWithStock(stockManager, shipment, stockObj, callback)

Confirms the existence os the selected batches for each shipmentLine and returns the appropriate object for StockManager#manage method

.

Confirms the existence os the selected batches for each shipmentLine and returns the appropriate object for StockManager#manage method

Parameters:
Name Type Description
stockManager StockManager
shipment Shipment
stockObj Object
callback function

View Source model/utils.js, line 15

# create(status, id, callback) → {string}

Creates aC Status DSU

.

Creates aC Status DSU

Parameters:
Name Type Description
status OrderStatus | ShipmentStatus | Status
id String

the sender id

callback function

View Source services/StatusService.js, line 117

keySSI

string

# fromProduct(product, callback)

Parameters:
Name Type Description
product IndividualProduct
callback function

View Source services/TraceabilityService.js, line 120

# get(keySSI, callback)

Resolves the DSU and loads the status object with all its properties, mutable or not

.

Resolves the DSU and loads the status object with all its properties, mutable or not

Parameters:
Name Type Description
keySSI KeySSI
callback function

View Source services/StatusService.js, line 41

# traceStockManagement(gtin, batch, callback)

Stock taking from ShipmentLines and Receipts

.

Stock taking from ShipmentLines and Receipts

Parameters:
Name Type Description
gtin string
batch string
callback function

View Source services/StockManagementService.js, line 60

# update(keySSI, product, callback)

updates a product DSU

.

updates a product DSU

Parameters:
Name Type Description
keySSI KeySSI
product Product
callback function

View Source services/ProductService.js, line 120