deepsource-autofix-76c6eb20
Dan Gowans 2024-06-27 10:22:54 -04:00
parent 4e07584a79
commit 81311d971e
4 changed files with 172 additions and 171 deletions

View File

@ -105,7 +105,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
}); });
// Disable html scrolling when calendar is open // Disable html scrolling when calendar is open
cal.on('show', () => { cal.on('show', () => {
document.querySelector('html').classList.add('is-clipped'); var _a;
(_a = document.querySelector('html')) === null || _a === void 0 ? void 0 : _a.classList.add('is-clipped');
}); });
// Reenable scrolling, if a modal window is not open // Reenable scrolling, if a modal window is not open
cal.on('hide', () => { cal.on('hide', () => {

View File

@ -173,7 +173,7 @@ declare const exports: Record<string, unknown> & {
// Disable html scrolling when calendar is open // Disable html scrolling when calendar is open
cal.on('show', () => { cal.on('show', () => {
document.querySelector('html')!.classList.add('is-clipped') document.querySelector('html')?.classList.add('is-clipped')
}) })
// Reenable scrolling, if a modal window is not open // Reenable scrolling, if a modal window is not open
@ -184,7 +184,7 @@ declare const exports: Record<string, unknown> & {
// Get the datepicker container element // Get the datepicker container element
const datepickerElement = containerElement.querySelector( const datepickerElement = containerElement.querySelector(
`#${cal._id as string}` `#${cal._id as string}`
)! ) as HTMLElement
// Override the previous and next month button styles // Override the previous and next month button styles
const datePickerNavButtonElements = datepickerElement.querySelectorAll( const datePickerNavButtonElements = datepickerElement.querySelectorAll(

File diff suppressed because one or more lines are too long

View File

@ -105,78 +105,78 @@
<table class="layout-table is-10pt" style="table-layout:fixed"> <table class="layout-table is-10pt" style="table-layout:fixed">
<tbody> <tbody>
<tr> <tr>
<td> <td>
<h2 class="is-10pt">Purchaser</h2> <h2 class="is-10pt">Purchaser</h2>
<table class="is-10pt layout-table"> <table class="is-10pt layout-table">
<tbody> <tbody>
<tr> <tr>
<th class="has-text-left">Name:</th>
<td class="has-border-bottom">
<%= purchaser ? purchaser.occupantName + ' ' + purchaser.occupantFamilyName : "" %>
</td>
</tr><tr>
<th class="has-text-left" rowspan="2" style="vertical-align:top">Address:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantAddress1 : "" %>&nbsp;</td>
</tr><tr>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantAddress2 : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">City:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantCity : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">Province:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantProvince : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left has-text-nowrap">Postal Code:</th>
<td class="has-border-bottom" style="width:100%"><%= purchaser ? purchaser.occupantPostalCode : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">Telephone:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantPhoneNumber : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">E-mail:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantEmailAddress : "" %>&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td>
<h2 class="is-10pt">Recipient</h2>
<table class="is-10pt layout-table">
<tbody>
<tr>
<th class="has-text-left">Name:</th> <th class="has-text-left">Name:</th>
<td class="has-border-bottom"> <td class="has-border-bottom">
<%= purchaser ? purchaser.occupantName + ' ' + purchaser.occupantFamilyName : "" %> <%= recipient ? recipient.occupantName + ' ' + recipient.occupantFamilyName : "" %>
</td> </td>
</tr><tr> </tr><tr>
<th class="has-text-left" rowspan="2" style="vertical-align:top">Address:</th> <th class="has-text-left" rowspan="2" style="vertical-align:top">Address:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantAddress1 : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantAddress1 : "" %>&nbsp;</td>
</tr><tr> </tr><tr>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantAddress2 : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantAddress2 : "" %>&nbsp;</td>
</tr><tr> </tr><tr>
<th class="has-text-left">City:</th> <th class="has-text-left">City:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantCity : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantCity : "" %>&nbsp;</td>
</tr><tr> </tr><tr>
<th class="has-text-left">Province:</th> <th class="has-text-left">Province:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantProvince : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantProvince : "" %>&nbsp;</td>
</tr><tr> </tr><tr>
<th class="has-text-left has-text-nowrap">Postal Code:</th> <th class="has-text-left">Postal Code:</th>
<td class="has-border-bottom" style="width:100%"><%= purchaser ? purchaser.occupantPostalCode : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantPostalCode : "" %>&nbsp;</td>
</tr><tr> </tr><tr>
<th class="has-text-left">Telephone:</th> <th class="has-text-left">Telephone:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantPhoneNumber : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantPhoneNumber : "" %>&nbsp;</td>
</tr><tr> </tr><tr>
<th class="has-text-left">E-mail:</th> <th class="has-text-left">E-mail:</th>
<td class="has-border-bottom"><%= purchaser ? purchaser.occupantEmailAddress : "" %>&nbsp;</td> <td class="has-border-bottom"><%= recipient ? recipient.occupantEmailAddress : "" %>&nbsp;</td>
</tr> </tr><tr>
</tbody> <th class="has-text-left">Date of birth:</th>
</table> <td class="has-border-bottom">&nbsp;</td>
</td> </tr><tr>
<td> <th class="has-text-left has-text-nowrap">Place of birth:</th>
<h2 class="is-10pt">Recipient</h2> <td class="has-border-bottom" style="width:100%">&nbsp;</td>
<table class="is-10pt layout-table"> </tr>
<tbody> </tbody>
<tr> </table>
<th class="has-text-left">Name:</th> </td>
<td class="has-border-bottom">
<%= recipient ? recipient.occupantName + ' ' + recipient.occupantFamilyName : "" %>
</td>
</tr><tr>
<th class="has-text-left" rowspan="2" style="vertical-align:top">Address:</th>
<td class="has-border-bottom"><%= recipient ? recipient.occupantAddress1 : "" %>&nbsp;</td>
</tr><tr>
<td class="has-border-bottom"><%= recipient ? recipient.occupantAddress2 : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">City:</th>
<td class="has-border-bottom"><%= recipient ? recipient.occupantCity : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">Province:</th>
<td class="has-border-bottom"><%= recipient ? recipient.occupantProvince : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">Postal Code:</th>
<td class="has-border-bottom"><%= recipient ? recipient.occupantPostalCode : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">Telephone:</th>
<td class="has-border-bottom"><%= recipient ? recipient.occupantPhoneNumber : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">E-mail:</th>
<td class="has-border-bottom"><%= recipient ? recipient.occupantEmailAddress : "" %>&nbsp;</td>
</tr><tr>
<th class="has-text-left">Date of birth:</th>
<td class="has-border-bottom">&nbsp;</td>
</tr><tr>
<th class="has-text-left has-text-nowrap">Place of birth:</th>
<td class="has-border-bottom" style="width:100%">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -202,95 +202,95 @@
and their respective heirs, executors, administrators, successors, and assigns. and their respective heirs, executors, administrators, successors, and assigns.
</p> </p>
<table class="layout-table" style="table-layout:fixed"> <table class="layout-table" style="table-layout:fixed">
<tr> <tr>
<td> <td>
<h2 class="is-10pt is-capitalized">Details</h2> <h2 class="is-10pt is-capitalized">Details</h2>
<table class="is-10pt data-table"> <table class="is-10pt data-table">
<tr>
<td><%= configFunctions.getConfigProperty("aliases.map") %></td>
<td><%= lotOccupancy.mapName ?? '(No ' + configFunctions.getConfigProperty("aliases.map") + ')' %></td>
</tr>
<tr>
<td><%= configFunctions.getConfigProperty("aliases.lot") %></td>
<td><%= lotOccupancy.lotName ?? '(No ' + configFunctions.getConfigProperty("aliases.lot") + ')' %></td>
</tr>
<%
for (const field of lotOccupancy.lotOccupancyFields) {
if (field.lotOccupancyFieldValue) {
%>
<tr> <tr>
<td><%= configFunctions.getConfigProperty("aliases.map") %></td> <td><%= field.occupancyTypeField %></td>
<td><%= lotOccupancy.mapName ?? '(No ' + configFunctions.getConfigProperty("aliases.map") + ')' %></td> <td><%= field.lotOccupancyFieldValue %></td>
</tr> </tr>
<tr> <%
<td><%= configFunctions.getConfigProperty("aliases.lot") %></td> }
<td><%= lotOccupancy.lotName ?? '(No ' + configFunctions.getConfigProperty("aliases.lot") + ')' %></td> }
</tr> %>
<% </table>
for (const field of lotOccupancy.lotOccupancyFields) { </td>
if (field.lotOccupancyFieldValue) { <td>
%> <h2 class="is-10pt is-capitalized">Interment Rights and Services</h2>
<tr> <table class="is-10pt data-table">
<td><%= field.occupancyTypeField %></td> <tbody>
<td><%= field.lotOccupancyFieldValue %></td> <%
</tr> let currentFeeCategory = "";
<% let feeAmountTotal = 0;
} let taxAmountTotal = 0;
} %>
%> <% for (const fee of lotOccupancy.lotOccupancyFees) { %>
</table> <% if (currentFeeCategory !== fee.feeCategory) { %>
</td> <tr>
<td> <td colspan="3">
<h2 class="is-10pt is-capitalized">Interment Rights and Services</h2> <strong><%= fee.feeCategory %></strong>
<table class="is-10pt data-table"> </td>
<tbody> </tr>
<% <% currentFeeCategory = fee.feeCategory; %>
let currentFeeCategory = "";
let feeAmountTotal = 0;
let taxAmountTotal = 0;
%>
<% for (const fee of lotOccupancy.lotOccupancyFees) { %>
<% if (currentFeeCategory !== fee.feeCategory) { %>
<tr>
<td colspan="3">
<strong><%= fee.feeCategory %></strong>
</td>
</tr>
<% currentFeeCategory = fee.feeCategory; %>
<% } %>
<tr>
<td <% if (fee.quantity === 1) { %>colspan="2"<% } %>>
<%= fee.feeName %>
</td>
<% if (fee.quantity !== 1) { %>
<td class="has-text-right is-8pt has-text-nowrap">
$<%= fee.feeAmount.toFixed(2) %>
&times;
<%= fee.quantity %>
</td>
<% } %>
<td class="has-text-right">
$<%= fee.feeAmount.toFixed(2) %>
</td>
</tr>
<%
feeAmountTotal += fee.feeAmount * fee.quantity;
taxAmountTotal += fee.taxAmount * fee.quantity;
%>
<% } %> <% } %>
<tr> <tr>
<td colspan="2"><strong>Sub Total</strong></td> <td <% if (fee.quantity === 1) { %>colspan="2"<% } %>>
<td class="has-text-right"> <%= fee.feeName %>
<strong>$<%= feeAmountTotal.toFixed(2) %></strong>
</td> </td>
</tr><tr> <% if (fee.quantity !== 1) { %>
<td colspan="2">HST</td> <td class="has-text-right is-8pt has-text-nowrap">
$<%= fee.feeAmount.toFixed(2) %>
&times;
<%= fee.quantity %>
</td>
<% } %>
<td class="has-text-right"> <td class="has-text-right">
$<%= taxAmountTotal.toFixed(2) %> $<%= fee.feeAmount.toFixed(2) %>
</td>
</tr><tr>
<td colspan="2"><strong>Total Sale</strong></td>
<td class="has-text-right">
<strong>$<%= (feeAmountTotal + taxAmountTotal).toFixed(2) %></strong>
</td>
</tr><tr>
<td colspan="2"><strong>Balance Owing</strong></td>
<td class="has-text-right">
<strong>$<%= (feeAmountTotal + taxAmountTotal - lotOccupancyFunctions.getTransactionTotal(lotOccupancy)).toFixed(2) %></strong>
</td> </td>
</tr> </tr>
</tbody> <%
</table> feeAmountTotal += fee.feeAmount * fee.quantity;
</td> taxAmountTotal += fee.taxAmount * fee.quantity;
</tr> %>
<% } %>
<tr>
<td colspan="2"><strong>Sub Total</strong></td>
<td class="has-text-right">
<strong>$<%= feeAmountTotal.toFixed(2) %></strong>
</td>
</tr><tr>
<td colspan="2">HST</td>
<td class="has-text-right">
$<%= taxAmountTotal.toFixed(2) %>
</td>
</tr><tr>
<td colspan="2"><strong>Total Sale</strong></td>
<td class="has-text-right">
<strong>$<%= (feeAmountTotal + taxAmountTotal).toFixed(2) %></strong>
</td>
</tr><tr>
<td colspan="2"><strong>Balance Owing</strong></td>
<td class="has-text-right">
<strong>$<%= (feeAmountTotal + taxAmountTotal - lotOccupancyFunctions.getTransactionTotal(lotOccupancy)).toFixed(2) %></strong>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table> </table>
<!-- PAGE BREAK --> <!-- PAGE BREAK -->
@ -329,28 +329,28 @@
</h2> </h2>
<table class="layout-table is-10pt"> <table class="layout-table is-10pt">
<tr> <tr>
<td>Flat marker measuring less than 1,116.3 sq.m. (173 sq.in.)</td> <td>Flat marker measuring less than 1,116.3 sq.m. (173 sq.in.)</td>
<td>$0.00</td> <td>$0.00</td>
</tr> </tr>
<tr> <tr>
<td>Flat marker measuring over 1,116.3 sq.m. (173 sq.in.)</td> <td>Flat marker measuring over 1,116.3 sq.m. (173 sq.in.)</td>
<td>$50.00</td> <td>$50.00</td>
</tr> </tr>
<tr> <tr>
<td> <td>
Upright monument measuring more than 1.22 m. (4 ft.) or less in height or length, Upright monument measuring more than 1.22 m. (4 ft.) or less in height or length,
including the base including the base
</td> </td>
<td>$100.00</td> <td>$100.00</td>
</tr> </tr>
<tr> <tr>
<td> <td>
Upright monument measuring more than 1.22m. (4 ft.) either in height or length, Upright monument measuring more than 1.22m. (4 ft.) either in height or length,
including the base including the base
</td> </td>
<td>$200.00</td> <td>$200.00</td>
</tr> </tr>
</table> </table>
<h2 class="is-10pt">Contract Terms and Conditions</h2> <h2 class="is-10pt">Contract Terms and Conditions</h2>