diff options
author | Camil Staps | 2016-08-01 12:25:46 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 12:25:46 +0200 |
commit | 8349ec2938f40b0a69b71f5ae9dad2b7bf23d661 (patch) | |
tree | b5211a4bfab92c09a9cf27238f70dd70355c4316 /include/offers-overview.php | |
parent | Error when sending email when invoice is not generated yet (diff) |
Generate invoice from detailed offer view
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r-- | include/offers-overview.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php index 65aea29..090a036 100644 --- a/include/offers-overview.php +++ b/include/offers-overview.php @@ -73,11 +73,11 @@ require_once(__DIR__ . '/../login.php'); </table> </td> <td class='col-min-width'>" - . (($invoiceFile instanceof file) + . ((!is_null($invoiceFile)) ? "<a title='View' href='{$invoiceFile->getFilenameURI()}' target='_blank' class='btn btn-default btn-circle fa fa-eye'></a> <a title='Regenerate' href='?generate_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-refresh'></a> <a title='Trash' href='?trash_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-trash'></a>" - : "<a title='Create invoice' href='?generate_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-calculator'></a>") + : "<a title='Generate invoice' href='?generate_invoice={$offer->id}' class='btn btn-default btn-circle fa fa-calculator'></a>") . "<br/> <table> <tr> |