C1-OFFSUBENT

This algorithm is invoked when you click the Submit button. It validates the following:

  • Whether the outstanding amount of the selected bills is not zero

  • Whether the selected bills are in the Complete status

  • Whether the overridden offset amount of a bill is not zero

  • Whether the sum of the debit bills’ offset amount is equal to the sum of the credit bills’ offset amount

  • Whether at least one debit and credit bills are selected in the offset request

If the validation is successful, it checks whether the Approval Required option is selected in the respective offset request type. If the Approval Required option is selected in the respective offset request type, it changes the status of the offset request to Approval In Progress. However, if the Approval Required option is not selected in the respective offset request type, it checks whether the number of financial transactions created for the bills, which are selected in the offset request, exceeds the defer processing count. If the number of financial transactions does not exceed the defer processing count, the system changes the status of the offset request to Creating Adjustment. However, if the number of financial transactions exceeds the defer processing count, the system changes the status of the offset request to Deferred Processing.