Issue Fixed
This commit is contained in:
parent
f0cd878ab6
commit
8954f14482
@ -270,6 +270,32 @@ function ViewDistributionList()
|
||||
{
|
||||
|
||||
}
|
||||
function UpdatePOLineItem($LineItem,$PONO,$MaterialCode)
|
||||
{
|
||||
$this->db->where('PONO', $PONO);
|
||||
$this->db->where('MaterialCode', $MaterialCode);
|
||||
$this->db->update('T_PurchaseOrder_LineItem', $LineItem);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function UpdatePOMaster($PONO,$updatedBy)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('T_PurchaseOrder_LineItem');
|
||||
$this->db->where('PONO',$PONO);
|
||||
$this->db->where('Status !=',MRIR_APPROVED);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
|
||||
if ($query->num_rows == 0) {
|
||||
$this->db->where('PONO', $PONO);
|
||||
$POStatus = array('status'=>MRIR_APPROVED,'UpdateBY'=>$updatedBy);
|
||||
$this->db->update('T_PurchaseOrder_Master', $POStatus);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user