mirror of
https://github.com/itflow-org/itflow
synced 2026-03-27 07:45:37 +00:00
Accounting module disable ticket billable options
This commit is contained in:
12
ticket.php
12
ticket.php
@@ -638,7 +638,7 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if (!empty($ticket_billable)) { ?>
|
<?php if ($config_module_enable_accounting) { ?>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<i class="fa fa-fw fa-dollar-sign text-secondary ml-1 mr-2"></i>Billable:
|
<i class="fa fa-fw fa-dollar-sign text-secondary ml-1 mr-2"></i>Billable:
|
||||||
<a href="#" data-toggle="modal" data-target="#editTicketBillableModal<?php echo $ticket_id; ?>">
|
<a href="#" data-toggle="modal" data-target="#editTicketBillableModal<?php echo $ticket_id; ?>">
|
||||||
@@ -830,7 +830,7 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="card card-body card-outline card-dark mb-2">
|
<div class="card card-body card-outline card-dark mb-2">
|
||||||
<?php if ($config_module_enable_accounting) { ?>
|
<?php if ($config_module_enable_accounting && $ticket_billable == 1) { ?>
|
||||||
<a href="#" class="btn btn-info btn-block" href="#" data-toggle="modal" data-target="#addInvoiceFromTicketModal">
|
<a href="#" class="btn btn-info btn-block" href="#" data-toggle="modal" data-target="#addInvoiceFromTicketModal">
|
||||||
<i class="fas fa-fw fa-file-invoice mr-2"></i>Invoice Ticket
|
<i class="fas fa-fw fa-file-invoice mr-2"></i>Invoice Ticket
|
||||||
</a>
|
</a>
|
||||||
@@ -864,10 +864,10 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
|
|
||||||
require_once "ticket_merge_modal.php";
|
require_once "ticket_merge_modal.php";
|
||||||
|
|
||||||
require_once "ticket_invoice_add_modal.php";
|
if ($config_module_enabled_accounting) {
|
||||||
|
require_once "ticket_edit_billable_modal.php";
|
||||||
require_once "ticket_edit_billable_modal.php";
|
require_once "ticket_invoice_add_modal.php";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php if ($config_module_enabled_accounting) {
|
||||||
|
?>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Billable</label>
|
<label>Billable</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
@@ -73,8 +75,9 @@
|
|||||||
<option <?php if ($ticket_billable == 0) { echo "selected"; } ?> value="0">No</option>
|
<option <?php if ($ticket_billable == 0) { echo "selected"; } ?> value="0">No</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
44
tickets.php
44
tickets.php
@@ -243,30 +243,36 @@ $user_active_assigned_tickets = intval($row['total_tickets_assigned']);
|
|||||||
} ?>">
|
} ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th><a class="text-dark"
|
<th><a class="text-dark"
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_number&order=<?php echo $disp; ?>">Number</a>
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_number&order=<?php echo $disp; ?>">Number</a>
|
||||||
</th>
|
</th>
|
||||||
<th><a class="text-dark"
|
<th><a class="text-dark"
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_subject&order=<?php echo $disp; ?>">Subject</a>
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_subject&order=<?php echo $disp; ?>">Subject</a>
|
||||||
</th>
|
</th>
|
||||||
<th><a class="text-dark"
|
<th><a class="text-dark"
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=client_name&order=<?php echo $disp; ?>">Client / Contact</a>
|
href="?<?php echo $url_query_strings_sort; ?>&sort=client_name&order=<?php echo $disp; ?>">Client / Contact</a>
|
||||||
|
</th>
|
||||||
|
<?php if ($config_module_enabled_accounting) {
|
||||||
|
?>
|
||||||
|
<th class="text-center"><a class="text-dark"
|
||||||
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_billable&order=<?php echo $disp; ?>">Billable</a>
|
||||||
|
</th>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<th><a class="text-dark"
|
||||||
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_priority&order=<?php echo $disp; ?>">Priority</a>
|
||||||
</th>
|
</th>
|
||||||
<th><a class="text-dark"
|
<th><a class="text-dark"
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_billable&order=<?php echo $disp; ?>">Billable</a>
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_status&order=<?php echo $disp; ?>">Status</a>
|
||||||
|
<th><a class="text-dark"
|
||||||
|
href="?<?php echo $url_query_strings_sort; ?>&sort=user_name&order=<?php echo $disp; ?>">Assigned</a>
|
||||||
</th>
|
</th>
|
||||||
<th><a class="text-dark"
|
<th><a class="text-dark"
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_priority&order=<?php echo $disp; ?>">Priority</a>
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_updated_at&order=<?php echo $disp; ?>">Last Response</a>
|
||||||
</th>
|
</th>
|
||||||
<th><a class="text-dark"
|
<th><a class="text-dark"
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_status&order=<?php echo $disp; ?>">Status</a>
|
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_created_at&order=<?php echo $disp; ?>">Created</a>
|
||||||
<th><a class="text-dark"
|
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=user_name&order=<?php echo $disp; ?>">Assigned</a>
|
|
||||||
</th>
|
|
||||||
<th><a class="text-dark"
|
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_updated_at&order=<?php echo $disp; ?>">Last Response</a>
|
|
||||||
</th>
|
|
||||||
<th><a class="text-dark"
|
|
||||||
href="?<?php echo $url_query_strings_sort; ?>&sort=ticket_created_at&order=<?php echo $disp; ?>">Created</a>
|
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@@ -361,6 +367,8 @@ $user_active_assigned_tickets = intval($row['total_tickets_assigned']);
|
|||||||
|
|
||||||
<div class="mt-1"><?php echo $contact_display; ?></div>
|
<div class="mt-1"><?php echo $contact_display; ?></div>
|
||||||
</td>
|
</td>
|
||||||
|
<?php if ($config_module_enabled_accounting) {
|
||||||
|
?>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<a href="#" data-toggle="modal" data-target="#editTicketBillableModal<?php echo $ticket_id; ?>">
|
<a href="#" data-toggle="modal" data-target="#editTicketBillableModal<?php echo $ticket_id; ?>">
|
||||||
<?php
|
<?php
|
||||||
@@ -370,6 +378,9 @@ $user_active_assigned_tickets = intval($row['total_tickets_assigned']);
|
|||||||
echo "<span class='badge badge-pill badge-secondary'>X</span>";
|
echo "<span class='badge badge-pill badge-secondary'>X</span>";
|
||||||
}
|
}
|
||||||
?></td>
|
?></td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
<td><a href="#" data-toggle="modal" data-target="#editTicketPriorityModal<?php echo $ticket_id; ?>"><span class='p-2 badge badge-pill badge-<?php echo $ticket_priority_color; ?>'><?php echo $ticket_priority; ?></span></a></td>
|
<td><a href="#" data-toggle="modal" data-target="#editTicketPriorityModal<?php echo $ticket_id; ?>"><span class='p-2 badge badge-pill badge-<?php echo $ticket_priority_color; ?>'><?php echo $ticket_priority; ?></span></a></td>
|
||||||
<td><span class='p-2 badge badge-pill badge-<?php echo $ticket_status_color; ?>'><?php echo $ticket_status; ?></span></td>
|
<td><span class='p-2 badge badge-pill badge-<?php echo $ticket_status_color; ?>'><?php echo $ticket_status; ?></span></td>
|
||||||
<td><a href="#" data-toggle="modal" data-target="#assignTicketModal<?php echo $ticket_id; ?>"><?php echo $ticket_assigned_to_display; ?></a></td>
|
<td><a href="#" data-toggle="modal" data-target="#assignTicketModal<?php echo $ticket_id; ?>"><?php echo $ticket_assigned_to_display; ?></a></td>
|
||||||
@@ -390,7 +401,10 @@ $user_active_assigned_tickets = intval($row['total_tickets_assigned']);
|
|||||||
|
|
||||||
require "ticket_edit_priority_modal.php";
|
require "ticket_edit_priority_modal.php";
|
||||||
|
|
||||||
require "ticket_edit_billable_modal.php";
|
|
||||||
|
if ($config_module_enabled_accounting) {
|
||||||
|
require "ticket_edit_billable_modal.php";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user