Previous  Next          Contents  Index  Navigation  Glossary  Library

How AutoLockbox Applies Receipts

Receivables applies the receipts in a Lockbox transmission when you submit Post QuickCash. You can either submit Post QuickCash when you run Lockbox or as a separate step after importing and validating your receipts. Post QuickCash updates your customer's balance using the information you provide in your Lockbox transmission.

A Lockbox transmission usually includes matching numbers. These are most often transaction numbers to be matched and applied, but they can also be other types of numbers. Lockbox uses the Match Receipts By method that you specify when you submit the program to determine which type of number to search for to match with a receipt. When it finds a match, Lockbox uses the matching number to determine the customer (if AutoAssociate is Yes and the customer or MICR number is not included in the transmission) and to apply the receipt during Post QuickCash.

If Lockbox can identify the customer for a receipt but cannot determine to which invoice this receipt should be applied, it applies the receipt using the AutoCash Rule Set defined for this customer. If Lockbox cannot identify the customer or to which invoice to apply the receipt, it assigns the receipt a status of Unidentified.

Note: In Release 11 of Oracle Receivables, you can only apply cross currency receipts using the Applications or the Mass Apply windows. You cannot apply cross currency receipts using Post QuickCash. For more information, see: Cross Currency Receipts.

Matching Rules

Lockbox uses the Match Receipts By method specified for this Lockbox and your customer or customer site when determining how to apply each receipt. If the customer number or MICR number is not provided in your transmission, Lockbox tries to identify the customer and the invoice to which each receipt should be applied based on whatever information is included. Lockbox always searches for a match in the following order:

If Lockbox finds a matching transaction number, it checks the value of the Match Receipts By parameter for this customer site. If Match Receipts By is set to Transaction for this customer site, Lockbox applies the receipt to this transaction when you run Post QuickCash. If Match Receipts By is null for this customer site, Lockbox checks the setting at the customer level. If Match Receipts By is set to Transaction for this customer, Lockbox applies the receipt to this transaction when you run Post QuickCash. If Match Receipts By is null for this customer, Lockbox checks how you set this option for this Lockbox submission; if it is set to Transaction for this submission, Lockbox applies the receipt to this transaction when you run Post QuickCash. If Match Receipt By has a value other than Transaction at the customer site or customer level, Lockbox searches the database for the next type of matching number in the sequence; in this case, a sales order number.

If the matched number is a sales order number, Lockbox searches for the first invoice that belongs to this order. Then, when you run Post QuickCash, it will apply the receipt to that invoice.

If the matched number is a purchase order number, Lockbox searches for a reference number that refers to this purchase order. Then, when you run Post QuickCash, it will apply the receipt to that invoice.

If the matched number is a consolidated billing invoice number, Lockbox will be able to identify the customer and Post QuickCash will apply the receipt to the included invoices using the AutoCash rule Clear Past Due Invoices Grouped by Payment Term.

Finally, if the matched number is determined using a custom matching rule, Lockbox uses the number that you specify to determine to which transaction to apply this receipt. See: Implementing a Custom Matching Rule.

If Lockbox cannot find a match after searching for each type of number in the sequence, it applies the receipts using the AutoCash Rule Set defined for this customer.

The following diagram shows how Lockbox applies receipts in a Lockbox transmission using each Matching Rule.

Match on Corresponding Date

The Match on Corresponding Date option for your lockbox determines whether AutoLockbox should also check the transaction date before matching receipts with transactions. For example, if the matching number is a sales order number and Match on Corresponding Date is set to Always, the sales order date must be the same as the date specified in your receipt record for Lockbox to apply the receipt. See: Lockboxes.

AutoCash Rules

For identified receipts, Post QuickCash uses AutoCash rules to apply receipts in a Lockbox transmission if Lockbox could not determine how to apply them using the matching number. To use AutoCash rules to apply receipts imported through Lockbox, be sure that you:

or

After Lockbox validates your receipts, you can review them in the Quick Receipts window. Receivables displays 'AutoCash Rule' in the Application Type field to indicate that it will be using AutoCash rules to apply your receipts when you run Post QuickCash.

Overapplying Invoices

AutoLockbox does not validate the sign attributes that you assign to your transaction type. If your application amount exceeds the balance due on your invoice, Post QuickCash will close the invoice and try to apply the remaining amount of the receipt using the Remaining Amount Rule Set that you specified for the customer or the customer's profile class.

Additionally, if the sign of your application is different from the sign of the balance due on your invoice, Post QuickCash will not apply the receipt and the entire receipt amount will remain unapplied.

Application Rule Sets

Post QuickCash uses the Application Rule Set assigned to the debit item's transaction type to determine how to apply payments and how discounts affect the open balance of any associated charges. If no rule set is assigned to this item's transaction type, Post QuickCash uses the rule set defined in the System Options window. See: Receivables Application Rule Sets.

Receipt Status

Lockbox assigns a status to each receipt that you import into Receivables depending on the information included in your transmission:

Attention: If you are using the automatic receipts feature, AutoLockbox ignores all transactions that are selected for automatic receipt (i.e. transactions assigned to a payment method whose associated receipt class has Creation Method set to 'Automatic').

Implementing a Custom Matching Rule

Receivables supplies the packaged procedure arp_lockbox_hook.cursor_for_matching_rule that you can use to add your own, custom matching rule with AutoLockbox. You can use this feature if, for example, you need to match matching numbers and dates passed to Lockbox with numbers and dates in your own custom tables (custom_table.custom_number and custom_table.custom_date) instead of or in addition to standard matching options. You can also use this feature to match with other numbers and dates in the existing Receivables tables.

This procedure expects a row in the AR_LOOKUPS table with lookup_type = ARLPLB_MATCHING_OPTION and valid values for other columns required for using a customized matching rule. The master program arp_process_lockbox will fetch that row and - if it finds it to be one of the non-standard (i.e. not built in core AR) rows - it will pass the control to this procedure with the corresponding lookup_code in your database. The procedure should return a string that Dynamic SQL can use to open and parse a cursor. You need to create this SQL string to replace the string named p_cursor_string (see example below).

Your string should have the following restrictions:

p_cursor_string := 'select ct.customer_id, ct.trx_number, ct.trx_date ' ||

'from custom_table ct ' ||

'where ct.matching_number = :b_current_matching_number ' ||

'and ct.matching_date = :b_current_matching_date ';

customer_id = -9999,

trx_number = null,

trx_date = null.

Note: The program calling this procedure does not expect it to return any errors because the definition of a cursor is a one-time procedure and, if done carefully, should not error.

Below is the packaged procedure arp_lockbox_hook.cursor_for_matching_rule that Receivables provides:

-----------------------------------------------------------------*/ PROCEDURE CURSOR_FOR_MATCHING_RULE(p_matching_option IN VARCHAR2, p_cursor_string OUT VARCHAR2) IS

BEGIN

arp_util.debug('arp_lockbox_hook.cursor_for_matching_rule()+');

p_cursor_string := 'select -9999, NULL, NULL from dual';

arp_util.debug('arp_lockbox_hook.cursor_for_matching_rule()+');

RETURN;

END cursor_for_matching_rule;

END arp_lockbox_hook;

COMMIT;

EXIT;

For more information about setting up Lockbox to use a custom matching rule, refer to the files $AR_TOP/admin/sql/ARRLBHKS.pls and $AR_TOP/admin/sql/ARRLBHKB.pls.

See Also

How AutoLockbox Identifies Customers for a Receipt

AutoCash

Automatic Receipts

Post QuickCash

AutoLockbox Validation

Commonly Asked Questions

Transmission Formats

Lockboxes


         Previous  Next          Contents  Index  Navigation  Glossary  Library