mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Add Option if visiting a deleted invoice / recurring to return to the listing page and added delete to invoice details page
This commit is contained in:
@@ -21,6 +21,18 @@ if (isset($_GET['recurring_invoice_id'])) {
|
||||
WHERE recurring_invoice_id = $recurring_invoice_id LIMIT 1"
|
||||
);
|
||||
|
||||
if (mysqli_num_rows($sql) == 0) {
|
||||
if (isset($_GET['client_id'])) {
|
||||
$backlink_append = "?client_id=$client_id";
|
||||
} else {
|
||||
$backlink_append = '';
|
||||
}
|
||||
echo "<h1 class='text-secondary pt-5' style='text-align: center'>There is no Recurring Invoice here<br><small><a href='recurring_invoices.php$backlink_append'><i class='fas fa-arrow-left mr-2'></i>Back to Recurring Invoices</a></small></h1>";
|
||||
require_once "includes/footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
$row = mysqli_fetch_array($sql);
|
||||
$recurring_invoice_prefix = nullable_htmlentities($row['recurring_invoice_prefix']);
|
||||
$recurring_invoice_number = intval($row['recurring_invoice_number']);
|
||||
|
||||
Reference in New Issue
Block a user