diff --git a/public/javascripts/workOrder.editRelated.js b/public/javascripts/workOrder.editRelated.js
index 670b565a..ba2e84ac 100644
--- a/public/javascripts/workOrder.editRelated.js
+++ b/public/javascripts/workOrder.editRelated.js
@@ -13,8 +13,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
const contractId = clickEvent.currentTarget.closest('.container--contract').dataset.contractId;
function doDelete() {
cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderContract`, {
- workOrderId,
- contractId
+ contractId,
+ workOrderId
}, (rawResponseJSON) => {
const responseJSON = rawResponseJSON;
if (responseJSON.success) {
@@ -65,8 +65,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
}
function addContract(contractId, callbackFunction) {
cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doAddWorkOrderContract`, {
- workOrderId,
- contractId
+ contractId,
+ workOrderId
}, (rawResponseJSON) => {
const responseJSON = rawResponseJSON;
if (responseJSON.success) {
@@ -106,7 +106,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
Burial Site |
Contract Date |
End Date |
- Interments |
+ Contacts |
|
@@ -138,9 +138,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
${hasBurialSiteRecord
? ''
: ` `}
`);
@@ -148,14 +148,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
else {
rowElement.insertAdjacentHTML('beforeend', '(No Burial Site) | ');
}
- let intermentsHTML = '';
+ let contactsHtml = '';
for (const interment of contract.contractInterments ?? []) {
- intermentsHTML += `
${cityssm.escapeHTML(interment.deceasedName ?? '')}
+ `;
+ }
+ if (contract.purchaserName !== '') {
+ contactsHtml += `
+
+
+
+ ${cityssm.escapeHTML(contract.purchaserName)}
+ `;
+ }
+ if (contract.funeralHomeName !== null) {
+ contactsHtml += `
+
+
+
+ ${cityssm.escapeHTML(contract.funeralHomeName)}
`;
}
// eslint-disable-next-line no-unsanitized/method
@@ -166,9 +184,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
? contract.contractEndDateString
: '(No End Date)'}
- ${contract.contractInterments.length === 0
- ? '(No Interments)'
- : ``}
+
|
|
- |
+
|