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

Static Public Member Functions

static sessionKey ()
 
static scaleOnline ($host, $port=6000)
 
static labelToAttributes ($label_number)
 
static attributesToLabel ($align, $fixed_weight=false, $graphics=false)
 
static getModelByHost ($host)
 
static labelTranslate ($label, $scale_type)
 

Static Public Attributes

static $WRITE_ITEM_FIELDS
 

Member Function Documentation

static COREPOS\Fannie\API\item\ServiceScaleLib::attributesToLabel (   $align,
  $fixed_weight = false,
  $graphics = false 
)
static

Get appropriate label number for given attributes

Parameters
$align[string] vertical or horizontal
$fixed_weight[boolean, default false]
$graphics[boolean, default false]
Returns
[integer] label number
static COREPOS\Fannie\API\item\ServiceScaleLib::labelToAttributes (   $label_number)
static

Get attributes for a given label number

Parameters
$label_number[integer]
Returns
keyed array
  • align => vertical or horizontal
  • fixed_weight => boolean
  • graphics => boolean

Member Data Documentation

COREPOS\Fannie\API\item\ServiceScaleLib::$WRITE_ITEM_FIELDS
static
Initial value:
= array(
'RecordType' => array('name'=>'Record Type', 'required'=>true, 'default'=>'ChangeOneItem'),
'PLU' => array('name'=>'PLU Number', 'required'=>true, 'default'=>'0000'),
'Description' => array('name'=>'Item Description', 'required'=>false, 'default'=>'', 'quoted'=>true),
'ReportingClass' => array('name'=>'Reporting Class', 'required'=>true, 'default'=>'999999'),
'Label' => array('name'=>'Label Type 01', 'required'=>false, 'default'=>'53'),
'Tare' => array('name'=>'Tare 01', 'required'=>false, 'default'=>'0'),
'ShelfLife' => array('name'=>'Shelf Life', 'required'=>false, 'default'=>'0'),
'Price' => array('name'=>'Price', 'required'=>true, 'default'=>'0.00'),
'ByCount' => array('name'=>'By Count', 'required'=>false, 'default'=>'0'),
'Type' => array('name'=>'Item Type', 'required'=>true, 'default'=>'Random Weight'),
'NetWeight' => array('name'=>'Net Weight', 'required'=>false, 'default'=>'0'),
'Graphics' => array('name'=>'Graphics Number', 'required'=>false, 'default'=>'0'),
)

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