From c2ea44d58468ad45553c0a6fe754ee5287f1e25a Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 5 Apr 2018 08:46:33 -0400 Subject: [PATCH] Set anniversary_date when adding accounts. When adding accouunts for employees need to set the anniversary date. --- classes/billingSupport.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/billingSupport.php b/classes/billingSupport.php index 96d9528..21b796e 100644 --- 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' ) ); -- 2.17.1