Merge branch 'hotspotbilling:Development' into Development

This commit is contained in:
Ahmad Husein 2024-08-16 17:36:14 +07:00 committed by GitHub
commit edae267a39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -758,7 +758,7 @@ switch ($action) {
}
$code = Text::alphanumeric(_post('code'), "-_.,");
$user = ORM::for_table('tbl_customers')->where('id', _post('id_customer'))->find_one();
$v1 = ORM::for_table('tbl_voucher')->whereRaw("BINARY `code` = '?'", [$code])->where('status', 0)->find_one();
$v1 = ORM::for_table('tbl_voucher')->whereRaw("BINARY `code` = '$code'")->where('status', 0)->find_one();
run_hook('refill_customer'); #HOOK
if ($v1) {