Invoicing/No SIRs RSP Invoice
When a manual invoice is created by a wholesaler on a RSP account, it will shorten the account invoice period, and mark it processed. When the cardline creator generates cardlines at month end for SIR's files, it will not create cardlines where the SIR date falls between the account invoice period start and account invoice period end date, because that invoice period has already been marked billed.
Real World Example:
- Examine Invoice ID: 485857. this was a manual invoice created on the 31st of March at 11:36 AM . The system generated invoice is created on the 3rd of April.
- When a manual invoice is generated this way, it affects the account_invoice_periods attached to the account. What it will do is stamp the end date of the current invoice period to match that of the day the invoice was generated.
- In this case, the invoice period that normally would have gone from the 1st of march to the 1st of April is shortened to go from the 1st of March to the 31st of March.
- This invoice period is then marked “Processed”.
- It will then generated another shortened account invoice period extending form the 31st of March to the 1st of April to get back on track to a monthly invoicing period.
- Between the 1st of March and the 31st of March a series of SIR’s are generated. The system needs to know whether it needs to generated cardlines for these invoices at month end.
- So, it will look at the date of the SIR.
- If the date of the SIR file falls between an account invoice period where the period ‘s invoice processed flag is NOT 1, it will generate cardline.
- If the period has already been processed on an invoice and the flag IS 1, it will not generated cardlines.
In short, by creating a manual invoice, and billing out this account invoice period “early”, you are effectively telling the system not to bother creating cardlines for the date range in question, as you have already raised an invoice dealing with that account invoice period.
Unless you really need to, you should avoid generating manual invoices on RSP accounts or else you will run into this problem every month. Emersion can force the creation of cardlines which you will have to manually allocate to the invoice if required, but this may incur a charge.
