CORE POS - IS4C
The CORE POS front end
Public Member Functions | Protected Attributes | List of all members
TenderModule Class Reference
Inheritance diagram for TenderModule:
CheckTender CoopCredTender CreditCardTender DisabledTender ECheckTender FoodstampTender GiftCardTender GiftCertificateTender ManagerApproveTender NoChangeTender NoDefaultAmountTender RebateCheckTender RefundAndCashBackTender StoreChargeTender StoreTransferTender

Public Member Functions

 TenderModule ($code, $amt)
 
 errorCheck ()
 
 preReqCheck ()
 
 add ()
 
 changeType ()
 
 changeMsg ()
 
 allowDefault ()
 
 defaultTotal ()
 
 defaultPrompt ()
 
 disabledPrompt ()
 

Protected Attributes

 $tender_code
 
 $amount
 
 $name_string
 
 $change_type
 
 $change_string
 
 $min_limit
 
 $max_limit
 

Detailed Description

Base class for modular tenders

Member Function Documentation

TenderModule::add ( )

Add tender to the transaction

TenderModule::allowDefault ( )

Allow the tender to be used without specifying a total

Returns
boolean
TenderModule::changeMsg ( )

What description should be used for change records associated with this tender

Returns
string change description
TenderModule::changeType ( )

What type should be used for change records associated with this tender.

Returns
string tender code
TenderModule::defaultPrompt ( )

Prompt for the cashier when no total is provided

Returns
string URL

Typically this sets up session variables and returns the URL for boxMsg2.php.

TenderModule::defaultTotal ( )

Value to use if no total is provided

Returns
number
TenderModule::disabledPrompt ( )

Error message shown if tender cannot be used without specifying a total

Returns
html string
TenderModule::errorCheck ( )

Check for errors

Returns
True or an error message string
TenderModule::preReqCheck ( )

Set up state and redirect if needed

Returns
True or a URL to redirect
TenderModule::TenderModule (   $code,
  $amt 
)

Constructor

Parameters
$codetwo letter tender code
$amttender amount

If you override this, be sure to call the parent constructor


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