don't put to tbl_transactions if customer redeem voucher code Created by Voucher Device

This commit is contained in:
Ibnu Maksum
2024-08-08 14:58:04 +07:00
parent 9ad9ba45b1
commit 630f20094a
2 changed files with 67 additions and 53 deletions

View File

@ -196,6 +196,11 @@ class User
return $d;
}
public static function isUserVoucher($kode) {
$regex = '/^GC\d+C.{10}$/';
return preg_match($regex, $kode);
}
public static function _billing($id = 0)
{
if (!$id) {