code to code

This commit is contained in:
iBNu Maksum
2024-10-15 16:10:08 +07:00
parent 70bcff7679
commit 064e4c80ed
5 changed files with 55 additions and 7 deletions

View File

@ -760,7 +760,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) {