color changes in report : ps
This commit is contained in:
parent
98d9ea4a1d
commit
f35d0bfe1a
@ -679,7 +679,8 @@ class Flyhi_Controller extends REST_Controller {
|
||||
mkdir($this->external_path.'/sales_pd/'.$pd_id,0777);
|
||||
}
|
||||
|
||||
if(!$flyhipd_data[0]['is_pdf'] || $flyhipd_data[0]['is_edited'])
|
||||
// if(!$flyhipd_data[0]['is_pdf'] || $flyhipd_data[0]['is_edited'])
|
||||
if(1)
|
||||
{
|
||||
|
||||
$all_section_data = $this->Flyhi_Model->selectCustomRecords(array('*'),array('sales_pd_id' => $pd_id,'isactive' => 1),SALESPD_SECTION_DATA,array(),'','section_id','ASC');
|
||||
@ -705,7 +706,7 @@ class Flyhi_Controller extends REST_Controller {
|
||||
//$view_name = $flyhipd_data[0]['short_name'].'_'.$flyhipd_data[0]['abbr'];
|
||||
$view_name = $flyhipd_data[0]['short_name'];
|
||||
$html_content = $this->load->view('sale_pd_templates/'.$view_name,$view_data,true);
|
||||
// echo $html_content;die();
|
||||
echo $html_content;die();
|
||||
$pdf_doc = $this->pdfgenerator->generate($html_content, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
|
||||
//End of PDF Gen using DOM PDF
|
||||
$output_file = $this->external_path ."/sales_pd/" .$pd_id. "/temp.pdf";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user