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

Public Member Functions

 doc ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
 orderID ()
 
 sku ()
 
 quantity ()
 
 unitCost ()
 
 caseSize ()
 
 receivedDate ()
 
 receivedQty ()
 
 receivedTotalCost ()
 
 unitSize ()
 
 brand ()
 
 description ()
 
 internalUPC ()
 
- Public Member Functions inherited from BasicModel
 db ()
 
 preferredDB ()
 
 setConfig ($c)
 
 __construct ($con)
 
 whichDB ($db_name)
 
 getDefinition ()
 
 create ()
 
 createIfNeeded ($db_name)
 
 load ()
 
 reset ()
 
 getColumns ()
 
 getName ()
 
 getFullQualifiedName ()
 
 find ($sort='', $reverse=false)
 
 delete ()
 
 save ()
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 doc ()
 
 generate ($filename)
 
 newModel ($name, $as_view=false)
 
 getModels ()
 
 toJSON ()
 

Protected Attributes

 $name = "PurchaseOrderItems"
 
 $columns
 
 $preferred_db = 'op'
 
- Protected Attributes inherited from BasicModel
 $name
 
 $fq_name
 
 $columns = array()
 
 $unique = array()
 
 $meta_types
 
 $connection = false
 
 $record_changed = false
 
 $instance = array()
 
 $filters = array()
 
 $normalize_lanes = false
 
 $currently_normalizing_lane = false
 
 $cached_definition = false
 
 $config
 
 $preferred_db = ''
 
 $hooks = array()
 

Additional Inherited Members

- Public Attributes inherited from BasicModel
const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 
- Protected Member Functions inherited from BasicModel
 getMeta ($type, $dbms)
 
 validateOp ($operator)
 
 insertRecord ()
 
 updateRecord ()
 
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 loadHooks ()
 

Member Function Documentation

PurchaseOrderItemsModel::normalize (   $db_name,
  $mode = BasicModel::NORMALIZE_MODE_CHECK,
  $doCreate = false 
)

A really, REALLY old version of this table might exist. If so, just delete it and start over with the new schema.

Member Data Documentation

PurchaseOrderItemsModel::$columns
protected
Initial value:
= array(
'orderID' => array('type'=>'INT','primary_key'=>True),
'sku' => array('type'=>'VARCHAR(13)','primary_key'=>True),
'quantity' => array('type'=>'INT'),
'unitCost' => array('type'=>'MONEY'),
'caseSize' => array('type'=>'INT'),
'receivedDate' => array('type'=>'DATETIME'),
'receivedQty' => array('type'=>'INT'),
'receivedTotalCost' => array('type'=>'MONEY'),
'unitSize' => array('type'=>'VARCHAR(25)'),
'brand' => array('type'=>'VARCHAR(50)'),
'description' => array('type'=>'VARCHAR(50)'),
'internalUPC' => array('type'=>'VARCHAR(13)')
)

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