issues for deliver and spo file
This commit is contained in:
parent
088f8212bd
commit
35c456618c
@ -473,6 +473,7 @@ function add($pathname)
|
|||||||
$constant = $this->input->post('hideconstants');
|
$constant = $this->input->post('hideconstants');
|
||||||
|
|
||||||
|
|
||||||
|
$arr = [];
|
||||||
|
|
||||||
for($i=1;$i<=$constant;$i++){
|
for($i=1;$i<=$constant;$i++){
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
@ -486,6 +487,8 @@ function add($pathname)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//print_r($arr);
|
//print_r($arr);
|
||||||
|
if(!empty($arr))
|
||||||
|
{
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
|
|
||||||
|
|
||||||
@ -504,7 +507,7 @@ $myfile = array('FilePath'=>$filename,'PONO'=>$PONO);
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -981,7 +984,7 @@ $RequestedBy = $this->input->post('drpDepartment');
|
|||||||
$constants = $this->input->post('hideconstant');
|
$constants = $this->input->post('hideconstant');
|
||||||
|
|
||||||
|
|
||||||
|
$arr = [];
|
||||||
|
|
||||||
for($i=1;$i<=$constants;$i++){
|
for($i=1;$i<=$constants;$i++){
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
@ -998,6 +1001,9 @@ $RequestedBy = $this->input->post('drpDepartment');
|
|||||||
|
|
||||||
}
|
}
|
||||||
//print_r($arr);
|
//print_r($arr);
|
||||||
|
|
||||||
|
if(!empty($arr))
|
||||||
|
{
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
|
|
||||||
|
|
||||||
@ -1023,7 +1029,8 @@ $RequestedBy = $this->input->post('drpDepartment');
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -4173,6 +4173,7 @@ function addloadfile()
|
|||||||
$Picture ='';
|
$Picture ='';
|
||||||
}
|
}
|
||||||
//echo $Picture;die;
|
//echo $Picture;die;
|
||||||
|
|
||||||
$filelist =array('PONO'=>$pono,'IGRNO'=>$igr,'FilePath'=>$Picture);
|
$filelist =array('PONO'=>$pono,'IGRNO'=>$igr,'FilePath'=>$Picture);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -914,11 +914,12 @@ function GetPOType($ReqNo)
|
|||||||
function GetServicePurchaseOrder($PONO = '')
|
function GetServicePurchaseOrder($PONO = '')
|
||||||
{
|
{
|
||||||
$this->db->distinct();
|
$this->db->distinct();
|
||||||
$this->db->select('ReqNo,POMast.PONO,POMast.PaymentTerms,POMast.PaymentOtherDescription,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,POMast.PaymentTerms,POMast.ExchangeRate,POMast.UpdatedOn,Stat.StatusCode,POMast.ServiceWorkStatus,POMast.*,POMast.TotalOrderValue,POMast.BudgetType');
|
$this->db->select('ReqNo,POMast.PONO,POMast.PaymentTerms,POMast.PaymentOtherDescription,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,POMast.PaymentTerms,POMast.ExchangeRate,POMast.UpdatedOn,Stat.StatusCode,POMast.ServiceWorkStatus,POMast.*,POMast.TotalOrderValue,POMast.BudgetType,IGR.IGRNO');
|
||||||
$this->db->from('T_PurchaseOrder_Master POMast');
|
$this->db->from('T_PurchaseOrder_Master POMast');
|
||||||
$this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID');
|
$this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID');
|
||||||
$this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status');
|
$this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status');
|
||||||
$this->db->join('T_PurchaseOrder_LineItem LineItem', 'POMast.PONO = LineItem.PONO');
|
$this->db->join('T_PurchaseOrder_LineItem LineItem', 'POMast.PONO = LineItem.PONO');
|
||||||
|
$this->db->join('T_IGR_Master IGR','POMast.PONO = IGR.PONO');
|
||||||
|
|
||||||
$this->db->where('POMast.PONO', $PONO);
|
$this->db->where('POMast.PONO', $PONO);
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
|||||||
@ -8712,6 +8712,9 @@ var counterConstant = 0;
|
|||||||
|
|
||||||
$("#addmorebutton").click(function(){
|
$("#addmorebutton").click(function(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//alert('sda');
|
//alert('sda');
|
||||||
|
|
||||||
if(counter>4){
|
if(counter>4){
|
||||||
@ -8726,7 +8729,7 @@ else{
|
|||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.id = "divid"+counterConstant;
|
div.id = "divid"+counterConstant;
|
||||||
div.className="row";
|
div.className="row";
|
||||||
div.innerHTML='<div class="col-md-12">'+
|
div.innerHTML='<div class="col-md-15">'+
|
||||||
// '<div class="col-md-3">'+
|
// '<div class="col-md-3">'+
|
||||||
// '<label>File Name</label>'+
|
// '<label>File Name</label>'+
|
||||||
// '<input type="text" id="maint_filename'+counterConstant+'" name="filename'+counterConstant+'" class="form-control" onkeypress="return false;" readonly/>'+
|
// '<input type="text" id="maint_filename'+counterConstant+'" name="filename'+counterConstant+'" class="form-control" onkeypress="return false;" readonly/>'+
|
||||||
@ -8739,6 +8742,7 @@ div.innerHTML='<div class="col-md-12">'+
|
|||||||
'<label><br><br></label>'+
|
'<label><br><br></label>'+
|
||||||
'<button class="btn btn-danger remove remove_this" id="removebtn'+counterConstant+'" onclick="removeRow(this.id)"><i class="fa fa-trash"></i> Remove</button></div>'+
|
'<button class="btn btn-danger remove remove_this" id="removebtn'+counterConstant+'" onclick="removeRow(this.id)"><i class="fa fa-trash"></i> Remove</button></div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
|
|
||||||
'</div>';
|
'</div>';
|
||||||
$('#newdiv').append(div);
|
$('#newdiv').append(div);
|
||||||
|
|
||||||
@ -8747,6 +8751,8 @@ div.innerHTML='<div class="col-md-12">'+
|
|||||||
$('#hideconstant').val(counterConstant);
|
$('#hideconstant').val(counterConstant);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -187,7 +187,7 @@
|
|||||||
<td style="text-align:right;"><?php
|
<td style="text-align:right;"><?php
|
||||||
$OrderedQuantity= round($rel->qty);
|
$OrderedQuantity= round($rel->qty);
|
||||||
$DispatchQuantity= round($rel->qty);
|
$DispatchQuantity= round($rel->qty);
|
||||||
$Rating =empty($DispatchQuantity)?"":$DispatchQuantity / empty($OrderedQuantity)?"":$OrderedQuantity *100;
|
$Rating =@($DispatchQuantity / $OrderedQuantity )*100;
|
||||||
|
|
||||||
|
|
||||||
echo number_format($Rating, 2, '.', ' ') ; ?></td>
|
echo number_format($Rating, 2, '.', ' ') ; ?></td>
|
||||||
|
|||||||
@ -103,6 +103,7 @@ $otherPayment = $Req->PaymentOtherDescription;
|
|||||||
$insurencestatus = $Req->InsuranceStatus;
|
$insurencestatus = $Req->InsuranceStatus;
|
||||||
$insurenceno = $Req->InsuranceNumber;
|
$insurenceno = $Req->InsuranceNumber;
|
||||||
$BudgetType = $Req->BudgetType;
|
$BudgetType = $Req->BudgetType;
|
||||||
|
$IGRNO =$Req->IGRNO;
|
||||||
// echo $insurenceno;
|
// echo $insurenceno;
|
||||||
// echo $otherPayment;
|
// echo $otherPayment;
|
||||||
}
|
}
|
||||||
@ -3830,7 +3831,7 @@ return tot;
|
|||||||
{
|
{
|
||||||
$index = $index + 1;
|
$index = $index + 1;
|
||||||
?>
|
?>
|
||||||
<tr id="<?php echo $index ; ?>">
|
<tr id="<?php echo $index ; ?>">
|
||||||
<td align="left"><?php echo $index ; ?></td>
|
<td align="left"><?php echo $index ; ?></td>
|
||||||
<td><?php echo $record->ReqNo ?></td>
|
<td><?php echo $record->ReqNo ?></td>
|
||||||
<td><?php echo $record->MaterialCode ?></td>
|
<td><?php echo $record->MaterialCode ?></td>
|
||||||
@ -4097,6 +4098,7 @@ return tot;
|
|||||||
<div id="newdiv"></div>
|
<div id="newdiv"></div>
|
||||||
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
||||||
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
|
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
|
||||||
|
<input type ="hidden" name ="hiddenIGRNO" id="hiddenIGRNO" value ="<?php echo $IGRNO;?>" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<thead style="background-color:#ddf">
|
<thead style="background-color:#ddf">
|
||||||
@ -4121,7 +4123,7 @@ return tot;
|
|||||||
<td><?php echo $gd->BillNo ?></td>
|
<td><?php echo $gd->BillNo ?></td>
|
||||||
|
|
||||||
<td ><?php echo (!empty($gd->FilePath))?$gd->FilePath:"No File"; ?></td>
|
<td ><?php echo (!empty($gd->FilePath))?$gd->FilePath:"No File"; ?></td>
|
||||||
<input type="hidden" id="hiddenigrno" value="<?= $gd->IGRNO?>">
|
<!-- <input type="hidden" id="hiddenigrno" value="<?php $gd->IGRNO?>"> -->
|
||||||
<input type="hidden" id="billnos<?=$index?>" value="<?= $gd->BillNo?>">
|
<input type="hidden" id="billnos<?=$index?>" value="<?= $gd->BillNo?>">
|
||||||
<input type="hidden" id="file<?=$index?>" name ='file' value="<?=$gd->FilePath?>">
|
<input type="hidden" id="file<?=$index?>" name ='file' value="<?=$gd->FilePath?>">
|
||||||
|
|
||||||
@ -5713,8 +5715,9 @@ return tot;
|
|||||||
// console.log(file);
|
// console.log(file);
|
||||||
|
|
||||||
var PONO =$('#txtPONO').val();
|
var PONO =$('#txtPONO').val();
|
||||||
var igr =$('#hiddenigrno').val();
|
var igr =$('#hiddenIGRNO').val();
|
||||||
//alert(igr);
|
|
||||||
|
|
||||||
formData.append('file',file);
|
formData.append('file',file);
|
||||||
formData.append('PONO',PONO);
|
formData.append('PONO',PONO);
|
||||||
formData.append('count',counter);
|
formData.append('count',counter);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user