CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | List of all members
COREPOS\Fannie\API\item\EpScaleLib Class Reference

Static Public Member Functions

static getItemLine ($item_info, $scale_model)
 
static getIngredientLine ($item_info, $scale_model)
 
static writeItemsToScales ($items, $scales=array())
 
static deleteItemsFromScales ($items, $scales=array())
 

Member Function Documentation

static COREPOS\Fannie\API\item\EpScaleLib::deleteItemsFromScales (   $items,
  $scales = array() 
)
static

Delete item(s) from scale

Parameters
$items[string] four digit PLU or [array] of [string] 4 digit PLUs
static COREPOS\Fannie\API\item\EpScaleLib::getItemLine (   $item_info,
  $scale_model 
)
static

Generate CSV line for a given item

Parameters
$item_info[keyed array] of value. Keys correspond to WRITE_ITEM_FIELDS
$scale_model[ServiceScaleModel]
Returns
[string] CSV formatted line
static COREPOS\Fannie\API\item\EpScaleLib::writeItemsToScales (   $items,
  $scales = array() 
)
static

Write item update file(s) to ePlum

Parameters
$items[keyed array] of values. Keys correspond to WRITE_ITEM_FIELDS $items may also be an array of keyed arrays to write multiple items One additional key, ExpandedText, is used to write Expanded Text. This is separate from the Write Item operation so it's excluded from that set of fields.
$scales[keyed array, optional] List of scales items will be written to Must have keys "host", "type", and "dept". May have boolean value with key "new".

The documentation for this class was generated from the following file: