This commit is contained in:
venbatechnologies@gmail.com 2018-04-13 18:37:49 +05:30
parent 2eb2a523ca
commit 00666a78e4
3 changed files with 31 additions and 25 deletions

View File

@ -495,7 +495,7 @@ class inwardgateregister extends BaseController
$totalReceivedqty = $ReceivedQuantity - $Outwardtotal;
$POMStatus=OGR_CREATED;
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty);
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty,'OGR_Status'=>$POMStatus);
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem,$pono,$MaterialCode);

View File

@ -34,7 +34,7 @@ class inwardgateregister_model extends CI_Model
function getpurchaseorder()
{
$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->join('T_PurchaseOrder_LineItem POL', 'POL.PONO = POM.PONO');
$this->db->join('T_SupplierDetailsN sup', 'POM.SupplierID = sup.SupplierID');

View File

@ -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-offset-4">
<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>
@ -574,6 +574,7 @@ function isNumberKey(evt)
return true;
}
function Save()
{
//alert("save function worked ");
@ -614,6 +615,9 @@ function Save()
$('#IGR').submit();
}//validate if closed
}//save function closed
function filecheck()
{
var myfile = $('#myfile').val();
@ -622,22 +626,24 @@ function filecheck()
alert('File not Found');
Save();
}
}
function filealert()
{
else
{
var sizef = document.getElementById('myfile').files[0].size;
var myfile = $('#myfile').val();
if(myfile!='' && sizef < 2100000)
{
alert('Your file added successfully');
Save();
}
else
{
alert('Sorry Your File is Large To 2MB');
$('#myfile').val('');
}
}
}
</script>