mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Print a ticket as a work order and an asset as a spec sheet: Print Work Order in the ticket menu, or the browser print, gives the letterhead, who and where with access notes, the job details, assets, description, client-visible fill-ins, tasks as boxes to tick, public replies oldest first and a sign-off with times, work done lines and signatures, never internal notes; the asset print button beside Copy Details gives its hardware, network, location and assignee, interfaces, devices in it, licenses, services and quick notes with a QR code that opens it, never credentials or license keys; both print black on white in either theme and the ticket menu now shows for every agent; 26.12.3 changelog entries
This commit is contained in:
@@ -583,9 +583,9 @@ if (isset($_GET['ticket_id'])) {
|
||||
<!--
|
||||
One primary action for the stage the ticket is at. Billing and
|
||||
the rarer actions live in the menu; Invoice comes out of it once
|
||||
the work is done, which is when it is actually wanted.
|
||||
the work is done, which is when it is actually wanted. The menu is
|
||||
there for everyone: it prints the work order.
|
||||
-->
|
||||
<?php if ($can_edit_ticket || $ai_summary_available || $show_trips || $kb_write_up_available) { ?>
|
||||
<div class="ticket-actions d-flex flex-wrap align-items-center gap-2 d-print-none">
|
||||
|
||||
<?php if ($can_edit_ticket && $ticket_is_open) { ?>
|
||||
@@ -646,6 +646,12 @@ if (isset($_GET['ticket_id'])) {
|
||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-end">
|
||||
<button type="button" class="dropdown-item" data-print-page title="The ticket as a work order: who, where, the job, its tasks and public replies, and lines to sign it off">
|
||||
<i class="fas fa-fw fa-print me-2"></i>Print Work Order
|
||||
</button>
|
||||
<?php if ($ai_summary_available || $ai_triage_available || $ai_document_available || $kb_write_up_available || $show_trips || $can_edit_ticket) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php } ?>
|
||||
<?php if ($ai_summary_available) { ?>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket/ticket_summary.php?ticket_id=<?= $ticket_id ?>" data-modal-size="lg">
|
||||
<i class="fas fa-fw fa-magic me-2"></i>Summarize with AI
|
||||
@@ -722,7 +728,6 @@ if (isset($_GET['ticket_id'])) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -2114,6 +2119,9 @@ if (isset($_GET['ticket_id'])) {
|
||||
|
||||
</div> <!-- End ticket-layout -->
|
||||
|
||||
<!-- What prints - the work order, in place of the page (functions/print_sheet.php) -->
|
||||
<?= ticketWorkOrderHtml($ticket, $purifier, $ticket_reply_rows) ?>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user