mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
Fix Invoice Print
This commit is contained in:
parent
e4e70c5104
commit
da1341d971
3 changed files with 107 additions and 79 deletions
|
@ -228,11 +228,13 @@ switch ($action) {
|
|||
$ui->assign('content', $content);
|
||||
} else {
|
||||
$id = _post('id');
|
||||
if(empty($id)) {
|
||||
$id = $routes['2'];
|
||||
}
|
||||
$d = ORM::for_table('tbl_transactions')->where('id', $id)->find_one();
|
||||
$ui->assign('in', $d);
|
||||
$ui->assign('date', Lang::dateAndTimeFormat($d['recharged_on'], $d['recharged_time']));
|
||||
}
|
||||
|
||||
run_hook('print_invoice'); #HOOK
|
||||
$ui->display('invoice-print.tpl');
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue