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:
e49d452
)
Set anniversary_date when adding accounts.
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 5 Apr 2018 12:46:33 +0000
(08:46 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 5 Apr 2018 12:46:33 +0000
(08:46 -0400)
When adding accouunts for employees need to set the anniversary date.
classes/billingSupport.php
patch
|
blob
|
history
diff --git
a/classes/billingSupport.php
b/classes/billingSupport.php
index
96d9528
..
21b796e
100644
(file)
--- a/
classes/billingSupport.php
+++ b/
classes/billingSupport.php
@@
-876,11
+876,13
@@
class GlmBillingSupport
$this->wpdb->insert(
GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . 'accounts',
array(
- 'ref_dest' => $ref_dest,
- 'ref_name' => $member_name,
+ 'ref_dest' => $ref_dest,
+ 'ref_name' => $member_name,
+ 'anniversary_date' => date( 'Y-m-d' )
),
array(
'%d',
+ '%s',
'%s'
)
);