ogr
This commit is contained in:
parent
2eb2a523ca
commit
00666a78e4
@ -495,7 +495,7 @@ class inwardgateregister extends BaseController
|
|||||||
$totalReceivedqty = $ReceivedQuantity - $Outwardtotal;
|
$totalReceivedqty = $ReceivedQuantity - $Outwardtotal;
|
||||||
$POMStatus=OGR_CREATED;
|
$POMStatus=OGR_CREATED;
|
||||||
|
|
||||||
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty);
|
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty,'OGR_Status'=>$POMStatus);
|
||||||
|
|
||||||
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem,$pono,$MaterialCode);
|
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem,$pono,$MaterialCode);
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ class inwardgateregister_model extends CI_Model
|
|||||||
function getpurchaseorder()
|
function getpurchaseorder()
|
||||||
{
|
{
|
||||||
$this->db->distinct();
|
$this->db->distinct();
|
||||||
$this->db->select('POM.PONO,POM.ServiceDescription,POM.DeliveryDate,sup.SupplierName,sup.Address,POM.status');
|
$this->db->select('POM.PONO,POM.ServiceDescription,POM.DeliveryDate,sup.SupplierName,sup.Address,POM.status,OGR_Status');
|
||||||
$this->db->from('T_PurchaseOrder_Master POM');
|
$this->db->from('T_PurchaseOrder_Master POM');
|
||||||
$this->db->join('T_PurchaseOrder_LineItem POL', 'POL.PONO = POM.PONO');
|
$this->db->join('T_PurchaseOrder_LineItem POL', 'POL.PONO = POM.PONO');
|
||||||
$this->db->join('T_SupplierDetailsN sup', 'POM.SupplierID = sup.SupplierID');
|
$this->db->join('T_SupplierDetailsN sup', 'POM.SupplierID = sup.SupplierID');
|
||||||
|
|||||||
@ -142,7 +142,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-offset-4">
|
<div class="col-md-offset-4">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<input type="file" accept=".png,.jpg,.pdf" onchange="filealert();" id="myfile" name="myfile" />
|
<input type="file" accept=".png,.jpg,.pdf" id="myfile" name="myfile" />
|
||||||
|
|
||||||
|
|
||||||
<label for="photo">Select File to upload<br/></label>
|
<label for="photo">Select File to upload<br/></label>
|
||||||
@ -574,6 +574,7 @@ function isNumberKey(evt)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Save()
|
function Save()
|
||||||
{
|
{
|
||||||
//alert("save function worked ");
|
//alert("save function worked ");
|
||||||
@ -614,6 +615,9 @@ function Save()
|
|||||||
$('#IGR').submit();
|
$('#IGR').submit();
|
||||||
}//validate if closed
|
}//validate if closed
|
||||||
}//save function closed
|
}//save function closed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function filecheck()
|
function filecheck()
|
||||||
{
|
{
|
||||||
var myfile = $('#myfile').val();
|
var myfile = $('#myfile').val();
|
||||||
@ -622,22 +626,24 @@ function filecheck()
|
|||||||
alert('File not Found');
|
alert('File not Found');
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
}
|
{
|
||||||
function filealert()
|
|
||||||
{
|
|
||||||
var sizef = document.getElementById('myfile').files[0].size;
|
var sizef = document.getElementById('myfile').files[0].size;
|
||||||
var myfile = $('#myfile').val();
|
var myfile = $('#myfile').val();
|
||||||
if(myfile!='' && sizef < 2100000)
|
if(myfile!='' && sizef < 2100000)
|
||||||
{
|
{
|
||||||
alert('Your file added successfully');
|
alert('Your file added successfully');
|
||||||
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Sorry Your File is Large To 2MB');
|
alert('Sorry Your File is Large To 2MB');
|
||||||
$('#myfile').val('');
|
$('#myfile').val('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user