Work Order #<%= workOrder.workOrderNumber %>

<% if (workOrder.workOrderCloseDate) { %> CLOSED
<% } %> <%= workOrder.workOrderType %>

Description
<%= workOrder.workOrderDescription %>

<%= configFunctions.getProperty("aliases.workOrderOpenDate") %>
<%= workOrder.workOrderOpenDateString %>

<% if (workOrder.workOrderCloseDate) { %>

<%= configFunctions.getProperty("aliases.workOrderCloseDate") %>
<%= workOrder.workOrderCloseDateString %>

<% } %>

Comments

<% if (workOrder.workOrderComments.length === 0) { %>

There are no comments associated with this work order.

<% } else { %> <% for (const comment of workOrder.workOrderComments) { %> <% } %>
Commentor Comment Time Comment
<%= comment.recordUpdate_userName %> <%= comment.workOrderCommentDateString %> <%= comment.workOrderCommentTimeString %> <%= comment.workOrderComment %>
<% } %>

<% const recordCreateDate = new Date(workOrder.recordCreate_timeMillis); const currentDate = new Date(); %> Work order created <%= dateTimeFunctions.dateToString(recordCreateDate) %> at <%= dateTimeFunctions.dateToTimeString(recordCreateDate) %>. Printed <%= dateTimeFunctions.dateToString(currentDate) %> at <%= dateTimeFunctions.dateToTimeString(currentDate) %>.
workOrderId = <%= workOrder.workOrderId %>