Skip to content
Snippets Groups Projects
Commit 8a511051 authored by Peter Rotich's avatar Peter Rotich
Browse files

Show estimated duedate on ticket view/preview/print.

parent bfcd3c46
No related branches found
No related tags found
No related merge requests found
......@@ -301,13 +301,13 @@ class TicketsAjaxAPI extends AjaxController {
Format::db_datetime($ticket->getCloseDate()),
($staff?$staff->getName():'staff')
);
} elseif($ticket->getDueDate()) {
} elseif($ticket->getEstDueDate()) {
echo sprintf('
<tr>
<th>Due Date:</th>
<td>%s</td>
</tr>',
Format::db_datetime($ticket->getDueDate()));
Format::db_datetime($ticket->getEstDueDate()));
}
echo '</table>';
......
......@@ -189,7 +189,7 @@ class Ticket2PDF extends FPDF
if($ticket->isOpen()) {
$this->Cell($l, 7, 'Due Date', 1, 0, 'L', true);
$this->SetFont('');
$this->Cell($c, 7, Format::db_datetime($ticket->getDueDate()), 1, 0, 'L', true);
$this->Cell($c, 7, Format::db_datetime($ticket->getEstDueDate()), 1, 0, 'L', true);
} else {
$this->Cell($l, 7, 'Close Date', 1, 0, 'L', true);
$this->SetFont('');
......
......@@ -220,7 +220,7 @@ if($ticket->isOverdue())
if($ticket->isOpen()){ ?>
<tr>
<th>Due Date:</th>
<td><?php echo Format::db_datetime($ticket->getDueDate()); ?></td>
<td><?php echo Format::db_datetime($ticket->getEstDueDate()); ?></td>
</tr>
<?php
}else { ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment