fix for excelreport

This commit is contained in:
2019-02-26 16:04:55 +01:00
parent e8004d6e0a
commit 0ee4785a40
4 changed files with 9 additions and 5 deletions
@@ -68,9 +68,9 @@ class ReportsController extends MY_Controller {
$this->json( $invoiceReport );
}
public function createInvoicesSpreadsheet( $year = FALSE )
public function createInvoicesSpreadsheet( $year = FALSE, $orderType, $orderDirection, $archive )
{
$invoices = new Invoices( $year );
$invoices = new Invoices( $year, $orderType, $orderDirection, $archive );
$invoiceReport = $invoices->getInvoiceReport();
+1 -1
View File
@@ -16,7 +16,7 @@ class MY_Controller extends CI_Controller {
{
parent::__construct();
$this->version = '1.00.02';
$this->version = '1.00.03';
$this->load->library( 'beheer/session/RetrieveUserSession' );
@@ -56,7 +56,7 @@ class MonthForecast {
private function setInitialsForecastMonths()
{
for ( $i = 0; $i <= 12; $i ++ )
for ( $i = 0; $i < 12; $i ++ )
{
$this->forecastMonths[ $i ] = ['forecastamount' => 0];
}