CORE POS - IS4C
The CORE POS front end
Public Member Functions | Protected Member Functions | List of all members
MemberLookup Class Reference
Inheritance diagram for MemberLookup:
ByPhoneMemberLookup InactiveMemSearch

Public Member Functions

 handle_numbers ()
 
 handle_text ()
 
 lookup_by_number ($num)
 
 lookup_by_text ($text)
 

Protected Member Functions

 default_value ()
 

Member Function Documentation

MemberLookup::default_value ( )
protected

Get return-value formatted array

Returns
an array with keys:
  • url => redirect to URL, default False
  • results => matching member records

The results array is used to populate the member <select> box. The key for each record should be CardNo::personNum. The value is what's displayed for the cashier and can be whatever you like.

MemberLookup::handle_numbers ( )

This module handle numeric inputs

Returns
boolean default True
MemberLookup::handle_text ( )

This module handle text inputs

Returns
boolean default True
MemberLookup::lookup_by_number (   $num)

Find member by custdata.CardNo

Parameters
$numthe member number
Returns
array. See default_value().
MemberLookup::lookup_by_text (   $text)

Find member by last name.

Parameters
$numthe search string.
Returns
array. See default_value().

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