C1-WO-PROC

This algorithm is invoked when the status of the upload request is changed to Processing. It fetches a list of records which are in the Valid status. For each valid record with a unique combination of the write off request type and account ID, this algorithm creates a write off request for the account. However, if there are multiple entity IDs with the same combination, it adds all the entities in the same write off request.

Note: The system creates the write off request using the entity business object specified in the respective upload request type.

If the Approval Required option is selected in the respective write off request type, the status of the write off request is set to Approval In Progress. However, if the Approval Required option is not selected in the respective write off request type, the system checks the number of entities added in the write off request. If the number of entities added in the write off request does not exceed the online record process limit, the system creates the write off adjustments using the write off adjustment type and then changes the status of the write off request to Processed. However, if the number of entities added in the write off request exceeds the online record process limit, the status of the write off request is set to Deferred Processing.

If the record is successfully processed, the status of the record is changed to Processed. However, if the record could not be processed successfully due to any reason, the status of the record is changed to Error. Finally, the status of the upload request is changed to Processed.