PayrollWorkerGarnishment::checkForDispsoableIncome Method
Checks whether a record in the PayrollDisposableIncome table is linked to any records in the PayrollWorkerGarnishment table.
Syntax
client server public static boolean checkForDispsoableIncome(
PayrollDisposableIncomeRecId _disposableIncomerecId,
[ValidFromDate _validFrom,
ValidToDate _validTo])
Run On
Called
Parameters
- _disposableIncomerecId
Type: PayrollDisposableIncomeRecId Extended Data Type
The value of the DisposableIncome field to check.
- _validFrom
Type: ValidFromDate Extended Data Type
A ValidFrom field value.
- _validTo
Type: ValidToDate Extended Data Type
A ValidTo field value.
Return Value
Type: boolean
true if the PayrollDisposableIncome record is linked to any PayrollWorkerGarnishment records; otherwise, false.
Remarks
Values for the _validFrom and _validTo parameters limit the table selection in the following ways:
If no value is supplied for either parameter, the current date/time is used for both by default. Therefore, the method searches for active records only, and returns either an empty record or a valid record.
If a value is supplied for only the first parameter, the same value is used for the second parameter by default. The method searches for active records as of the supplied date/time value, and returns either an empty record or a valid record.
If values are supplied for both parameters, the method searches for records for which the validFrom and ValidTo values fall in that interval. The method might return multiple records.