CORE POS - Fannie
The CORE POS back end
Public Member Functions | List of all members
BaseItemModule Class Reference
Inheritance diagram for BaseItemModule:
ItemModule COREPOS\Fannie\API\item\ItemModule

Public Member Functions

 showEditForm ($upc, $display_mode=1, $expand_mode=1)
 
 getFormJavascript ($upc)
 
 SaveFormData ($upc)
 
 AjaxCallback ()
 
 summaryRows ($upc)
 

Additional Inherited Members

- Public Attributes inherited from COREPOS\Fannie\API\item\ItemModule
const META_WIDTH_FULL = 100
 
const META_WIDTH_HALF = 50
 
const META_WIDTH_THIRD = 33
 

Member Function Documentation

BaseItemModule::SaveFormData (   $upc)

If a vendor is selected, intialize a vendorItems record

BaseItemModule::showEditForm (   $upc,
  $display_mode = 1,
  $expand_mode = 1 
)

Lookup default vendor & normalize

Check for entries in the vendorItems table to prepopulate fields for the new item

Look for items with a similar UPC to guess what department this item goes in. If found, use department settings to fill in some defaults

Check products.default_vendor_id to see if it is a valid reference to the vendors table

Use a <select> box if the current vendor corresponds to a valid entry OR if no vendor entry exists. Only allow free text if it's already in place


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