CORE POS - IS4C
The CORE POS front end
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
DefaultReceiptSort Class Reference
Inheritance diagram for DefaultReceiptSort:
DiscountFirstReceiptSort DoubleSubtotalReceiptSort GroupSavingsSort 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

DefaultReceiptSort::sort (   $rowset)

Sorting function

Parameters
$rowsetan array of records
Returns
an array of records
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: