From: Steve Sutton Date: Thu, 5 Apr 2018 12:46:33 +0000 (-0400) Subject: Set anniversary_date when adding accounts. X-Git-Tag: v1.0.0^2~75 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c2ea44d58468ad45553c0a6fe754ee5287f1e25a;p=WP-Plugins%2Fglm-member-db-billing.git Set anniversary_date when adding accounts. When adding accouunts for employees need to set the anniversary date. --- 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' ) );