Coupons BKO added

This commit is contained in:
dev-chiefworks
2022-05-31 12:33:22 -04:00
parent 9852255fff
commit 0b5f3d03d5
5 changed files with 229 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
class Coupons_model extends CI_Model {
function __construct() {
}
public function loadCoupons($filters=[]) {
$sql = "SELECT id , code,amount, description,created , active , updated from coupons ORDER BY id DESC";
$q = $this->db->query($sql);
return $q->result();
}
}