CORE POS - IS4C
The CORE POS front end
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
COREPOS\pos\lib\ReceiptBuilding\Sort\DefaultReceiptSort Class Reference
Inheritance diagram for COREPOS\pos\lib\ReceiptBuilding\Sort\DefaultReceiptSort:
COREPOS\pos\lib\ReceiptBuilding\Sort\DiscountFirstReceiptSort COREPOS\pos\lib\ReceiptBuilding\Sort\DoubleSubtotalReceiptSort COREPOS\pos\lib\ReceiptBuilding\Sort\GroupSavingsSort COREPOS\pos\lib\ReceiptBuilding\Sort\InOrderReceiptSort

Public Member Functions

 sort ($rowset)
 

Static Public Member Functions

static record_compare ($r1, $r2)
 

Protected Member Functions

 upc_merge ($cur, $new)
 

Member Function Documentation

COREPOS\pos\lib\ReceiptBuilding\Sort\DefaultReceiptSort::sort (   $rowset)

Sorting function

Parameters
$rowsetan array of records
Returns
an array of records
COREPOS\pos\lib\ReceiptBuilding\Sort\DefaultReceiptSort::upc_merge (   $cur,
  $new 
)
protected

Combine item records when appropriate

Parameters
$curan array of records some of which are keyed by UPC
$newa new record
Returns
$cur with the new record added

By-weight, refund, void, or group discount items shouldn't be combined. They get added with a simple numerical key

Valid item to merge; add to the existing record

Valid item to merge; add record with UPC key.


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