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

Public Member Functions

 preprocess ()
 
 post_id_handler ()
 
 get_id_adjust_view ()
 
 get_id_view ()
 
 get_view ()
 
- Public Member Functions inherited from FannieRESTfulPage
 readRoutes ()
 
 preprocess ()
 
 bodyContent ()
 
 unitTest ($phpunit)
 

Public Attributes

 $themed = true
 
 $description
 

Protected Attributes

 $header = 'Purchase Orders'
 
 $title = 'Purchase Orders'
 
- Protected Attributes inherited from FannieRESTfulPage
 $__method = ''
 
 $__models = array()
 
 $__routes
 
 $__route_stem = 'unknownRequest'
 

Additional Inherited Members

- Protected Member Functions inherited from FannieRESTfulPage
 unknownRequestHandler ()
 
 unknownRequestView ()
 
 getModel ($database_connection, $class, $params, $find=False)
 
 get_model ($database_connection, $class, $params, $find=False)
 

Member Function Documentation

ManualPurchaseOrderPage::post_id_handler ( )

Queries to check for vendorItems entries

Create parent record for the order

Create item records for the order

Multiple same-SKU records Sum the quantities and costs to merge into a single record

Try to look up unit size using vendorID+sku or vendorID+upc. This avoids making unit size a required field and checks for an existing vendorItems record

If no vendorItems record exists for this SKU or UPC then create one

Member Data Documentation

ManualPurchaseOrderPage::$description
Initial value:
= '[Manual Purchase Order] is a tool for entering purchase order info
in a grid from existing paperwork.'

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