Updating the getStats call
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Mar 2018 16:54:16 +0000 (12:54 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Mar 2018 16:54:16 +0000 (12:54 -0400)
Passing $where part

models/admin/billing/accounts.php
models/admin/billing/index.php
models/admin/billing/invoices.php

index 2041607..3cd9350 100644 (file)
@@ -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'];
index f4cf7ba..5fef142 100644 (file)
@@ -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 '<pre>$invoicesResult: ' . print_r( $invoicesResult, true ) . '</pre>';
-            $totalInvoices = $this->getStats();
+            $totalInvoices = $this->getStats($where);
             $this->line_items_post = false;
 
             // Get paging results
index e48b1a1..39e5cb6 100644 (file)
@@ -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 '<pre>$invoicesResult: ' . print_r( $invoicesResult, true ) . '</pre>';
-            $totalInvoices = $this->getStats();
+            $totalInvoices = $this->getStats($where);
             $this->line_items_post = false;
 
             // Get paging results