...
- The effective date being used for the PURGEDAMTS* invoices will be the same date as the last full invoice. This will ensure the partial invoices are posted before the full invoice.
- Implement a consistent order of processing by using the invoice created date in place of the invoice number. In most cases, the effective date is the invoice date. But if the invoice date is the same for multiple invoices, we're looking at the created date in an effort to order them consistently.
- Create missing posting periods and set them to closed and archived when appropriate.
...