Per Adam to include also the contact with no renewal date.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 13 Aug 2019 13:12:20 +0000 (09:12 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 13 Aug 2019 13:12:20 +0000 (09:12 -0400)
Includeing accounts with no renewal date set.

models/admin/ajax/contactsListExport.php

index 6d35ffb..5047e80 100644 (file)
@@ -148,8 +148,8 @@ class GlmMembersAdmin_ajax_contactsListExport extends GlmDataContacts
                 $where .= " AND T.ref_dest IN (
                     SELECT DISTINCT(ref_dest)
                       FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "accounts
-                     WHERE renewal_date IS NOT NULL
-                       AND renewal_date > ( NOW() - INTERVAL 1 YEAR - INTERVAL 3 MONTH )
+                     WHERE renewal_date IS NULL
+                       OR (renewal_date > ( NOW() - INTERVAL 1 YEAR - INTERVAL 3 MONTH ))
                 ) ";
             }