Share via


PayrollBankAccountDisbursement.updateRemainder Method

Checks for other bank accounts for the same worker that have the Remainder value set to true. Only one bank account record per worker can have this value set to true.

Syntax

public boolean updateRemainder(
    HcmWorkerRecId _recId, 
    boolean _allowChange, 
   [boolean _noPrompt])

Run On

Called

Parameters

  • _allowChange
    Type: boolean
    A Boolean value. If the value is true, and if other bank accounts exist for this worker that have the Remainder value set to true, the user is prompted to confirm the change. If the change is confirmed, the records that are found are updated, and the Remainder value is set to false.
    If the value is false, the validation fails, and the current buffer value for Remainder is set to false.
  • _noPrompt
    Type: boolean
    A Boolean value: true if the user is not prompted to confirm the change; false if the user is prompted.

Return Value

Type: boolean
true if validation succeeded; false if validation fails (when _allowChange=false) or if the update of existing records fails.

Remarks

If any other worker bank account exists that has the Remainder value set to true, the user will have the option to change this value. Validation occurs only when the Remainder value is true.

See Also

Reference

PayrollBankAccountDisbursement Table