Move create_temp_table to Reports Controller constructor out of Model one

This commit is contained in:
FrancescoUK
2016-07-06 19:37:23 +01:00
parent 0cbd19353c
commit dc06119586
2 changed files with 6 additions and 6 deletions

View File

@@ -21,8 +21,13 @@ class Reports extends Secure_Controller
{
redirect('no_access/reports/reports_' . $submodule_id);
}
}
//Create our temp tables to work with the data in our report
$this->Sale->create_temp_table();
$this->Receiving->create_temp_table();
$this->Item->create_temp_table();
}
$this->load->helper('report');
}

View File

@@ -10,11 +10,6 @@ abstract class Report extends CI_Model
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
$this->output->set_header('Cache-Control: post-check=0, pre-check=0', FALSE);
$this->output->set_header('Pragma: no-cache');
//Create our temp tables to work with the data in our report
$this->Sale->create_temp_table();
$this->Receiving->create_temp_table();
$this->Item->create_temp_table();
}
//Returns the column names used for the report