CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | Protected Attributes | List of all members
ProdUpdateModel Class Reference
Inheritance diagram for ProdUpdateModel:
BasicModel

Public Member Functions

 doc ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
 logUpdate ($type='UNKNOWN', $user=false)
 
 logManyUpdates ($upcs, $type='UNKNOWN', $user=false)
 
- Public Member Functions inherited from BasicModel
 __construct ($con)
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 getModels ()
 
 setConnectionByName ($db_name)
 

Public Attributes

const UPDATE_EDIT = 'EDIT'
 
const UPDATE_DELETE = 'DELETE'
 
const UPDATE_BATCH = 'SALE BATCH'
 
const UPDATE_PC_BATCH = 'PRICE BATCH'
 
- Public Attributes inherited from BasicModel
const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 

Protected Attributes

 $name = 'prodUpdate'
 
 $preferred_db = 'op'
 
 $columns
 
- Protected Attributes inherited from BasicModel
 $normalize_lanes = false
 
 $currently_normalizing_lane = false
 

Additional Inherited Members

- Protected Member Functions inherited from BasicModel
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 loadHooks ()
 
 afterNormalize ($db_name, $mode)
 

Member Function Documentation

ProdUpdateModel::logManyUpdates (   $upcs,
  $type = 'UNKNOWN',
  $user = false 
)

Log updates to many products at once

Parameters
$upcs[array] of UPCs
$type[string] update type
$user[string] username
Returns
[boolean] success

Member Data Documentation

ProdUpdateModel::$columns
protected
Initial value:
= array(
'prodUpdateID' => array('type'=>'BIGINT UNSIGNED', 'primary_key'=>true, 'increment'=>true),
'updateType' => array('type'=>'VARCHAR(20)'),
'upc' => array('type'=>'VARCHAR(13)', 'index'=>true),
'storeID' => array('type'=>'INT', 'default'=>0),
'description' => array('type'=>'VARCHAR(50)'),
'price' => array('type'=>'MONEY'),
'salePrice' => array('type'=>'MONEY'),
'cost' => array('type'=>'MONEY'),
'dept' => array('type'=>'INT'),
'tax' => array('type'=>'TINYINT'),
'fs' => array('type'=>'TINYINT'),
'wic' => array('type'=>'TINYINT'),
'scale' => array('type'=>'TINYINT'),
'likeCode' => array('type'=>'INT'),
'modified' => array('type'=>'DATETIME'),
'user' => array('type'=>'INT'),
'forceQty' => array('type'=>'TINYINT'),
'noDisc' => array('type'=>'TINYINT'),
'inUse' => array('type'=>'TINYINT'),
)

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