Service Qty update and MRIR status update issue fixed
This commit is contained in:
parent
a7090af82d
commit
1eff1e4a01
@ -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)
|
||||
|
||||
@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user