Allow associating a quote with a ticket

This commit is contained in:
wrongecho
2026-03-02 10:54:44 +00:00
parent 795144b288
commit dee5085f4a
6 changed files with 346 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ if ($ticket_assigned_to) {
$ticket_assigned_agent = '';
}
$ticket_quote_id = intval($row['ticket_quote_id']);
$contact_id = intval($row['contact_id']);
$contact_name = nullable_htmlentities($row['contact_name']);
@@ -91,6 +93,12 @@ ob_start();
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id; ?>">
<div class="modal-body">
<?php if ($ticket_quote_id > 0) { ?>
<div class="alert alert-warning" role="alert">
<a href="quote.php?quote_id=<?=$ticket_quote_id?>">View quote?</a>
</div>
<?php } ?>
<?php if (mysqli_num_rows($sql_invoices) > 0) { ?>
<ul class="nav nav-pills nav-justified mb-3">