Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.3.2
-
Fix Version/s: 4.3.2
-
Component/s: None
-
Labels:None
Description
This relates to CORE-2794
The service coverage dates always appear as (current date - (current date + service term)). This is problematic if for example, the invoice cron hasn't run in a while and then plays catch up.
As an example, a service that renews daily for which the cron hasn't run for about a week, will when the cron runs generate around 7 invoices for that service. All of the invoices show the same date coverage in the invoice line item, e.g. "VPS 1 - test.invoicedelivery.com (Aug 23, 2018 - Aug 24, 2018)" even though the first invoice should cover say "Aug 15, 2018 - Aug 16, 2018", then 16-17, 17-18, 18-19, etc.
This gives the impression that the invoices are duplicates and does not accurately represent the time period the invoice covers.
Instead, the dates covered should be:
(service renew date - (service renew date + service term))
Then, the renew date is bumped forward, and the next invoice is generated similarly.