Class CI_MFGEarningsCode_Val

Properties

LOCAL cEarningMustExistInPayroll=isFALSE  

[boolean] Internal flag to indicate that not only does earnings code have to exist in the PM_EarningsCode table but also needs to exist in PR_EarningsCode table.

LOCAL cEarningPayrollIntegrated=isFALSE  

[boolean] Flag to indicate that payroll is setup for the current company and is integrated with production management.

PROPERTY EarningMustExistInPayroll  

[boolean] Flag to indicate that not only does earnings code have to exist in the PM_EarningsCode table but also needs to exist in PR_EarningsCode table.

Methods

FUNCTION LOCAL ClassValidateMFG_EarningsCode(col$, val$)  

Validation logic for fields assigned the data class MFG_EARNINGSCODE

ParameterDescription
col$ [input, string] column name that contains the value being validated
val$ [input, string] value being validated
Returns [boolean] True if successful, false if method fails
FUNCTION LOCAL ValidateEarningInPayroll(val$)  

Validates the earning code against the PR_EarningsCode table.

ParameterDescription
val$ [input, string] Earnings code value to be validated against payroll table.
Returns retSUCCESS(1) If value exists in the payroll earnings table, retFAILURE(0) If value does not exist in the payroll earnings table.