linting
parent
0aa050dbae
commit
9bc27dafe8
|
|
@ -1,6 +1,4 @@
|
|||
"use strict";
|
||||
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
(() => {
|
||||
const sunrise = exports.sunrise;
|
||||
|
|
@ -101,7 +99,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
event.preventDefault();
|
||||
}
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
milestoneCalendarContainerElement.innerHTML = sunrise.getLoadingParagraphHTML('Loading Milestones...');
|
||||
milestoneCalendarContainerElement.innerHTML =
|
||||
sunrise.getLoadingParagraphHTML('Loading Milestones...');
|
||||
cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doGetWorkOrderMilestones`, workOrderSearchFiltersFormElement, (responseJSON) => {
|
||||
renderMilestones(responseJSON.workOrderMilestones);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
|
||||
import type { cityssmGlobal } from '@cityssm/bulma-webapp-js/src/types.js'
|
||||
|
||||
import type { WorkOrderMilestone } from '../../types/recordTypes.js'
|
||||
|
|
@ -153,9 +150,8 @@ declare const exports: Record<string, unknown>
|
|||
}
|
||||
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
milestoneCalendarContainerElement.innerHTML = sunrise.getLoadingParagraphHTML(
|
||||
'Loading Milestones...'
|
||||
)
|
||||
milestoneCalendarContainerElement.innerHTML =
|
||||
sunrise.getLoadingParagraphHTML('Loading Milestones...')
|
||||
|
||||
cityssm.postJSON(
|
||||
`${sunrise.urlPrefix}/workOrders/doGetWorkOrderMilestones`,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
"use strict";
|
||||
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
(() => {
|
||||
const sunrise = exports.sunrise;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
|
||||
import type { Sunrise } from './types.js'
|
||||
|
||||
declare const exports: Record<string, unknown>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { DateString, TimeString } from "@cityssm/utils-datetime";
|
||||
import type { DateString, TimeString } from "@cityssm/utils-datetime";
|
||||
export interface Record {
|
||||
recordCreate_userName?: string;
|
||||
recordCreate_timeMillis?: number;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { DateString, TimeString } from "@cityssm/utils-datetime"
|
||||
import type { DateString, TimeString } from "@cityssm/utils-datetime"
|
||||
|
||||
export interface Record {
|
||||
recordCreate_userName?: string
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@
|
|||
</a>
|
||||
</li>
|
||||
<li class="is-active">
|
||||
<a href="#" aria-current="page">
|
||||
Ntfy Startup Notification
|
||||
</a>
|
||||
<a href="#" aria-current="page">
|
||||
Ntfy Startup Notification
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -1,40 +1,39 @@
|
|||
<table class="layout-table">
|
||||
<tr>
|
||||
<td>
|
||||
<h1 class="m-0">Work Order #<%= workOrder.workOrderNumber %></h1>
|
||||
</td>
|
||||
<td class="has-text-right is-vcentered">
|
||||
<strong>
|
||||
<% if (workOrder.workOrderCloseDate) { %>
|
||||
CLOSED<br />
|
||||
<% } %>
|
||||
<%= workOrder.workOrderType %>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h1 class="m-0">Work Order #<%= workOrder.workOrderNumber %></h1>
|
||||
</td>
|
||||
<td class="has-text-right is-vcentered">
|
||||
<strong>
|
||||
<% if (workOrder.workOrderCloseDate) { %>
|
||||
CLOSED<br />
|
||||
<% } %>
|
||||
<%= workOrder.workOrderType %>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="box mt-1">
|
||||
<table class="layout-table">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
<strong>Description</strong><br />
|
||||
<%= workOrder.workOrderDescription %>
|
||||
</p>
|
||||
</td>
|
||||
<td class="pl-1 is-width-1 has-text-nowrap">
|
||||
<p>
|
||||
<strong><%= configFunctions.getConfigProperty("aliases.workOrderOpenDate") %></strong><br />
|
||||
<%= workOrder.workOrderOpenDateString %>
|
||||
</p>
|
||||
<% if (workOrder.workOrderCloseDate) { %>
|
||||
<p>
|
||||
<strong><%= configFunctions.getConfigProperty("aliases.workOrderCloseDate") %></strong><br />
|
||||
<%= workOrder.workOrderCloseDateString %>
|
||||
</p>
|
||||
<% } %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="layout-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<strong>Description</strong><br />
|
||||
<%= workOrder.workOrderDescription %>
|
||||
</p>
|
||||
</td>
|
||||
<td class="pl-1 is-width-1 has-text-nowrap">
|
||||
<p>
|
||||
<strong><%= configFunctions.getConfigProperty("aliases.workOrderOpenDate") %></strong><br />
|
||||
<%= workOrder.workOrderOpenDateString %>
|
||||
</p>
|
||||
<% if (workOrder.workOrderCloseDate) { %>
|
||||
<p>
|
||||
<strong><%= configFunctions.getConfigProperty("aliases.workOrderCloseDate") %></strong><br />
|
||||
<%= workOrder.workOrderCloseDateString %>
|
||||
</p>
|
||||
<% } %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,67 +8,67 @@
|
|||
</style>
|
||||
</head>
|
||||
<body style="margin:100px 80px">
|
||||
<p class="mb-2 has-text-centered is-capitalized">Province of Ontario</p>
|
||||
<p class="has-text-centered is-italic">Vital Statistics Act</p>
|
||||
<h1 class="has-text-centered is-capitalized mt-4 mb-4">Burial Permit</h1>
|
||||
<p class="mb-2 has-text-centered is-capitalized">Province of Ontario</p>
|
||||
<p class="has-text-centered is-italic">Vital Statistics Act</p>
|
||||
<h1 class="has-text-centered is-capitalized mt-4 mb-4">Burial Permit</h1>
|
||||
|
||||
<p>
|
||||
Under the <span class="is-italic">Vital Statistics Act</span>
|
||||
and the regulations,
|
||||
subject to the limitations thereof,
|
||||
this permit is granted to:<br />
|
||||
</p>
|
||||
<p>
|
||||
Under the <span class="is-italic">Vital Statistics Act</span>
|
||||
and the regulations,
|
||||
subject to the limitations thereof,
|
||||
this permit is granted to:<br />
|
||||
</p>
|
||||
|
||||
<p class="has-text-centered">
|
||||
<strong><%= contract.funeralHomeName %></strong><br />
|
||||
<%= contract.funeralHomeAddress1 %><br />
|
||||
<% if (contract.funeralHomeAddress2) { %><%= contract.funeralHomeAddress2 %><br /><% } %>
|
||||
<%= contract.funeralHomeCity %>, <%= contract.funeralHomeProvince %><br />
|
||||
<%= contract.funeralHomePostalCode %>
|
||||
</p>
|
||||
<p class="has-text-centered">
|
||||
<strong><%= contract.funeralHomeName %></strong><br />
|
||||
<%= contract.funeralHomeAddress1 %><br />
|
||||
<% if (contract.funeralHomeAddress2) { %><%= contract.funeralHomeAddress2 %><br /><% } %>
|
||||
<%= contract.funeralHomeCity %>, <%= contract.funeralHomeProvince %><br />
|
||||
<%= contract.funeralHomePostalCode %>
|
||||
</p>
|
||||
|
||||
<p class="mt-4">
|
||||
for the purpose of the burial or other disposition of the body of:
|
||||
</p>
|
||||
<p class="mt-4">
|
||||
for the purpose of the burial or other disposition of the body of:
|
||||
</p>
|
||||
|
||||
<p class="has-text-centered">
|
||||
<% if (!contract.isPreneed && deceased !== undefined) { %>
|
||||
<strong><%= deceased.deceasedName %></strong>
|
||||
<% } %>
|
||||
</p>
|
||||
<p class="has-text-centered">
|
||||
<% if (!contract.isPreneed && deceased !== undefined) { %>
|
||||
<strong><%= deceased.deceasedName %></strong>
|
||||
<% } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
who died at
|
||||
<span class="field has-text-centered" style="width:300px">
|
||||
|
||||
<%= deceased?.deathPlace ?? '' %>
|
||||
|
||||
</span>
|
||||
in Ontario on
|
||||
<span class="field has-text-centered" style="width:150px">
|
||||
|
||||
<%= deceased?.deathDateString %>
|
||||
|
||||
</span>
|
||||
.
|
||||
</p>
|
||||
|
||||
<p class="has-text-right mt-6">
|
||||
<span class="field mb-1" style="width:300px"> </span><br />
|
||||
<span class="is-8pt">(Signature of Division Registrar)</span>
|
||||
</p>
|
||||
|
||||
<p class="has-text-right">
|
||||
Sault Ste. Marie
|
||||
<p>
|
||||
who died at
|
||||
<span class="field has-text-centered" style="width:300px">
|
||||
|
||||
<%= deceased?.deathPlace ?? '' %>
|
||||
|
||||
</span>
|
||||
in Ontario on
|
||||
<span class="field has-text-centered" style="width:150px">
|
||||
|
||||
5724
|
||||
</p>
|
||||
<%= deceased?.deathDateString %>
|
||||
|
||||
</span>
|
||||
.
|
||||
</p>
|
||||
|
||||
<p class="has-text-right mt-4">
|
||||
<span class="field mb-1" style="width:150px"> </span><br />
|
||||
<span class="is-8pt">(Year Month Day)</span>
|
||||
</p>
|
||||
<p class="has-text-right mt-6">
|
||||
<span class="field mb-1" style="width:300px"> </span><br />
|
||||
<span class="is-8pt">(Signature of Division Registrar)</span>
|
||||
</p>
|
||||
|
||||
<p class="has-text-right">
|
||||
Sault Ste. Marie
|
||||
|
||||
|
||||
|
||||
5724
|
||||
</p>
|
||||
|
||||
<p class="has-text-right mt-4">
|
||||
<span class="field mb-1" style="width:150px"> </span><br />
|
||||
<span class="is-8pt">(Year Month Day)</span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -294,25 +294,25 @@
|
|||
<table class="layout-table is-10pt">
|
||||
<tr>
|
||||
<td>Flat marker measuring less than 1,116.3 sq.m. (173 sq.in.)</td>
|
||||
<td>$0.00</td>
|
||||
<td class="has-text-right">$0.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Flat marker measuring over 1,116.3 sq.m. (173 sq.in.)</td>
|
||||
<td>$50.00</td>
|
||||
<td class="has-text-right">$50.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Upright monument measuring more than 1.22 m. (4 ft.) or less in height or length,
|
||||
including the base
|
||||
</td>
|
||||
<td>$100.00</td>
|
||||
<td class="has-text-right">$100.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Upright monument measuring more than 1.22m. (4 ft.) either in height or length,
|
||||
including the base
|
||||
</td>
|
||||
<td>$200.00</td>
|
||||
<td class="has-text-right">$200.00</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,89 +6,89 @@
|
|||
</h1>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<p>
|
||||
<strong>Contract Type</strong><br />
|
||||
<%= contract.contractType %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<p class="mb-2">
|
||||
<strong>Burial Site</strong><br />
|
||||
<% if (contract.burialSiteId) { %>
|
||||
<%= contract.burialSiteName %>
|
||||
<% } else { %>
|
||||
(No Burial Site)
|
||||
<% } %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Cemetery</strong><br />
|
||||
<% if (contract.cemeteryId) { %>
|
||||
<%= contract.cemeteryName %>
|
||||
<% } else { %>
|
||||
(No Cemetery)
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<p class="mb-2">
|
||||
<strong>Contract Date</strong><br />
|
||||
<%= contract.contractStartDateString %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>End Date</strong><br />
|
||||
<%= (contract.contractEndDateString === "" ? "(No End Date)" : contract.contractEndDateString) %>
|
||||
</p>
|
||||
</div>
|
||||
<% if (contract.contractFields.length > 0) { %>
|
||||
<div class="column">
|
||||
<p>
|
||||
<strong>Contract Type</strong><br />
|
||||
<%= contract.contractType %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<% for (const contractField of contract.contractFields) { %>
|
||||
<p class="mb-2">
|
||||
<strong>Burial Site</strong><br />
|
||||
<% if (contract.burialSiteId) { %>
|
||||
<%= contract.burialSiteName %>
|
||||
<% } else { %>
|
||||
(No Burial Site)
|
||||
<% } %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Cemetery</strong><br />
|
||||
<% if (contract.cemeteryId) { %>
|
||||
<%= contract.cemeteryName %>
|
||||
<% } else { %>
|
||||
(No Cemetery)
|
||||
<% } %>
|
||||
<strong><%= contractField.contractTypeField %></strong><br />
|
||||
<%= contractField.contractFieldValue || "(No Value)" %>
|
||||
</p>
|
||||
<% } %>
|
||||
</div>
|
||||
<div class="column">
|
||||
<p class="mb-2">
|
||||
<strong><%= configFunctions.getConfigProperty("aliases.occupancyStartDate") %></strong><br />
|
||||
<%= contract.occupancyStartDateString %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>End Date</strong><br />
|
||||
<%= (contract.occupancyEndDateString === "" ? "(No End Date)" : contract.occupancyEndDateString) %>
|
||||
</p>
|
||||
</div>
|
||||
<% if (contract.contractFields.length > 0) { %>
|
||||
<div class="column">
|
||||
<% for (const contractField of contract.contractFields) { %>
|
||||
<p class="mb-2">
|
||||
<strong><%= contractField.contractTypeField %></strong><br />
|
||||
<%= contractField.contractFieldValue || "(No Value)" %>
|
||||
</p>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<h2 class="title is-4"><%= configFunctions.getConfigProperty("aliases.occupants") %></h2>
|
||||
<h2 class="title is-4">Interments</h2>
|
||||
|
||||
<% if (contract.contractOccupants.length === 0) { %>
|
||||
<div class="message is-warning">
|
||||
<p class="message-body">
|
||||
There are no <%= configFunctions.getConfigProperty("aliases.occupants").toLowerCase() %>
|
||||
associated with this record.
|
||||
</p>
|
||||
</div>
|
||||
<% if (contract.contractInterments.length === 0) { %>
|
||||
<div class="message is-warning">
|
||||
<p class="message-body">
|
||||
There are no interments
|
||||
associated with this contract.
|
||||
</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<table class="table is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Interment</th>
|
||||
<th>Address</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const contractInterment of contract.contractInterments) { %>
|
||||
<tr>
|
||||
<td><%= contractInterment.deceasedName %></td>
|
||||
<td>
|
||||
<%= contractInterment.deceasedAddress1 %><br />
|
||||
<% if (contractInterment.deceasedAddress2 && contractInterment.deceasedAddress2 !== "") { %>
|
||||
<%= contractInterment.deceasedAddress2 %><br />
|
||||
<% } %>
|
||||
<% if (contractInterment.deceasedCity) { %>
|
||||
<%= contractInterment.deceasedCity %>,
|
||||
<% } %>
|
||||
<%= contractInterment.deceasedProvince %><br />
|
||||
<%= contractInterment.deceasedPostalCode %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Interment</th>
|
||||
<th>Address</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const contractInterment of contract.contractInterments) { %>
|
||||
<tr>
|
||||
<td><%= contractInterment.deceasedName %></td>
|
||||
<td>
|
||||
<%= contractInterment.deceasedAddress1 %><br />
|
||||
<% if (contractInterment.deceasedAddress2 && contractInterment.deceasedAddress2 !== "") { %>
|
||||
<%= contractInterment.deceasedAddress2 %><br />
|
||||
<% } %>
|
||||
<% if (contractInterment.deceasedCity) { %>
|
||||
<%= contractInterment.deceasedCity %>,
|
||||
<% } %>
|
||||
<%= contractInterment.deceasedProvince %><br />
|
||||
<%= contractInterment.deceasedPostalCode %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% } %>
|
||||
</section>
|
||||
|
||||
|
|
@ -97,25 +97,25 @@
|
|||
<h2 class="title is-4">Comments</h2>
|
||||
|
||||
<table class="table is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Commentor</th>
|
||||
<th>Comment Date</th>
|
||||
<th>Comment</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const contractComment of contract.contractComments) { %>
|
||||
<tr>
|
||||
<td><%= contractComment.recordCreate_userName %></td>
|
||||
<td>
|
||||
<%= contractComment.contractCommentDateString %>
|
||||
<%= (contractComment.contractCommentTime === 0 ? "" : contractComment.contractCommentTimeString) %>
|
||||
</td>
|
||||
<td><%= contractComment.contractComment %></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Commentor</th>
|
||||
<th>Comment Date</th>
|
||||
<th>Comment</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const contractComment of contract.contractComments) { %>
|
||||
<tr>
|
||||
<td><%= contractComment.recordCreate_userName %></td>
|
||||
<td>
|
||||
<%= contractComment.contractCommentDateString %>
|
||||
<%= (contractComment.contractCommentTime === 0 ? "" : contractComment.contractCommentTimeString) %>
|
||||
</td>
|
||||
<td><%= contractComment.contractComment %></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<% } %>
|
||||
|
|
@ -124,60 +124,60 @@
|
|||
<h2 class="title is-4">Fees</h2>
|
||||
|
||||
<% if (contract.contractFees.length === 0) { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">
|
||||
There are no fees applied to this <%= configFunctions.getConfigProperty("aliases.occupancy").toLowerCase() %> record.
|
||||
</p>
|
||||
</div>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">
|
||||
There are no fees applied to this contract.
|
||||
</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<%
|
||||
let feeAmountTotal = 0;
|
||||
let taxAmountTotal = 0;
|
||||
let feeAmountTotal = 0;
|
||||
let taxAmountTotal = 0;
|
||||
%>
|
||||
<table class="table is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Fee</th>
|
||||
<th class="has-text-right"><span class="is-sr-only">Unit Cost</span></th>
|
||||
<th class="has-width-1"><span class="is-sr-only">×</span></th>
|
||||
<th class="has-width-1 has-text-right"><span class="is-sr-only">Quantity</span></th>
|
||||
<th class="has-width-1"><span class="is-sr-only">=</span></th>
|
||||
<th class="has-width-1 has-text-right">Total</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Fee</th>
|
||||
<th class="has-text-right"><span class="is-sr-only">Unit Cost</span></th>
|
||||
<th class="has-width-1"><span class="is-sr-only">×</span></th>
|
||||
<th class="has-width-1 has-text-right"><span class="is-sr-only">Quantity</span></th>
|
||||
<th class="has-width-1"><span class="is-sr-only">=</span></th>
|
||||
<th class="has-width-1 has-text-right">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const contractFee of contract.contractFees) { %>
|
||||
<%
|
||||
feeAmountTotal += (contractFee.feeAmount * contractFee.quantity);
|
||||
taxAmountTotal += (contractFee.taxAmount * contractFee.quantity);
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="<%= (contractFee.quantity === 1 ? "5" : "1") %>">
|
||||
<%= contractFee.feeName %>
|
||||
</td>
|
||||
<% if (contractFee.quantity !== 1) { %>
|
||||
<td class="has-text-right">$<%= contractFee.feeAmount.toFixed(2) %></td>
|
||||
<td>×</td>
|
||||
<td class="has-text-right"><%= contractFee.quantity %></td>
|
||||
<td>=</td>
|
||||
<% } %>
|
||||
<td class="has-text-right">$<%= (contractFee.feeAmount * contractFee.quantity).toFixed(2) %></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
<% for (const contractFee of contract.contractFees) { %>
|
||||
<%
|
||||
feeAmountTotal += (contractFee.feeAmount * contractFee.quantity);
|
||||
taxAmountTotal += (contractFee.taxAmount * contractFee.quantity);
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="<%= (contractFee.quantity === 1 ? "5" : "1") %>">
|
||||
<%= contractFee.feeName %>
|
||||
</td>
|
||||
<% if (contractFee.quantity !== 1) { %>
|
||||
<td class="has-text-right">$<%= contractFee.feeAmount.toFixed(2) %></td>
|
||||
<td>×</td>
|
||||
<td class="has-text-right"><%= contractFee.quantity %></td>
|
||||
<td>=</td>
|
||||
<% } %>
|
||||
<td class="has-text-right">$<%= (contractFee.feeAmount * contractFee.quantity).toFixed(2) %></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5">Subtotal</th>
|
||||
<td class="has-text-right has-text-weight-bold">$<%= feeAmountTotal.toFixed(2) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5">Tax</th>
|
||||
<td class="has-text-right">$<%= taxAmountTotal.toFixed(2) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5">Grand Total</th>
|
||||
<td class="has-text-right has-text-weight-bold">$<%= (feeAmountTotal + taxAmountTotal).toFixed(2) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5">Subtotal</th>
|
||||
<td class="has-text-right has-text-weight-bold">$<%= feeAmountTotal.toFixed(2) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5">Tax</th>
|
||||
<td class="has-text-right">$<%= taxAmountTotal.toFixed(2) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5">Grand Total</th>
|
||||
<td class="has-text-right has-text-weight-bold">$<%= (feeAmountTotal + taxAmountTotal).toFixed(2) %></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<% } %>
|
||||
|
|
@ -188,32 +188,32 @@
|
|||
|
||||
<% if (contract.contractTransactions.length === 0) { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">
|
||||
There are no transactions associated with this <%= configFunctions.getConfigProperty("aliases.occupancy").toLowerCase() %> record.
|
||||
</p>
|
||||
<p class="message-body">
|
||||
There are no transactions associated with this contract.
|
||||
</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<table class="table is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th><%= configFunctions.getConfigProperty("aliases.externalReceiptNumber") %></th>
|
||||
<th class="has-text-right">Amount</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th><%= configFunctions.getConfigProperty("aliases.externalReceiptNumber") %></th>
|
||||
<th class="has-text-right">Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const contractTransaction of contract.contractTransactions) { %>
|
||||
<tr>
|
||||
<td><%= contractTransaction.transactionDateString %></td>
|
||||
<td>
|
||||
<%= contractTransaction.externalReceiptNumber %><br />
|
||||
<small><%= contractTransaction.transactionNote %></small>
|
||||
</td>
|
||||
<td class="has-text-right">
|
||||
$<%= contractTransaction.transactionAmount.toFixed(2) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
<% for (const contractTransaction of contract.contractTransactions) { %>
|
||||
<tr>
|
||||
<td><%= contractTransaction.transactionDateString %></td>
|
||||
<td>
|
||||
<%= contractTransaction.externalReceiptNumber %><br />
|
||||
<small><%= contractTransaction.transactionNote %></small>
|
||||
</td>
|
||||
<td class="has-text-right">
|
||||
$<%= contractTransaction.transactionAmount.toFixed(2) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% } %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue