Bottle.js Documentation

Functions

getBottleDetails()

Function that loads the cards for the final bottle

loadProductionCard(production)

Adds the production card to the UI

loadTransportCards(transports)

Function to load all transports as cards

loadFieldCards(fields)

Loads all fields as cards

getTransportFromProduction(production)

Retrieves a transport included in a production

empty(id)

Empties a bottle column by an id

getTransportsFromProduction(production)

Retrieves all Transports from a production

getFieldsFromHarvest(harvest)

Retrieves all field addresses included in a harvest

getHarvestFromTransport(transport)

Retrieves the harvest address from a transport

getHarvestsFromTransport(transport)

Retrieves all harvest addresses included in a transport

currentProduction()

Gets the Address of the current production

getBottleDetails()

Function that loads the cards for the final bottle

Kind: global function

loadProductionCard(production)

Adds the production card to the UI

Kind: global function

Param Type Description
production \* Address of the production

loadTransportCards(transports)

Function to load all transports as cards

Kind: global function

Param Type Description
transports \* The tranpsort addresses

loadFieldCards(fields)

Loads all fields as cards

Kind: global function

Param Type Description
fields \* Addresses of the fields

getTransportFromProduction(production) ⇒

Retrieves a transport included in a production

Kind: global function Returns: The address of the transport

Param Type Description
production \* Address of the production

empty(id)

Empties a bottle column by an id

Kind: global function

Param Type Description
id \* The ID of the column

getTransportsFromProduction(production) ⇒

Retrieves all Transports from a production

Kind: global function Returns: Addresses of the transports

Param Type Description
production \* Address of a production

getFieldsFromHarvest(harvest) ⇒

Retrieves all field addresses included in a harvest

Kind: global function Returns: Addresses of the fields

Param Type Description
harvest \* Address of the harvest

getHarvestFromTransport(transport) ⇒

Retrieves the harvest address from a transport

Kind: global function Returns: Address of the Harvest

Param Type Description
transport \* The address of the transport

getHarvestsFromTransport(transport) ⇒

Retrieves all harvest addresses included in a transport

Kind: global function Returns: Addresses of the harvests

Param Type Description
transport \* Address of the transport

currentProduction() ⇒

Gets the Address of the current production

Kind: global function Returns: Address of the production