Determining the Type of Balance Validation Logic

Once it is determined that balances must be validated, the application determines if the associated employee has sufficient balance to proceed with the book-off process. In order to do this, the following will be executed:

  1. Find the associated balances that will be impacted.
  2. Determine the future balance as of the date of the book-off.
  3. Calculate the number of units (for example, hours) to be decremented due to the book-off process.
  4. Decrement the units from the associated balance.
  5. Calculate the expected balance after the proposed book-off.

    If the deducted amount reduces the associated balance below the defined minimum (after considering cascading), then an error message is displayed.

    If the deducted amount reduces the associated balance to or above the defined minimum, then a success message in displayed and the appropriate amount of time is deducted from the balance to complete the book-off process.

Cascading balances are also considered by the balance validation process. If balances are set up for cascading, then the book-off action may be successfully processed if the cascading balance has a sufficient total.