PayrollWorkerTaxCodeParameterValue::findByWorkerTaxCodeParameter Method
Finds a record in the PayrollWorkerTaxCodeParameterValue table, based on the supplied values of the WorkerTaxCode, TaxCodeParameter, and LegalEntity fields.
Syntax
client server public static PayrollWorkerTaxCodeParameterValue findByWorkerTaxCodeParameter(
PayrollWorkerTaxCodeRecId _workerTaxCode,
PayrollTaxCodeParameterRecId _taxCodeParameter,
CompanyInfoRecId _legalEntity,
[date _validFrom,
date _validTo,
boolean _forUpdate,
ConcurrencyModel _concurrencyModel])
Run On
Called
Parameters
- _workerTaxCode
Type: PayrollWorkerTaxCodeRecId Extended Data Type
The value of the WorkerTaxCode field to find.
- _taxCodeParameter
Type: PayrollTaxCodeParameterRecId Extended Data Type
The value of the TaxCodeParameter field to find.
- _legalEntity
Type: CompanyInfoRecId Extended Data Type
The value of the LegalEntity field to find.
- _validFrom
Type: date
A ValidFrom field value.
- _validTo
Type: date
A ValidTo field value.
- _forUpdate
Type: boolean
A Boolean value that specifies whether to read the record for update; optional.
- _concurrencyModel
Type: ConcurrencyModel Enumeration
An enumeration value that indicates whether a concurrency setting should be used on the table; optional.
Return Value
Type: PayrollWorkerTaxCodeParameterValue Table
Either an empty buffer, or one or more records from the PayrollWorkerTaxCodeParameterValue table. See the remarks.
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.