production issue ogr
This commit is contained in:
parent
fbbda5bb78
commit
2eb2a523ca
@ -495,7 +495,7 @@ class inwardgateregister extends BaseController
|
|||||||
$totalReceivedqty = $ReceivedQuantity - $Outwardtotal;
|
$totalReceivedqty = $ReceivedQuantity - $Outwardtotal;
|
||||||
$POMStatus=OGR_CREATED;
|
$POMStatus=OGR_CREATED;
|
||||||
|
|
||||||
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty,'OGR_Status'=>$POMStatus);
|
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty);
|
||||||
|
|
||||||
$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,OGR_Status');
|
$this->db->select('POM.PONO,POM.ServiceDescription,POM.DeliveryDate,sup.SupplierName,sup.Address,POM.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');
|
||||||
|
|||||||
@ -493,7 +493,7 @@ $('<input>').attr({
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if((status == '<?php echo IGR_CREATED ?>' || status == '<?php echo MRIR_CREATED ?>' || status == '<?php echo MRIR_APPROVED ?>') && ostatus != '<?php echo OGR_CREATED; ?>' )
|
if((status == '<?php echo IGR_CREATED ?>' || status == '<?php echo MRIR_CREATED ?>' || status == '<?php echo MRIR_APPROVED ?>'))
|
||||||
{
|
{
|
||||||
alert('The Order is completed!!');
|
alert('The Order is completed!!');
|
||||||
$("#IGRLink").hide();
|
$("#IGRLink").hide();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user