mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-30 20:03:52 -04:00
Move create_temp_table to Reports Controller constructor out of Model one
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user