Fix variable customer

This commit is contained in:
Ibnu Maksum 2024-02-23 14:57:00 +07:00
parent c4fb99479b
commit db49d0f4b5
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -145,9 +145,9 @@ switch ($action) {
$in = ORM::for_table('tbl_transactions')->where('id', $id)->find_one();
$ui->assign('in', $in);
if (!empty($routes['3']) && $routes['3'] == 'send') {
$c = ORM::for_table('tbl_customers')->where('username', $d['username'])->find_one();
$c = ORM::for_table('tbl_customers')->where('username', $in['username'])->find_one();
if ($c) {
Message::sendInvoice($c, $d);
Message::sendInvoice($c, $in);
r2(U . 'prepaid/view/' . $id, 's', "Success send to customer");
}
r2(U . 'prepaid/view/' . $id, 'd', "Customer not found");