From: Steve Sutton Date: Fri, 16 Nov 2018 20:59:43 +0000 (-0500) Subject: change case X-Git-Tag: v1.0.16^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=90f34502003d99ccf9be0ecc61f35384cf8739d7;p=WP-Plugins%2Fglm-member-db-billing.git change case for invoice type. --- diff --git a/index.php b/index.php index 153ced7..5263c2c 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Billing * Plugin URI: http://www.gaslightmedia.com/ * Description: This is glmAssociate Billing Module - * Version: 1.0.15 + * Version: 1.0.16 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersBillingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.15 + * @version 1.0.16 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.15'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.16'); define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/admin/ajax/accountsListExport.php b/models/admin/ajax/accountsListExport.php index 89423fa..a9d00d7 100644 --- a/models/admin/ajax/accountsListExport.php +++ b/models/admin/ajax/accountsListExport.php @@ -169,7 +169,7 @@ class GlmMembersAdmin_ajax_accountsListExport extends GlmDataAccounts $filterPending = filter_var( $_REQUEST['filterPending'], FILTER_VALIDATE_BOOLEAN ); $sub_where_parts[] = "(T.renewal_date + INTERVAL 1 YEAR - INTERVAL $days_before_renewal DAY <= '$curDate' AND " . "T.renewal_date + INTERVAL 1 YEAR + INTERVAL $days_after_expired DAY >= '$curDate')"; - $sub_where_parts[] = "Invoice_type != 0"; + $sub_where_parts[] = "invoice_type != 0"; $filterPending = true; $haveFilter = true; } @@ -177,12 +177,12 @@ class GlmMembersAdmin_ajax_accountsListExport extends GlmDataAccounts $filterOverdue = filter_var( $_REQUEST['filterOverdue'], FILTER_VALIDATE_BOOLEAN ); $sub_where_parts[] = "(T.renewal_date + INTERVAL 1 YEAR < '$curDate' AND " . "T.renewal_date + INTERVAL 1 YEAR + INTERVAL $days_after_expired DAY >= '$curDate')"; - $sub_where_parts[] = "Invoice_type != 0"; + $sub_where_parts[] = "invoice_type != 0"; } if ( isset( $_REQUEST['filterExpired'] ) ) { $filterExpired = filter_var( $_REQUEST['filterExpired'], FILTER_VALIDATE_BOOLEAN ); $sub_where_parts[] = "T.renewal_date + INTERVAL 1 YEAR + INTERVAL $days_after_expired DAY < '$curDate'"; - $sub_where_parts[] = "Invoice_type != 0"; + $sub_where_parts[] = "invoice_type != 0"; } if ( !empty( $sub_where_parts ) ) {