CORE POS - IS4C
The CORE POS front end
|
Static Public Member Functions | |
static | tender ($right, $strl) |
static | ttl () |
static | omtr_ttl () |
static | peekItem ($full_record=false, $transID=false) |
static | fsEligible () |
static | percentDiscount ($strl, $json=array()) |
static | ageCheck ($required_age, $ret) |
static | applyToggles ($tax, $foodstamp, $discount) |
A horrible, horrible catch-all clutter of functions
|
static |
Enforce age-based restrictions
$required_age | [int] age in years |
$ret | [array] Parser-formatted return value |
|
static |
Add foodstamp elgibile total record
|
static |
Total the transaction, which the cashier thinks may be eligible for the Ontario Meal Tax Rebate.
If ttl() returns a string, go to that URL for more information on the error or to resolve the problem.
The most common error, by far, is no member number in which case the return value is the member-entry page.
The Ontario Meal Tax Rebate refunds the provincial part of the Harmonized Sales Tax if the total of the transaction is not more than a certain amount.
If the transaction qualifies, change the tax status for each item at the higher rate to the lower rate. Display a message that a change was made. Otherwise display a message about that. Total the transaction as usual.
|
static |
See what the last item in the transaction is currently
$full_record | [boolean] return full database record. Default is false. Just returns description. |
If no record exists, returns false
|
static |
Add a percent discount notification
$strl | discount percentage |
$json | keyed array |
|
static |
Add a tender to the transaction
tender amount in cents (100 = $1) tender code from tenders table
This function will automatically end a transaction if the amount due becomes <= zero.
Do tender-specific error checking and prereqs
|
static |
Total the transaction
If ttl() returns a string, go to that URL for more information on the error or to resolve the problem.
The most common error, by far, is no member number in which case the return value is the member-entry page.