285: CLOSE C_receipts_cur;
286:
287: write_debug_and_log('Number of records: '|| receipts_tab.count);
288:
289: delete from AR_CASH_RECPT_RULE_PARAM_GT;
290:
291: FORALL i in receipts_tab.first..receipts_tab.last
292: INSERT INTO AR_CASH_RECPT_RULE_PARAM_GT values receipts_tab(i);
293:
288:
289: delete from AR_CASH_RECPT_RULE_PARAM_GT;
290:
291: FORALL i in receipts_tab.first..receipts_tab.last
292: INSERT INTO AR_CASH_RECPT_RULE_PARAM_GT values receipts_tab(i);
293:
294: AR_CUSTOM_PARAMS_HOOK_PKG.populateCAOwnerAttributes();
295: write_debug_and_log('Invoking Rule Engine');
296:
297:
298: /* Invoke Rule Engine */
299: FUN_RULE_PUB.apply_rule_bulk('AR',
300: 'CASH_APPLICATION_OWNER_ASSIGN',
301: 'AR_CASH_RECPT_RULE_PARAM_GT',
302: null,
303: 'cash_receipt_id');
304:
305: write_debug_and_log('Returned from Rule Engine');