pull/3/head
Dan Gowans 2025-03-18 14:52:24 -04:00
parent 0aa050dbae
commit 9bc27dafe8
11 changed files with 259 additions and 270 deletions

View File

@ -1,6 +1,4 @@
"use strict"; "use strict";
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
/* eslint-disable unicorn/prefer-module */
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
(() => { (() => {
const sunrise = exports.sunrise; const sunrise = exports.sunrise;
@ -101,7 +99,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
event.preventDefault(); event.preventDefault();
} }
// eslint-disable-next-line no-unsanitized/property // 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) => { cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doGetWorkOrderMilestones`, workOrderSearchFiltersFormElement, (responseJSON) => {
renderMilestones(responseJSON.workOrderMilestones); renderMilestones(responseJSON.workOrderMilestones);
}); });

View File

@ -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 { cityssmGlobal } from '@cityssm/bulma-webapp-js/src/types.js'
import type { WorkOrderMilestone } from '../../types/recordTypes.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 // eslint-disable-next-line no-unsanitized/property
milestoneCalendarContainerElement.innerHTML = sunrise.getLoadingParagraphHTML( milestoneCalendarContainerElement.innerHTML =
'Loading Milestones...' sunrise.getLoadingParagraphHTML('Loading Milestones...')
)
cityssm.postJSON( cityssm.postJSON(
`${sunrise.urlPrefix}/workOrders/doGetWorkOrderMilestones`, `${sunrise.urlPrefix}/workOrders/doGetWorkOrderMilestones`,

View File

@ -1,6 +1,4 @@
"use strict"; "use strict";
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
/* eslint-disable unicorn/prefer-module */
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
(() => { (() => {
const sunrise = exports.sunrise; const sunrise = exports.sunrise;

View File

@ -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' import type { Sunrise } from './types.js'
declare const exports: Record<string, unknown> declare const exports: Record<string, unknown>

View File

@ -1,4 +1,4 @@
import { DateString, TimeString } from "@cityssm/utils-datetime"; import type { DateString, TimeString } from "@cityssm/utils-datetime";
export interface Record { export interface Record {
recordCreate_userName?: string; recordCreate_userName?: string;
recordCreate_timeMillis?: number; recordCreate_timeMillis?: number;

View File

@ -1,4 +1,4 @@
import { DateString, TimeString } from "@cityssm/utils-datetime" import type { DateString, TimeString } from "@cityssm/utils-datetime"
export interface Record { export interface Record {
recordCreate_userName?: string recordCreate_userName?: string

View File

@ -17,7 +17,6 @@
<table class="layout-table"> <table class="layout-table">
<tr> <tr>
<td> <td>
<p> <p>
<strong>Description</strong><br /> <strong>Description</strong><br />
<%= workOrder.workOrderDescription %> <%= workOrder.workOrderDescription %>

View File

@ -294,25 +294,25 @@
<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 class="has-text-right">$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 class="has-text-right">$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 class="has-text-right">$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 class="has-text-right">$200.00</td>
</tr> </tr>
</table> </table>

View File

@ -32,12 +32,12 @@
</div> </div>
<div class="column"> <div class="column">
<p class="mb-2"> <p class="mb-2">
<strong><%= configFunctions.getConfigProperty("aliases.occupancyStartDate") %></strong><br /> <strong>Contract Date</strong><br />
<%= contract.occupancyStartDateString %> <%= contract.contractStartDateString %>
</p> </p>
<p> <p>
<strong>End Date</strong><br /> <strong>End Date</strong><br />
<%= (contract.occupancyEndDateString === "" ? "(No End Date)" : contract.occupancyEndDateString) %> <%= (contract.contractEndDateString === "" ? "(No End Date)" : contract.contractEndDateString) %>
</p> </p>
</div> </div>
<% if (contract.contractFields.length > 0) { %> <% if (contract.contractFields.length > 0) { %>
@ -53,13 +53,13 @@
</div> </div>
<section> <section>
<h2 class="title is-4"><%= configFunctions.getConfigProperty("aliases.occupants") %></h2> <h2 class="title is-4">Interments</h2>
<% if (contract.contractOccupants.length === 0) { %> <% if (contract.contractInterments.length === 0) { %>
<div class="message is-warning"> <div class="message is-warning">
<p class="message-body"> <p class="message-body">
There are no <%= configFunctions.getConfigProperty("aliases.occupants").toLowerCase() %> There are no interments
associated with this record. associated with this contract.
</p> </p>
</div> </div>
<% } else { %> <% } else { %>
@ -126,7 +126,7 @@
<% if (contract.contractFees.length === 0) { %> <% if (contract.contractFees.length === 0) { %>
<div class="message is-info"> <div class="message is-info">
<p class="message-body"> <p class="message-body">
There are no fees applied to this <%= configFunctions.getConfigProperty("aliases.occupancy").toLowerCase() %> record. There are no fees applied to this contract.
</p> </p>
</div> </div>
<% } else { %> <% } else { %>
@ -189,7 +189,7 @@
<% if (contract.contractTransactions.length === 0) { %> <% if (contract.contractTransactions.length === 0) { %>
<div class="message is-info"> <div class="message is-info">
<p class="message-body"> <p class="message-body">
There are no transactions associated with this <%= configFunctions.getConfigProperty("aliases.occupancy").toLowerCase() %> record. There are no transactions associated with this contract.
</p> </p>
</div> </div>
<% } else { %> <% } else { %>