mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-30 13:14:23 +02:00
Fix variable customer
This commit is contained in:
parent
c4fb99479b
commit
db49d0f4b5
1 changed files with 2 additions and 2 deletions
|
@ -145,9 +145,9 @@ switch ($action) {
|
||||||
$in = ORM::for_table('tbl_transactions')->where('id', $id)->find_one();
|
$in = ORM::for_table('tbl_transactions')->where('id', $id)->find_one();
|
||||||
$ui->assign('in', $in);
|
$ui->assign('in', $in);
|
||||||
if (!empty($routes['3']) && $routes['3'] == 'send') {
|
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) {
|
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, 's', "Success send to customer");
|
||||||
}
|
}
|
||||||
r2(U . 'prepaid/view/' . $id, 'd', "Customer not found");
|
r2(U . 'prepaid/view/' . $id, 'd', "Customer not found");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue