diff --git a/views/print/pdf/ssm.cemetery.burialPermit.ejs b/views/print/pdf/ssm.cemetery.burialPermit.ejs index eb721815..dac4e301 100644 --- a/views/print/pdf/ssm.cemetery.burialPermit.ejs +++ b/views/print/pdf/ssm.cemetery.burialPermit.ejs @@ -10,9 +10,10 @@ %> - + Burial Permit +

Province of Ontario

diff --git a/views/print/pdf/ssm.cemetery.contract.ejs b/views/print/pdf/ssm.cemetery.contract.ejs index e8b859f1..03b40c89 100644 --- a/views/print/pdf/ssm.cemetery.contract.ejs +++ b/views/print/pdf/ssm.cemetery.contract.ejs @@ -28,6 +28,7 @@ %> + Contract for the Purchase of Interment Rights or Cemetery Services - - - <%- include('_workOrder-header.ejs'); %> - - <% if (workOrder.workOrderLots.length > 0) { %> -

<%= configFunctions.getConfigProperty("aliases.lots") %>

+ + Work Order #<%= workOrder.workOrderNumber %> + + + + <%- include('_workOrder-header.ejs'); %> + + <% if (workOrder.workOrderLots.length > 0) { %> +

<%= configFunctions.getConfigProperty("aliases.lots") %>

- - - - - - - - - - - <% for (const lot of workOrder.workOrderLots) { %> - - - - - - +
<%= configFunctions.getConfigProperty("aliases.lot") %><%= configFunctions.getConfigProperty("aliases.map") %><%= configFunctions.getConfigProperty("aliases.lot") %> TypeStatus
<%= lot.lotName %><%= lot.mapName %><%= lot.lotType %><%= lot.lotStatus %>
+ + + + + + + + + + <% for (const lot of workOrder.workOrderLots) { %> + + + + + + + <% } %> + +
<%= configFunctions.getConfigProperty("aliases.lot") %><%= configFunctions.getConfigProperty("aliases.map") %><%= configFunctions.getConfigProperty("aliases.lot") %> TypeStatus
<%= lot.lotName %><%= lot.mapName %><%= lot.lotType %><%= lot.lotStatus %>
+ <% } %> + + <% if (workOrder.workOrderLotOccupancies.length > 0) { %> +

<%= configFunctions.getConfigProperty("aliases.occupancies") %>

+ + + + + + + + + + + + + <% for (const occupancy of workOrder.workOrderLotOccupancies) { %> + + + + + + -
<%= configFunctions.getConfigProperty("aliases.occupancy") %> Type<%= configFunctions.getConfigProperty("aliases.lot") %><%= configFunctions.getConfigProperty("aliases.occupancyStartDate") %>End Date<%= configFunctions.getConfigProperty("aliases.occupants") %>
<%= occupancy.occupancyType %><%= occupancy.lotName %><%= occupancy.occupancyStartDateString %><%= occupancy.occupancyStartEndString %> + <% for (const occupant of occupancy.lotOccupancyOccupants) { %> + <%= occupant.lotOccupantType %>: + <%= occupant.occupantName %> + <%= occupant.occupantFamilyName %> +
<% } %> -
- <% } %> + + + <% } %> + + + <% } %> - <% if (workOrder.workOrderLotOccupancies.length > 0) { %> -

<%= configFunctions.getConfigProperty("aliases.occupancies") %>

+ <% if (workOrder.workOrderMilestones.length > 0) { %> +

Milestones

- - +
+ + + + + + + + + <% for (const milestone of workOrder.workOrderMilestones) { %> - - - - - - - - - <% for (const occupancy of workOrder.workOrderLotOccupancies) { %> - - - - - - + + - - <% } %> - -
Milestone DescriptionDue Date
<%= configFunctions.getConfigProperty("aliases.occupancy") %> Type<%= configFunctions.getConfigProperty("aliases.lot") %><%= configFunctions.getConfigProperty("aliases.occupancyStartDate") %>End Date<%= configFunctions.getConfigProperty("aliases.occupants") %>
<%= occupancy.occupancyType %><%= occupancy.lotName %><%= occupancy.occupancyStartDateString %><%= occupancy.occupancyStartEndString %> - <% for (const occupant of occupancy.lotOccupancyOccupants) { %> - <%= occupant.lotOccupantType %>: - <%= occupant.occupantName %> - <%= occupant.occupantFamilyName %> -
- <% } %> +
+ <% if (milestone.workOrderMilestoneCompletionDate) { %> + + <% } else { %> + + <% } %> + + <% if (milestone.workOrderMilestoneTypeId) { %> + <%= milestone.workOrderMilestoneType %>
+ <% } %> + <%= milestone.workOrderMilestoneDescription %> +
+ <% if (milestone.workOrderMilestoneDate === 0) { %> + (No Set Date) + <% } else { %> + <%= milestone.workOrderMilestoneDateString %> + <% } %> + <% if (milestone.workOrderMilestoneTime) { %> + <%= milestone.workOrderMilestoneTimePeriodString %> + <% } %>
- <% } %> - - <% if (workOrder.workOrderMilestones.length > 0) { %> -

Milestones

- - - - - - - - - - <% for (const milestone of workOrder.workOrderMilestones) { %> - - - - - - <% } %> - -
Milestone DescriptionDue Date
- <% if (milestone.workOrderMilestoneCompletionDate) { %> - - <% } else { %> - - <% } %> - - <% if (milestone.workOrderMilestoneTypeId) { %> - <%= milestone.workOrderMilestoneType %>
- <% } %> - <%= milestone.workOrderMilestoneDescription %> -
- <% if (milestone.workOrderMilestoneDate === 0) { %> - (No Set Date) - <% } else { %> - <%= milestone.workOrderMilestoneDateString %> - <% } %> - <% if (milestone.workOrderMilestoneTime) { %> - <%= milestone.workOrderMilestoneTimePeriodString %> - <% } %> -
- <% } %> + <% } %> + + + <% } %> -

Notes

+

Notes

-

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

- +

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

+ \ No newline at end of file