diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php index 90697827..ca666344 100755 --- a/application/controllers/amendmentpurchaseorder.php +++ b/application/controllers/amendmentpurchaseorder.php @@ -860,6 +860,7 @@ function UpdateAmendServicePurchaseOrder() $CapitalRange = '0'; $ExchangeRateOn = $this->input->post('ExchangeRateOn'); + $ExchangeRateOn = $this->getDateformat($ExchangeRateOn); $ExchangeRate=$this->input->post('ExchangeRt'); } @@ -1052,7 +1053,7 @@ function UpdateAmendServicePurchaseOrder() //echo "Service"; //print_r($ServiceTax); $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem); - print_r($ImportTaxList); + //print_r($ImportTaxList); //die(); diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 1c2339dc..ed0becc6 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -1020,7 +1020,7 @@ $AdvanceAmount=0.00; $this->dompdf->load_html($php); $this->dompdf->render(); $data['Attachment'] = FALSE; - $this->dompdf->stream("RevenuePOReport.pdf",$data,$php); + $this->dompdf->stream("RevenuePOReport".$PONO.".pdf",$data,$php); } @@ -1086,7 +1086,7 @@ $AdvanceAmount=0.00; $this->dompdf->load_html($php); $this->dompdf->render(); $data['Attachment'] = FALSE; - $this->dompdf->stream("ServicePOReport.pdf",$data,$php); + $this->dompdf->stream("ServicePOReport".$PONO.".pdf",$data,$php); } @@ -1214,7 +1214,7 @@ public function importpoprint($PONO) $this->dompdf->load_html($php); $this->dompdf->render(); $data['Attachment'] = FALSE; - $this->dompdf->stream("ImportPOReport.pdf",$data,$php); + $this->dompdf->stream("ImportPOReport".$PONO.".pdf",$data,$php); } @@ -2360,7 +2360,7 @@ function addNewImportPurchaseOrder() $this->dompdf->load_html($php); $this->dompdf->render(); $data['Attachment'] = FALSE; - $this->dompdf->stream("CapitalPOReport.pdf",$data,$php); + $this->dompdf->stream("CapitalPOReport".$PONO.".pdf",$data,$php); } diff --git a/application/views/capitalpopdf.php b/application/views/capitalpopdf.php index 44061c7c..b4900906 100755 --- a/application/views/capitalpopdf.php +++ b/application/views/capitalpopdf.php @@ -105,13 +105,13 @@
DRAFT
'; - - } + if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED) + { } + else + { + echo '
DRAFT
'; + + } ?>
diff --git a/application/views/editCapitalAmendPO.php b/application/views/editCapitalAmendPO.php index eff4666a..f76c7713 100755 --- a/application/views/editCapitalAmendPO.php +++ b/application/views/editCapitalAmendPO.php @@ -261,7 +261,7 @@ document.getElementById('dispatchinternational').style.display = 'block'; @@ -853,13 +860,13 @@ document.getElementById('dispatchinternational').style.display = 'block';
'Select Req No'); - if(!empty($RequistionDetails)) - { - foreach ($RequistionDetails as $SID): - $RL[$SID->ReqNo] = $SID->ReqNo.' '.' - '.' '.$SID->DepartmentName; - endforeach; - } + // $RL = array("0"=>'Select Req No'); + // if(!empty($RequistionDetails)) + // { + // foreach ($RequistionDetails as $SID): + // $RL[$SID->ReqNo] = $SID->ReqNo.' '.' - '.' '.$SID->DepartmentName; + // endforeach; + // } $data = array('name' => 'EditReqnumber','value' => set_value('EditReqnumber'),'id'=>'EditReqnumber', 'class' => 'form-control select2' ,'readonly' => 'true'); @@ -1729,15 +1736,7 @@ var myArray = ; $(function() { - $("#PODate").datepicker({ - minDate : d, - maxDate : 'now', - dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0' - }); - $("#Deliverydt").datepicker({ - minDate : 'now', - dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10' - }); + var capital=; //alert(capital); @@ -2669,6 +2668,7 @@ $('#PurQuantity').val(''); var id= $('#Reqnumber'+userid).val(); $('#EditReqnumber').val($('#Reqnumber'+userid).val()); + $('#EditCapitalDepartmentName').val($('#departmentName'+userid).val()); $("#EditCostCenter").val($('#CPCostCode'+userid).val()); $('#EditCapitalbudAmt').val($('#AvilBudget'+userid).val()); diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php index 27cbd0b5..c2b8a00d 100755 --- a/application/views/importpopdf.php +++ b/application/views/importpopdf.php @@ -120,13 +120,13 @@
DRAFT
'; - - } + if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED) + { } + else + { + echo '
DRAFT
'; + + } ?>
diff --git a/application/views/revenuepopdf.php b/application/views/revenuepopdf.php index f218f824..502a8344 100755 --- a/application/views/revenuepopdf.php +++ b/application/views/revenuepopdf.php @@ -108,13 +108,13 @@
DRAFT
'; - - } + if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED) + { } + else + { + echo '
DRAFT
'; + + } ?>
diff --git a/application/views/servicepopdf.php b/application/views/servicepopdf.php index e7884df4..68e1cf5f 100755 --- a/application/views/servicepopdf.php +++ b/application/views/servicepopdf.php @@ -104,14 +104,13 @@
DRAFT
'; - - } - + if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED) + { } + else + { + echo '
DRAFT
'; + + } ?>