// 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'];
$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
$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