PO Number format change
This commit is contained in:
parent
395a326c96
commit
a167920a60
@ -464,7 +464,7 @@ function GetPOType($ReqNo)
|
|||||||
* This function is used to add New Purchase order to the system
|
* This function is used to add New Purchase order to the system
|
||||||
|
|
||||||
*/
|
*/
|
||||||
function addPOMaster($POMaster)
|
function addPOMaster($POMaster,$POType,$POSubtype)
|
||||||
{
|
{
|
||||||
$this->db->trans_start();
|
$this->db->trans_start();
|
||||||
$this->db->insert('T_PurchaseOrder_Master', $POMaster);
|
$this->db->insert('T_PurchaseOrder_Master', $POMaster);
|
||||||
@ -473,9 +473,9 @@ 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';
|
$subQuery = 'select max(PONO) as PONO from T_PurchaseOrder_Master where POType=? and POSubType=?';
|
||||||
|
|
||||||
$query = $this->db->query($subQuery);
|
$query = $this->db->query($subQuery,array($POType,$POSubtype));
|
||||||
|
|
||||||
return $query->result_array();
|
return $query->result_array();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user