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

Public Member Functions

 showEditForm ($upc, $display_mode=1, $expand_mode=1)
 
 avgSales ($upc)
 
 saveFormData ($upc)
 
 getFormJavascript ($upc)
 
 AjaxCallback ()
 
- Public Member Functions inherited from COREPOS\Fannie\API\item\ItemModule
 db ()
 
 setConfig (\FannieConfig $c)
 
 setForm (\COREPOS\common\mvc\ValueContainer $f)
 
 setConnection (\SQLManager $s)
 
 width ()
 
 showEditForm ($upc, $display_mode=1, $expand_mode=1)
 
 getFormJavascript ($upc)
 
 saveFormData ($upc)
 
 summaryRows ($upc)
 
 hasSearch ()
 
 showSearchForm ()
 
 getSearchResults ()
 
 runCron ()
 

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
 
- Protected Attributes inherited from COREPOS\Fannie\API\item\ItemModule
 $config
 
 $connection
 
 $form
 

Member Function Documentation

ItemMarginModule::saveFormData (   $upc)

Update the product with the generic rule ID If it was previously set to a custom rule, that custom rule can be deleted

If the product is already using a custom rule, just update that rule record. Otherwise create a new one.

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

Lookup vendor cost on new items


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