CORE POS - IS4C
The CORE POS front end
Static Public Member Functions | List of all members
COREPOS\pos\lib\MemberLib Class Reference

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 ()
 

Member Function Documentation

static COREPOS\pos\lib\MemberLib::chargeOk ( )
static

Check whether the current member has store charge balance available.

Returns
1 - Yes 0 - No

Sets current balance in session as "balance". Sets available balance in session as "availBal".

static COREPOS\pos\lib\MemberLib::checkUnpaidAR (   $cardno)
static

Check if the member has overdue store charge balance

Parameters
$cardnomember number
Returns
True or False

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 COREPOS\pos\lib\MemberLib::clear ( )
static

Remove member number from current transaction

static COREPOS\pos\lib\MemberLib::memberID (   $member_number)
static

Begin setting a member number for a transaction

Parameters
$member_numberCardNo from custdata
Returns
An array. See Parser::default_json() for format.

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:

  • the account is the designated, catchall non-member
  • the verifyName setting is disabled

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 COREPOS\pos\lib\MemberLib::setAltMemMsg (   $store,
  $member,
  $personNumber,
  $row 
)
static

Assign store-specific alternate member message line

Parameters
$storecode for the coop
$memberCardNo from custdata
$personNumberpersonNum from custdata
$rowa record from custdata
$chargeOkwhether member can store-charge purchases
static COREPOS\pos\lib\MemberLib::setMember (   $member,
  $personNumber,
  $row = array() 
)
static

Assign a member number to a transaction

Parameters
$memberCardNo from custdata
$personNumberpersonNum 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.


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