From: Steve Sutton Date: Fri, 16 Mar 2018 16:54:16 +0000 (-0400) Subject: Updating the getStats call X-Git-Tag: v1.0.0^2~132 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=756b6b95cd770db79355b91f7f34c78e0fdf5447;p=WP-Plugins%2Fglm-member-db-billing.git Updating the getStats call Passing $where part --- diff --git a/models/admin/billing/accounts.php b/models/admin/billing/accounts.php index 2041607..3cd9350 100644 --- a/models/admin/billing/accounts.php +++ b/models/admin/billing/accounts.php @@ -374,7 +374,7 @@ class GlmMembersAdmin_billing_accounts extends GlmDataAccounts // Get the list of accounts and determine number of accounts in list $orderBy = 'ref_name'; $accountsResult = $this->getList($where, $orderBy, true, 'id', $start, $limit); - $totalAccounts = $this->getStats(); + $totalAccounts = $this->getStats($where); // Get paging results $numbDisplayed = $accountsResult['returned']; diff --git a/models/admin/billing/index.php b/models/admin/billing/index.php index f4cf7ba..5fef142 100644 --- a/models/admin/billing/index.php +++ b/models/admin/billing/index.php @@ -341,7 +341,7 @@ class GlmMembersAdmin_billing_index extends GlmDataInvoices $this->line_items_post = true; $invoicesResult = $this->getList($where, $orderBy, true, 'id', $start, $limit); // echo '
$invoicesResult: ' . print_r( $invoicesResult, true ) . '
'; - $totalInvoices = $this->getStats(); + $totalInvoices = $this->getStats($where); $this->line_items_post = false; // Get paging results diff --git a/models/admin/billing/invoices.php b/models/admin/billing/invoices.php index e48b1a1..39e5cb6 100644 --- a/models/admin/billing/invoices.php +++ b/models/admin/billing/invoices.php @@ -419,7 +419,7 @@ class GlmMembersAdmin_billing_invoices extends GlmDataInvoices $this->line_items_post = true; $invoicesResult = $this->getList($where, $orderBy, true, 'id', $start, $limit); // echo '
$invoicesResult: ' . print_r( $invoicesResult, true ) . '
'; - $totalInvoices = $this->getStats(); + $totalInvoices = $this->getStats($where); $this->line_items_post = false; // Get paging results