CORE POS - IS4C
The CORE POS front end
|
Static Public Member Functions | |
static | clear () |
static | memberID ($member_number) |
static | setAltMemMsg ($store, $member, $personNumber, $row) |
static | setMember ($member, $personNumber, $row=array()) |
static | checkUnpaidAR ($cardno) |
static | chargeOk () |
static | getChgName () |
|
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 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 |
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 |
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
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.