MCRCustPaymTable::validatePaymMode Method
Validates the specified method of payment for use on a customer payment.
The method of payment must: * exist * be configured as 'active' for use for customer payments * have an associated payment type
Syntax
client server public static boolean validatePaymMode(
RetailTenderTypeId _retailTenderTypeId,
[boolean _allowBlank,
boolean _showErrors,
AccountNum _custAccount])
Run On
Called
Parameters
- _retailTenderTypeId
Type: RetailTenderTypeId Extended Data Type
The payment mode to be validated.
- _allowBlank
Type: boolean
Boolean that determines whether or not to allow blanks; optional.
- _showErrors
Type: boolean
Boolean that determines whether or not to show errors; optional.
- _custAccount
Type: AccountNum Extended Data Type
The customer account number used in validation; optional.
Return Value
Type: boolean
true if the record is valid and ready to be written to the database; otherwise false.