projects
/
WP-Plugins
/
glm-member-db-billing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1838a7d
)
Don't queue free memberships
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 6 Jun 2018 18:17:31 +0000
(14:17 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 6 Jun 2018 18:17:31 +0000
(14:17 -0400)
Free memberships are those with invoice_type set to 0
classes/billingSupport.php
patch
|
blob
|
history
diff --git
a/classes/billingSupport.php
b/classes/billingSupport.php
index
70d552d
..
beb2483
100644
(file)
--- 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
);
}