From c8a504570702759a3041f28c63d268c9651e6817 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 6 Jun 2018 14:17:31 -0400 Subject: [PATCH] Don't queue free memberships Free memberships are those with invoice_type set to 0 --- classes/billingSupport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/billingSupport.php b/classes/billingSupport.php index 70d552d..beb2483 100644 --- a/classes/billingSupport.php +++ b/classes/billingSupport.php @@ -596,7 +596,8 @@ class GlmBillingSupport "SELECT * FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "accounts WHERE renewal_date + INTERVAL 1 YEAR " . ($before ? '-' : '+' ) . " INTERVAL $count $period = '$curDate' - AND archived <> true", + AND archived <> true + AND invoice_type != 0", ARRAY_A ); } -- 2.17.1