C1-FUNDSUBMT
This algorithm is invoked when you submit a funding request. If the approval process is not configured in the funding request type, it changes the status of the funding request to either Deferred Processing or Create Funding depending on whether the number of bills in the funding request exceeds the defer processing count. If the approval process is configured in the funding request type, it calculates the sum of total debit and credit amount in the funding request. Depending on whether the sum total is debit or credit, it uses the debit or credit hierarchy in the approval profile (which is specified in the funding request type), respectively. If the sum total is less than the minimum threshold amount in the approval hierarchy, the funding request is automatically approved by the system and the status of the funding request is changed to either Deferred Processing or Create Funding depending on whether the number of bills in the funding request exceeds the defer processing count. However, if the sum total is equal to or greater than the threshold amount specified at the first level in the approval hierarchy, the status of the funding request is changed to Approval In Progress.