diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 4eed3119..f6eba7ca 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -1270,7 +1270,8 @@ $AdvanceAmount=0.00; public function importpoprint($PONO) { - + // echo $PONO; + // die(); //$this->load->view('includes/pdfheader'); // Load the pdf page with multiviews @@ -1377,17 +1378,17 @@ public function importpoprint($PONO) $php = $this->output->get_output(); // Load library - $this->load->library('dompdf_gen'); - $paper_orientation = 'portrait'; + $this->load->library('dompdf_gen'); + $paper_orientation = 'portrait'; $customPaper = array(0,0,750,950); $this->dompdf->set_paper($customPaper,$paper_orientation); // Convert to PDF //$this->dompdf->set_paper(array(0, 0, 841.89, 1190.55), 'landscape'); - $this->dompdf->load_html($php); + $this->dompdf->load_html($php); $this->dompdf->render(); $data['Attachment'] = FALSE; - $this->dompdf->stream("ImportPOReport".$PONO.".pdf",$data,$php); + $this->dompdf->stream("ImportPOReport".$PONO.".pdf",$data,$php); } diff --git a/application/views/editImportAmendPO.php b/application/views/editImportAmendPO.php index 39bb3808..e1848e4e 100755 --- a/application/views/editImportAmendPO.php +++ b/application/views/editImportAmendPO.php @@ -152,11 +152,12 @@ if(!empty($POMaster)) $Insurance=$Req->InsuranceStatus; $InsuranceNo=$Req->InsuranceNumber; $Importoption=$Req->POSubType; + $InsuranceStatus=$Req->InsuranceStatus; } } //$AvilableBudget=0; -//echo $Otherpay; +//echo $InsuranceStatus; $SavedSum=$Orderedsum*$ExchangeRate; //echo $SavedSum; $AvilableBudget=$SavedSum+$AvlAmount; @@ -747,7 +748,7 @@ if(!empty($RequistionDetails)) -