Service Qty update and MRIR status update issue fixed

This commit is contained in:
gandhimathi Bharathirajan 2017-08-16 18:05:43 +05:30
parent a7090af82d
commit 1eff1e4a01
2 changed files with 15 additions and 0 deletions

View File

@ -301,11 +301,17 @@ TMD.QuantityRejected,ST.StatusName,TMD.Remarks,AdvanceAmount ');
}
function UpdatePOLineItem($LineItem,$PONO,$MaterialCode)
{
$subQuery = 'select * from T_PurchaseOrder_LineItem where Quantity = ReceivedQuantity and PONO=?';
$query = $this->db->query($subQuery,array($PONO));
if($query->num_rows > 0)
{
$this->db->where('PONO', $PONO);
$this->db->where('MaterialCode', $MaterialCode);
$this->db->update('T_PurchaseOrder_LineItem', $LineItem);
return TRUE;
}
}
function UpdatePOMaster($PONO,$PoMrirStatus,$updatedBy)

View File

@ -1558,4 +1558,13 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
$this->db->update('T_PurchaseOrder_LineItem Item JOIN T_Requestion_Details Req ON Item.ReqNo= Req.ReqNo');
return TRUE;
}
function UpdateReceivedQtyforServicePO($PONO)
{
$subQuery = 'update T_PurchaseOrder_LineItem
set ReceivedQuantity=Quantity, status=? where PONO=?';
$query = $this->db->query($subQuery,array(PO_SERVICE_COMPLETED,$PONO));
}
}