trigger creation model one line added
This commit is contained in:
parent
612b37baa3
commit
b40b401646
@ -565,8 +565,8 @@ function GetPOType($ReqNo)
|
|||||||
// print_r($this->db->last_query());
|
// print_r($this->db->last_query());
|
||||||
if($insert_id>0)
|
if($insert_id>0)
|
||||||
{
|
{
|
||||||
$subQuery = 'select max(PONO) as PONO from T_PurchaseOrder_Master where POType=? and POSubType=?';
|
//$subQuery = 'select max(PONO) as PONO from T_PurchaseOrder_Master where POType=? and POSubType=?';
|
||||||
|
$subQuery = 'select PONO from T_PurchaseOrder_Master where POType=? and POSubType=? order by CreatedDate desc limit 1';
|
||||||
$query = $this->db->query($subQuery,array($POType,$POSubtype));
|
$query = $this->db->query($subQuery,array($POType,$POSubtype));
|
||||||
|
|
||||||
return $query->result_array();
|
return $query->result_array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user