Invoicing - bug: fix not being able to add tickets to invoice; feature: add ability to remove tickets from invoice

This commit is contained in:
Wrongecho
2026-09-11 11:56:40 +00:00
parent f558414346
commit cb262139ae
3 changed files with 43 additions and 7 deletions

View File

@@ -44,8 +44,16 @@
</a>
</td>
<td><?= $ticket_subject ?></td>
<td><a href='ticket.php?ticket_id=<?= $ticket_id ?>&invoice_id=<?= $invoice_id ?>#addInvoiceFromTicketModal'>
<i class="fas fa-fw fa-plus-circle"></i></td>
<td>
<form action="post.php" method="post">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="invoice_id" value="<?= $invoice_id ?>">
<input type="hidden" name="ticket_id" value="<?= $ticket_id ?>">
<button class="btn btn-link p-0" type="submit" name="add_ticket_to_invoice" title="Add ticket to invoice">
<i class="fas fa-fw fa-plus-circle"></i>
</button>
</form>
</td>
</tr>
<?php } ?>
</table>