Allow invoicing a closed ticket

This commit is contained in:
johnnyq 2022-04-02 20:07:36 -04:00
parent 84087fde2f
commit 3a872ae433
1 changed files with 4 additions and 8 deletions

View File

@ -576,21 +576,17 @@ if(isset($_GET['ticket_id'])){
</div>
</form>
<?php
if($ticket_status !== "Closed"){
?>
<div class="card card-body card-outline card-dark mb-2">
<div class="">
<a href="#" class="btn btn-outline-success btn-block" href="#" data-toggle="modal" data-target="#addInvoiceFromTicketModal">INVOICE</a>
<?php
if($ticket_status !== "Closed"){
?>
<a href="post.php?close_ticket=<?php echo $ticket_id; ?>" class="btn btn-outline-danger btn-block">CLOSE TICKET</a>
<?php } ?>
</div>
</div>
<?php
}
?>
</div>
</div>