1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Fix to retain plan_started

This commit is contained in:
Hillel Coren 2017-01-25 20:01:12 +02:00
parent 77060db1fb
commit 5bfc183ed5

View File

@ -652,7 +652,7 @@ class BasePaymentDriver
if(
$company->plan != $plan
|| DateTime::createFromFormat('Y-m-d', $account->company->plan_expires) >= date_create('-7 days')
|| DateTime::createFromFormat('Y-m-d', $account->company->plan_expires) <= date_create('-7 days')
) {
// Either this is a different plan, or the subscription expired more than a week ago
// Reset any grandfathering