ALL PDF DRAFT STATUS AND ADVANCE AMOUNT ISSUE FIXED
This commit is contained in:
parent
67fc3325ce
commit
742cbe12fa
@ -860,6 +860,7 @@ function UpdateAmendServicePurchaseOrder()
|
|||||||
|
|
||||||
$CapitalRange = '0';
|
$CapitalRange = '0';
|
||||||
$ExchangeRateOn = $this->input->post('ExchangeRateOn');
|
$ExchangeRateOn = $this->input->post('ExchangeRateOn');
|
||||||
|
$ExchangeRateOn = $this->getDateformat($ExchangeRateOn);
|
||||||
$ExchangeRate=$this->input->post('ExchangeRt');
|
$ExchangeRate=$this->input->post('ExchangeRt');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1052,7 +1053,7 @@ function UpdateAmendServicePurchaseOrder()
|
|||||||
//echo "Service";
|
//echo "Service";
|
||||||
//print_r($ServiceTax);
|
//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);
|
$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();
|
//die();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1020,7 +1020,7 @@ $AdvanceAmount=0.00;
|
|||||||
$this->dompdf->load_html($php);
|
$this->dompdf->load_html($php);
|
||||||
$this->dompdf->render();
|
$this->dompdf->render();
|
||||||
$data['Attachment'] = FALSE;
|
$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->load_html($php);
|
||||||
$this->dompdf->render();
|
$this->dompdf->render();
|
||||||
$data['Attachment'] = FALSE;
|
$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->load_html($php);
|
||||||
$this->dompdf->render();
|
$this->dompdf->render();
|
||||||
$data['Attachment'] = FALSE;
|
$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->load_html($php);
|
||||||
$this->dompdf->render();
|
$this->dompdf->render();
|
||||||
$data['Attachment'] = FALSE;
|
$data['Attachment'] = FALSE;
|
||||||
$this->dompdf->stream("CapitalPOReport.pdf",$data,$php);
|
$this->dompdf->stream("CapitalPOReport".$PONO.".pdf",$data,$php);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -105,13 +105,13 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div style="text-align:right;">
|
<div style="text-align:right;">
|
||||||
<?php
|
<?php
|
||||||
if ($postatus == PO_RELEASED)
|
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
|
||||||
{}
|
{ }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<div><b>DRAFT</b> </div>';
|
echo '<div><b>DRAFT</b> </div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -261,7 +261,7 @@ document.getElementById('dispatchinternational').style.display = 'block';
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#PaymentMethod").select2();
|
$("#PaymentMethod").select2();
|
||||||
$("#EditReqnumber").select2();
|
//$("#EditReqnumber").select2();
|
||||||
$("#EditMaterialCode").select2();
|
$("#EditMaterialCode").select2();
|
||||||
|
|
||||||
//Initialize Select2 Elements
|
//Initialize Select2 Elements
|
||||||
@ -280,6 +280,11 @@ document.getElementById('dispatchinternational').style.display = 'block';
|
|||||||
minDate : 'now',
|
minDate : 'now',
|
||||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#Exchangerateon").datepicker({
|
||||||
|
minDate : 'now',
|
||||||
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
||||||
|
});
|
||||||
$('#Date').click(function () {
|
$('#Date').click(function () {
|
||||||
//for Date range selection
|
//for Date range selection
|
||||||
$('#Schedulediv').hide();
|
$('#Schedulediv').hide();
|
||||||
@ -297,6 +302,8 @@ document.getElementById('dispatchinternational').style.display = 'block';
|
|||||||
$('#deliverydateby').show();
|
$('#deliverydateby').show();
|
||||||
$('#Deliverydtdiv').hide();
|
$('#Deliverydtdiv').hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -853,13 +860,13 @@ document.getElementById('dispatchinternational').style.display = 'block';
|
|||||||
<div>
|
<div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$RL = array("0"=>'Select Req No');
|
// $RL = array("0"=>'Select Req No');
|
||||||
if(!empty($RequistionDetails))
|
// if(!empty($RequistionDetails))
|
||||||
{
|
// {
|
||||||
foreach ($RequistionDetails as $SID):
|
// foreach ($RequistionDetails as $SID):
|
||||||
$RL[$SID->ReqNo] = $SID->ReqNo.' '.' - '.' '.$SID->DepartmentName;
|
// $RL[$SID->ReqNo] = $SID->ReqNo.' '.' - '.' '.$SID->DepartmentName;
|
||||||
endforeach;
|
// endforeach;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
$data = array('name' => 'EditReqnumber','value' => set_value('EditReqnumber'),'id'=>'EditReqnumber', 'class' => 'form-control select2' ,'readonly' => 'true');
|
$data = array('name' => 'EditReqnumber','value' => set_value('EditReqnumber'),'id'=>'EditReqnumber', 'class' => 'form-control select2' ,'readonly' => 'true');
|
||||||
@ -1729,15 +1736,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
|
|
||||||
$(function() {
|
$(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=<?php echo json_encode($CapitalRange, JSON_PRETTY_PRINT) ?>;
|
var capital=<?php echo json_encode($CapitalRange, JSON_PRETTY_PRINT) ?>;
|
||||||
//alert(capital);
|
//alert(capital);
|
||||||
@ -2669,6 +2668,7 @@ $('#PurQuantity').val('');
|
|||||||
var id= $('#Reqnumber'+userid).val();
|
var id= $('#Reqnumber'+userid).val();
|
||||||
|
|
||||||
$('#EditReqnumber').val($('#Reqnumber'+userid).val());
|
$('#EditReqnumber').val($('#Reqnumber'+userid).val());
|
||||||
|
|
||||||
$('#EditCapitalDepartmentName').val($('#departmentName'+userid).val());
|
$('#EditCapitalDepartmentName').val($('#departmentName'+userid).val());
|
||||||
$("#EditCostCenter").val($('#CPCostCode'+userid).val());
|
$("#EditCostCenter").val($('#CPCostCode'+userid).val());
|
||||||
$('#EditCapitalbudAmt').val($('#AvilBudget'+userid).val());
|
$('#EditCapitalbudAmt').val($('#AvilBudget'+userid).val());
|
||||||
|
|||||||
@ -120,13 +120,13 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div style="text-align:right;">
|
<div style="text-align:right;">
|
||||||
<?php
|
<?php
|
||||||
if ($postatus == 'ST026')
|
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
|
||||||
{}
|
{ }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<div><b>DRAFT</b> </div>';
|
echo '<div><b>DRAFT</b> </div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -108,13 +108,13 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div style="text-align:right;">
|
<div style="text-align:right;">
|
||||||
<?php
|
<?php
|
||||||
if ($postatus == 'ST026')
|
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
|
||||||
{}
|
{ }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<div><b>DRAFT</b> </div>';
|
echo '<div><b>DRAFT</b> </div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -104,14 +104,13 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div style="text-align:right;">
|
<div style="text-align:right;">
|
||||||
<?php
|
<?php
|
||||||
if ($postatus == 'ST026')
|
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
|
||||||
{}
|
{ }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<div><b>DRAFT</b> </div>';
|
echo '<div><b>DRAFT</b> </div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div> </div>
|
<div> </div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user