mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-04 13:54:51 -04:00
Add giftcard number autogeneration
This commit is contained in:
@@ -13,6 +13,13 @@ class Giftcard extends CI_Model
|
||||
|
||||
return ($query->num_rows()==1);
|
||||
}
|
||||
|
||||
function get_max_number ( )
|
||||
{
|
||||
$this->db->select_max('giftcard_number');
|
||||
$query = $this->db->get('giftcards');
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
/*
|
||||
Returns all the giftcards
|
||||
|
||||
Reference in New Issue
Block a user