You are on page 1of 7

Created 2 Bills with both positive and negative amount and moved it to ready status for all the

finalization and other processes

List of Processes executed Executed the preprocess and finalization for the 2 invoices:

Ran the currency conversion process

Ran the pre-load process:

Ran the Load invoices to AR process:

Ran create account entries process:

Then Created accounting entries for pending items entered externally. Main Menu>Accounts Receivable>Pending Items>External Items>Group Entry Then ran the Receivables update process:

Added the PO Number to the 2 Items created

Updated the Method Algorithm:

The sample code of DEBITS is as follows: %InsertSelect(MT_ITEM_TAO, MT_ITMOPN_TAO, CORPORATE_SETID = SETID, CORPORATE_CUST_ID = CUST_ID, MATCH_GROUP_ID = %BIND(AUTOMNT_METHOD) %CONCAT %NumToChar(%BIND(STEP_NUM)) %Concat %Upper(INVOICE) %CONCAT %Upper(PO_REF), AUTOMNT_METHOD = %Bind(AUTOMNT_METHOD), STEP_NUM = %Bind(STEP_NUM), DR_AMT = BAL_AMT, CR_AMT = 0, DR_CNT = 1, CR_CNT = 0, ITEM_AMT = BAL_AMT, ITEM_AMT_BASE = BAL_AMT_BASE, ENTRY_USE_ID = 'MT-01') FROM %Table(MT_ITMOPN_TAO) WHERE PROCESS_INSTANCE = %ProcessInstance AND BAL_AMT > 0 AND INVOICE <> ' ' Here for testing purposes I removed this Invoice criteria and tested for PO REF alone AND PO_REF <> ' ' %Bind(AE_WHERE, NOQUOTES)

The sample code of CREDITS is as follows:

There is also another algorithm for credits where the BAL_AMT<0


%InsertSelect(MT_ITEM_TAO, MT_ITMOPN_TAO, CORPORATE_SETID = SETID, CORPORATE_CUST_ID = CUST_ID, MATCH_GROUP_ID = %BIND(AUTOMNT_METHOD) %CONCAT %NumToChar(%BIND(STEP_NUM)) %Concat %Upper(INVOICE) %CONCAT %Upper(PO_REF), AUTOMNT_METHOD = %Bind(AUTOMNT_METHOD), STEP_NUM = %Bind(STEP_NUM), DR_AMT = BAL_AMT, CR_AMT = 0, DR_CNT = 1, CR_CNT = 0, ITEM_AMT = BAL_AMT, ITEM_AMT_BASE = BAL_AMT_BASE, ENTRY_USE_ID = 'MT-01') FROM %Table(MT_ITMOPN_TAO) WHERE PROCESS_INSTANCE = %ProcessInstance AND BAL_AMT <0 AND INVOICE <> ' ' Here for testing purposes I removed this Invoice criteria and tested for PO REF alone AND PO_REF <> ' ' %Bind(AE_WHERE, NOQUOTES)

Ran the auto maintenance process and message log states no match done and no worksheet created:

You might also like