Updating the flag for export contact for (billing active)
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 31 Jul 2019 17:00:58 +0000 (13:00 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 31 Jul 2019 17:00:58 +0000 (13:00 -0400)
When comparing renewal date go 1 year and 3 months from now.

models/admin/ajax/contactsListExport.php

index 329f8b9..6d35ffb 100644 (file)
@@ -149,7 +149,7 @@ class GlmMembersAdmin_ajax_contactsListExport extends GlmDataContacts
                     SELECT DISTINCT(ref_dest)
                       FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "accounts
                      WHERE renewal_date IS NOT NULL
-                       AND renewal_date + INTERVAL 1 YEAR + INTERVAL $days_after_expired DAY > '$current_date'
+                       AND renewal_date > ( NOW() - INTERVAL 1 YEAR - INTERVAL 3 MONTH )
                 ) ";
             }