aboutsummaryrefslogtreecommitdiff
path: root/include/offers.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 17:14:55 +0200
committerCamil Staps2016-07-27 17:14:55 +0200
commitd6e0bc8728e90e90504b98bc115aeabfdc6335bf (patch)
tree6d6c59c9b5721ea083e31d0ebebc4455a64fe182 /include/offers.php
parentDocument Model (diff)
File: use Model
Diffstat (limited to 'include/offers.php')
-rw-r--r--include/offers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/offers.php b/include/offers.php
index 7208ee6..b7c00b0 100644
--- a/include/offers.php
+++ b/include/offers.php
@@ -89,7 +89,7 @@ require('./header.php');
try {
$offer = new Offer($_pdo, $id);
$file = $offer->generateInvoice();
- echo "<div class='alert alert-success alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The invoice for offer #{$offer->getId()} is generated: <a class='alert-link' href='{$file->getFilenameURI()}' target='_blank'>{$file->getFilename()}</a></div>";
+ echo "<div class='alert alert-success alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The invoice for offer #{$offer->getId()} is generated: <a class='alert-link' href='{$file->getFilenameURI()}' target='_blank'>{$file->filename}</a></div>";
} catch (PDOException $e) {
echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The invoice for offer #{$offer->getId()} could not be generated due to a PDO error.</div>";
} catch (Exception $e) {