CORE POS - IS4C
The CORE POS front end
|
Static Public Member Functions | |
static | clearMember () |
static | memberID ($member_number) |
static | requestInfoCallback ($info) |
static | setAltMemMsg ($store, $member, $personNumber, $row, $chargeOk) |
static | setMember ($member, $personNumber, $row=array()) |
static | checkUnpaidAR ($cardno) |
static | check_unpaid_ar ($cardno) |
static | checkstatus ($num) |
static | tender ($right, $strl) |
static | deptkey ($price, $dept, $ret=array()) |
static | ttl () |
static | omtr_ttl () |
static | wicableTotal () |
static | peekItem ($full_record=false) |
static | finalttl () |
static | fsEligible () |
static | percentDiscount ($strl, $json=array()) |
static | chargeOk () |
Static Public Attributes | |
static | $requestInfoHeader = 'member gift' |
static | $requestInfoMsg = 'Card for which member?' |
A horrible, horrible catch-all clutter of functions
|
static |
Check whether the current member has store charge balance available.
Sets current balance in session as "balance". Sets available balance in session as "availBal".
|
static |
Check if an item is voided or a refund
$num | item trans_id in localtemptrans |
|
static |
Check if the member has overdue store charge balance
$cardno | member number |
The logic for what constitutes past due has to be built into the unpaid_ar_today view. Without that this function doesn't really do much.
|
static |
Remove member number from current transaction
|
static |
Add an open ring to a department
$price | amount in cents (100 = $1) |
$dept | POS department an array of return values |
Enforce memberOnly flag
|
static |
Add tax and transaction discount records. This is called at the end of a transaction. There's probably no other place where calling this function is appropriate.
|
static |
Add foodstamp elgibile total record
|
static |
Begin setting a member number for a transaction
$member_number | CardNo from custdata |
This function will either assign the number to the current transaction or return a redirect request to get more input. If you want the cashier to verify member name from a list, use this function. If you want to force the number to be set immediately, use setMember().
If only a single record exists for the member number, the member will be set immediately if:
Go to member search page in all other cases. If zero matching records are found, member search should be next. If multiple records are found, picking the correct name should be next. If verifyName is enabled, confirming the name should be next.
|
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 |
Assign store-specific alternate member message line
$store | code for the coop |
$member | CardNo from custdata |
$personNumber | personNum from custdata |
$row | a record from custdata |
$chargeOk | whether member can store-charge purchases |
|
static |
Assign a member number to a transaction
$member | CardNo from custdata |
$personNumber | personNum from custdata |
See memberID() for more information.
Look up the member information here. There's no good reason to have calling code pass in a specially formatted row of data
Optinonally use memtype table to normalize attributes by member type
Determine what string is shown in the upper left of the screen to indicate the current member
Set member number and attributes in the current transaction
Add the member discount
Log the member entry
Optionally add a subtotal line depending on member_subtotal setting.
|
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.
First use base module to check for error conditions common to all tenders
Get a tender-specific module if one has been configured
Fetch module mapping from the database if the schema supports it 16Mar2015
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.
|
static |
Calculate WIC eligible total