public function getGenpdf()
 {
     $this->pdf = true;
     $tables = $this->getIndex();
     $this->table_raw = $tables;
     $this->report_entity = false;
     $sequencer = new Sequence();
     $doc_number = $sequencer->getNewId('devmanifest');
     $this->additional_filter = View::make(strtolower($this->controller_name) . '.addhead')->with('doc_number', $doc_number)->render();
     $this->report_file_name = 'MDL-' . str_pad($doc_number, 5, '0', STR_PAD_LEFT) . '.html';
     $this->report_file_path = realpath('storage/docs') . '/devmanifest/';
     $this->title = 'MANIFEST PENGIRIMAN HARIAN - TO DEVICE / LOGISTIC';
     $this->report_type = 'devmanifest';
     return parent::printReport();
 }
 public function getPrint()
 {
     $this->print = true;
     $tables = $this->getIndex();
     $this->table_raw = $tables;
     $this->additional_filter = View::make(strtolower($this->controller_name) . '.addhead')->render();
     return parent::printReport();
 }