Top of INT | Interface Index | Index | Table of Contents | Feedback | ![]() |
INTJ0021 - Create Invoices
Purpose |
To create COFI invoices for notified fee debts of students, sponsors and loan schemes; apply payments and create loan discounts. |
|
Subsystem | Callista Open Finance Interface | |
Normally Run By | A fees specialist | |
Anticipated Frequency | At intervals during a fee period. | |
Structure | Block | Create Fee Invoices |
Tab | Parameters |
This job creates invoice data for notified fee debts of students, sponsors and loan schemes. It also applies payments and creates loan discounts. The Payment Due Date defined in the Person Payment Schedule (PPS) is taken as the Due Date for invoice creation. The job is normally run by itself. Optionally, modules of the job INTJ0020 can be run as the first processing task within the current job. Be aware of the extra time that will be required to run the process when such check boxes are selected. Provision for confirmation of the inclusion of a tax code into the invoice and invoice summary records has been made through I_INT_CONTROL. Whenever there is a new invoice or an adjustment to an invoice, a new I_INVOICE_ADJUSTMENT table entry will be written. Lamps are used in INTJ0021 (and also in INTJ0060) to highlight record processing status. 'Invoice Summary data contains export errors' is in the colour red, and 'Invoice Summary data ready for export' is in the colour green. This job will normally follow the processing of Person Payment Schedules (FINJ6111) in Student Finance. The context for this job is described in the overview when the process of a real discount exists for a student. When it doesn't, another process needs to be considered. See Matching Invoices. |
Error Handling: The JOB_STOP_FIRST_ERR_IND indicator in the I_INT_CONTROL table allows each institution to specify the type of error handling for this job and all other COFI jobs. The two error handling options are:
When the JOB_STOP_FIRST_ERR_IND indicator in the I_INT_CONTROL table = N, then details of any validation errors will be written to S_LOG_ENTRY and if an Oracle exception is encountered, details are written to S_ERROR_LOG, and a general message is written to S_LOG_ENTRY - to refer the user to the S_ERROR_LOG for details. Entries in S_LOG_ENTRY have an S_LOG_TYPE of 'CREATE-INV' and include details of:
Note: Information is only supplied if it is available and appropriate to the processing where the system message or system error was recorded. Otherwise the data element will be NULL. Checking on the Job Run If the system is configured to Continue processing, then the run log displayed in JBSF5301 includes a more detailed summary showing the relative success for each part of the job. The form of the log summary is as shown below: Deleting all but the most recent unprocessed customer record SYSDATE Optional processing (Check due dates have lapsed indicator): Started invoice adjustment processing SYSDATE Started invoice processing SYSDATE Started applying payments to new invoices SYSDATE Started updating invoices with external reference details that are related to successfully exported summary records SYSDATE Started maintaining loan discounts in Callista SYSDATE Started creating job message run log SYSDATE The <Processing counts message> is: To view the job log, see JBSF5301 (via JBSF5300). To view system error details see GENF0001. |
The Create Fee Invoices block contains: Parameters Tab This job:
Optionally, the following can be run:
|
Rules/Notes:
|
||||||||||||||||
Create Invoices The first process of INTJ0021 is to clear out any temporary (TMP) data (for example, temporary adjustments and invoices), before creating invoices. INTJ0021 creates an I_INVOICE_ADJUSTMENT table entry based on the values in the PERSON_PAYMENT_SCHEDULE table. Whenever there is a new invoice or an adjustment to an invoice (a new amount for example), a new I_INVOICE_ADJUSTMENT table entry will be written. This table is then used to create the I_INVOICE and I_INVOICE_TRANS tables. Once these are written, the TRANSFER_STATUS of the associated I_INVOICE_ADJUSTMENT will be written as successful. The I_INVOICE records are created with a SUMMARY_STATUS of READY, that is, they are ready to be summarized. Part of the INTJ0021 process checks the invoice summary external processing and provides a lamp on the parameter form and a message in the log of the job if there are summary records to be processed or if there are errors with the invoice summary processing. Types of Adjustment An adjustment may require:
The Comments field of the I_INVOICE_TRANS_V indicates a new invoice as an 'Original' and a replacement invoice as being a 'Transfer from Invoice <9999>'. Refer to the examples in Notes (at right). To distinguish invoices from credit memos, invoice number prefixes are recorded in the invoice history tables and appear as prefixes of transaction numbers as follows:
As part of the invoice processing Credit Memos and their original invoices (with prefixes of CCM and CIN respectively) will have their CCM_PAIR_IND set to Y. Only invoices that do not have a credit memo pair will be matched against the payment table (I_PAYMENT) to create the I_INVOICE_PAYMENT and the Payment records in FEE_ASS. The discount procedure to award discounts in FEE_ASS is called where required. |
Rules/Notes: The invoice Due Date for unit-based Person Payment Schedules associated with Govt. Loan Schemes that have a system Transaction Type of HCSHLPLOAN or FEEHLPLOAN, is the Person Payment Schedule (PPS) Due Date. Example 1 - New Invoice For a student's liability for a tuition fee, relevant data in the Person Payment Schedule (PPS) is:
After re-assessment, this entry is deleted and a new PPS entry created, with these values:
Below are the three associated entries in I_INVOICE_TRANS_V.
Example 2 - Replacement Invoice For a student's liability for a tuition fee, relevant data in the Person Payment Schedule (PPS) is:
This entry changes, and now has these values:
The I_INVOICE_ADJUSTMENT table entry will have:
Below are the three associated entries in I_INVOICE_TRANS_V.
|
||||||||||||||||
Loan Scheme Discounts and Student TO DO Records Student TODO records are used to determine whether a $500 or 80% payment has been made against all of a student's HECS-HELP units with the same Census date. Any discounts applied will have a HCSHLPLN-D record (Fee Assessment) with a transaction category of LOAN_DSCNT created. |
Rules/Notes: VET-TUIT fee types are processed in the same way as TUITION fee types. Loan scheme discount calculations calculate the correct discount amount by considering the amount paid and invoiced in the context of the census date of the units being paid. SA-HELP loans are not included in the discount process. |
||||||||||||||||
Apply Payments to New Invoices (if required) The way in which payments are matched to invoices is discussed in detail in the Special Topic Applying Payments. This process navigates the 'invoice stream' and is called immediately after loading details into I_INVOICE and I_INVOICE_TRANS. The invoice stream performs the tasks below before applying or re-applying payments as outlined in the Special Topics section. The I_INVOICE_TRANS_V view of I_INVOICE and I_INVOICE_TRANS is used to access invoice data.
|
Rules/Notes:
|
||||||||||||||||
Prepare Customer Records (Prior to Invoice Creation): check box This module resets I_FIN_CUSTOMER record set to ERROR from previous runs to READY. This assumes that remedial action has taken place.
|
Rules/Notes: The
new summary status column in I_INVOICE will be the key driver for the
Invoice Summary status. Any type of payment by a customer, whether refund required or payment owed, always keeps the customer ACTIVE. |
||||||||||||||||
Test for Student and Sponsor Activity (Only if preparing customer records): check box Student TO DO records are created when certain changes are made affecting the database, especially the person payment schedule, (refer to Special Topics) or if a provisionally applied discount may need to be rescinded. Some payment processing also causes Student TODO records to be created to prompt invoice adjustments. A TO DO record represents a single entry (installment of the debt due) in the person payment schedule. Since invoices are based on these schedule entries, the presence of a TODO record indicates that an adjustment may be necessary to an existing invoice for a student's fee liability, or that a new invoice is required because there is a new schedule entry. This module accesses each new TODO record in turn. New TODO entries are identified by the absence of a 'logical delete' date. For each record, the process makes the following evaluations:
An invoice adjustment entry also carries information required when payments are received for the fee in question - notably payment ranking and account code information. The source of this information is data recorded against a fee, which is displayed in the Maintain Fee Types form, FINF2100. Once processed, the transfer status of an adjustment record is set to READY. |
Rules/Notes: The job INTJ0024 was previously called Match Receipts. Much of its former functionality is now defunct and the job has been renamed Finalise Processing. The Finalise Processing job (INTJ0024):
|
||||||||||||||||
Check for Earned Discounts where Due Dates have Elapsed check box A choice can be made about whether to include this module in any specific run. When initially creating an invoice, the assumption is that discounting conditions will be met for any fee that attracts a discount. Accordingly, invoices are created for an amount with discount already subtracted. This module is run as preparation for a later check that, for those instalments in the Person Payment Schedule (PPS) that have now passed their Due Date, the discount is in fact 'earned'. To be earned, all debt, or a specified minimum amount or percentage, must be paid by the Due Date, as explained in documentation for FINF2860. The exception is the HECS or HECS-HELP Contribution Amount, where discounts are not rescinded and the check does not apply. Processing method: The module operates with the date on which it starts processing as its initial reference point. From this date it subtracts one day to arrive at a control date. The entries of interest in the PPS are those (other than Student Contribution Amount) where the Payment Due Date falls between the actual date when the process was last run and the control date of the current run, inclusive of both dates. If a Due Date is within this span, a Student TO DO record is created. This is then processed by the next module in the same way as all other Student TO DO records. If the module is run more than once on the same day, there is special provision in the module to ensure that the actual processing day is still not considered. |
Rules/Notes: Examples: Previous
run = 5 April
Module
run twice on one day:
|
Last Modified on 31 May, 2012 2:42 PM
History Information
Release Information | Project | Changes to Document |
13.0.0.3 , 14.0.0.2 and 15.0 | 1834 - Service and Amenities Fee | Added note about SA fees not being eligible for discounts. |
13.0 | 1577 - Unit Fee Payment Matching | Added note about the invoice due date for Loan Scheme Fee Types of FEE-HELP and HCS_HELP, being based on the PPS due date. |
12.0.0.2 | 1617 - VU - SV Fee-Help | Added note about VET-TUIT fee types. |
11.0.0.2 | calypso 24576 | Removed erroneous statement relating to PASS_RJR_ID_IND in the S_JOB table. |
11.0.0.0.0.0 | 1350 - Job Error Handling | Added details about Job Error Handling and Run Log |
10.0.0.0.0.0 | 1338 - PDS - Payment Matching - Part 1 | In the Introduction, the following sentence 'The context for this job is described ... ' was updated to include Matching Invoices |