I need to know how to stop this ASAP. We upgraded to v4.2 and all invoices today billed for 2 months of service when they should be monthly only. How do we downgrade Blesta or get a patch as quick as possible?
For us, this has happened with cPanel related services only so far. Can anyone else confirm?
Okay I believe I identified the source of the problem and this should be a hotfix. Starting on line 1393 in app/models/invoices.php there should be this code:
if ($i == 0
&& ($dates = $this->Packages->getProrataDates(
$service->pricing_id,
$service->date_added . 'Z',
$service->date_renews . 'Z'
))
) {
Change that to: