This document provides instructions to locate an "UNCACCOUNT" in a contract balances table, set a position variable if found, and return credit and debit movement values from the table based on the position. If the account type is "UNCACCOUNT", it sums the open balance, credit movement, and debit movement to calculate an unclosed balance and sets the account type.
This document provides instructions to locate an "UNCACCOUNT" in a contract balances table, set a position variable if found, and return credit and debit movement values from the table based on the position. If the account type is "UNCACCOUNT", it sums the open balance, credit movement, and debit movement to calculate an unclosed balance and sets the account type.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
This document provides instructions to locate an "UNCACCOUNT" in a contract balances table, set a position variable if found, and return credit and debit movement values from the table based on the position. If the account type is "UNCACCOUNT", it sums the open balance, credit movement, and debit movement to calculate an unclosed balance and sets the account type.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
1. USING LOCATE LOCATE 'UNCACCOUNT' IN R.EB.CONTRACT.BALANCES<ECB.CURR.ASSET.TYPE,1> SETTING PO S1 ELSE RETURN CREDIT.MVMT = R.EB.CONTRACT.BALANCES<ECB.CREDIT.MVMT,POS1> DEBIT.MVMT = R.EB.CONTRACT.BALANCES<ECB.DEBIT.MVMT,POS1> IF ACCT.
TYPE EQ "UNCACCOUNT" THEN CLOSE.BAL1 = OPEN.BALANCE + CREDIT.MVMT UNC.CLOSE.BALANCE = CLOSE.BAL1 + DEBIT.MVMT UNC.TYPE = ACCT.TYPE END