use "death place" field on burial permit
parent
6990fd0a10
commit
58230ae65d
|
|
@ -114,13 +114,23 @@ const initializeCemeteryDatabase = () => {
|
||||||
addOccupancyTypeField({
|
addOccupancyTypeField({
|
||||||
occupancyTypeId: intermentOccupancyTypeId,
|
occupancyTypeId: intermentOccupancyTypeId,
|
||||||
occupancyTypeField: "Death Age Period",
|
occupancyTypeField: "Death Age Period",
|
||||||
occupancyTypeFieldValues: "Years,Months,Days,Stillborn",
|
occupancyTypeFieldValues: "Years\nMonths\nDays\nStillborn",
|
||||||
pattern: "",
|
pattern: "",
|
||||||
isRequired: "",
|
isRequired: "",
|
||||||
minimumLength: 1,
|
minimumLength: 1,
|
||||||
maximumLength: 10,
|
maximumLength: 10,
|
||||||
orderNumber: 3
|
orderNumber: 3
|
||||||
}, session);
|
}, session);
|
||||||
|
addOccupancyTypeField({
|
||||||
|
occupancyTypeId: intermentOccupancyTypeId,
|
||||||
|
occupancyTypeField: "Death Place",
|
||||||
|
occupancyTypeFieldValues: "",
|
||||||
|
pattern: "",
|
||||||
|
isRequired: "",
|
||||||
|
minimumLength: 1,
|
||||||
|
maximumLength: 100,
|
||||||
|
orderNumber: 4
|
||||||
|
}, session);
|
||||||
addOccupancyTypeField({
|
addOccupancyTypeField({
|
||||||
occupancyTypeId: intermentOccupancyTypeId,
|
occupancyTypeId: intermentOccupancyTypeId,
|
||||||
occupancyTypeField: "Funeral Home",
|
occupancyTypeField: "Funeral Home",
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ const initializeCemeteryDatabase = () => {
|
||||||
{
|
{
|
||||||
occupancyTypeId: intermentOccupancyTypeId,
|
occupancyTypeId: intermentOccupancyTypeId,
|
||||||
occupancyTypeField: "Death Age Period",
|
occupancyTypeField: "Death Age Period",
|
||||||
occupancyTypeFieldValues: "Years,Months,Days,Stillborn",
|
occupancyTypeFieldValues: "Years\nMonths\nDays\nStillborn",
|
||||||
pattern: "",
|
pattern: "",
|
||||||
isRequired: "",
|
isRequired: "",
|
||||||
minimumLength: 1,
|
minimumLength: 1,
|
||||||
|
|
@ -235,6 +235,20 @@ const initializeCemeteryDatabase = () => {
|
||||||
session
|
session
|
||||||
);
|
);
|
||||||
|
|
||||||
|
addOccupancyTypeField(
|
||||||
|
{
|
||||||
|
occupancyTypeId: intermentOccupancyTypeId,
|
||||||
|
occupancyTypeField: "Death Place",
|
||||||
|
occupancyTypeFieldValues: "",
|
||||||
|
pattern: "",
|
||||||
|
isRequired: "",
|
||||||
|
minimumLength: 1,
|
||||||
|
maximumLength: 100,
|
||||||
|
orderNumber: 4
|
||||||
|
},
|
||||||
|
session
|
||||||
|
);
|
||||||
|
|
||||||
addOccupancyTypeField(
|
addOccupancyTypeField(
|
||||||
{
|
{
|
||||||
occupancyTypeId: intermentOccupancyTypeId,
|
occupancyTypeId: intermentOccupancyTypeId,
|
||||||
|
|
|
||||||
|
|
@ -827,6 +827,15 @@ function importFromWorkOrderCSV() {
|
||||||
lotOccupancyFieldValue
|
lotOccupancyFieldValue
|
||||||
}, user);
|
}, user);
|
||||||
}
|
}
|
||||||
|
if (workOrderRow.WO_DEATH_PLACE !== "") {
|
||||||
|
addOrUpdateLotOccupancyField({
|
||||||
|
lotOccupancyId: lotOccupancyId,
|
||||||
|
occupancyTypeFieldId: allOccupancyTypeFields.find((occupancyTypeField) => {
|
||||||
|
return occupancyTypeField.occupancyTypeField === "Death Place";
|
||||||
|
}).occupancyTypeFieldId,
|
||||||
|
lotOccupancyFieldValue: workOrderRow.WO_DEATH_PLACE
|
||||||
|
}, user);
|
||||||
|
}
|
||||||
if (workOrderRow.WO_AGE !== "") {
|
if (workOrderRow.WO_AGE !== "") {
|
||||||
addOrUpdateLotOccupancyField({
|
addOrUpdateLotOccupancyField({
|
||||||
lotOccupancyId: lotOccupancyId,
|
lotOccupancyId: lotOccupancyId,
|
||||||
|
|
|
||||||
|
|
@ -1387,6 +1387,21 @@ function importFromWorkOrderCSV() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (workOrderRow.WO_DEATH_PLACE !== "") {
|
||||||
|
|
||||||
|
addOrUpdateLotOccupancyField(
|
||||||
|
{
|
||||||
|
lotOccupancyId: lotOccupancyId,
|
||||||
|
occupancyTypeFieldId: allOccupancyTypeFields.find((occupancyTypeField) => {
|
||||||
|
return occupancyTypeField.occupancyTypeField === "Death Place";
|
||||||
|
}).occupancyTypeFieldId,
|
||||||
|
lotOccupancyFieldValue: workOrderRow.WO_DEATH_PLACE
|
||||||
|
},
|
||||||
|
user
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (workOrderRow.WO_AGE !== "") {
|
if (workOrderRow.WO_AGE !== "") {
|
||||||
addOrUpdateLotOccupancyField(
|
addOrUpdateLotOccupancyField(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
const deceasedOccupants = lotOccupancyFunctions.filterOccupantsByLotOccupantType(lotOccupancy, deceasedLotOccupantType);
|
const deceasedOccupants = lotOccupancyFunctions.filterOccupantsByLotOccupantType(lotOccupancy, deceasedLotOccupantType);
|
||||||
|
|
||||||
const deathDateOccupantTypeField = "Death Date";
|
const deathDateOccupantTypeField = "Death Date";
|
||||||
|
const deathPlaceOccupantTypeField = "Death Place";
|
||||||
%>
|
%>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
@ -49,10 +50,16 @@
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
who died at
|
who died at
|
||||||
<span class="field has-text-centered" style="width:300px"> </span>
|
<span class="field has-text-centered" style="width:300px">
|
||||||
|
|
||||||
|
<%= lotOccupancyFunctions.getFieldValueByOccupancyTypeField(lotOccupancy, deathPlaceOccupantTypeField); %>
|
||||||
|
|
||||||
|
</span>
|
||||||
in Ontario on
|
in Ontario on
|
||||||
<span class="field has-text-centered" style="width:150px">
|
<span class="field has-text-centered" style="width:150px">
|
||||||
|
|
||||||
<%= lotOccupancyFunctions.getFieldValueByOccupancyTypeField(lotOccupancy, deathDateOccupantTypeField); %>
|
<%= lotOccupancyFunctions.getFieldValueByOccupancyTypeField(lotOccupancy, deathDateOccupantTypeField); %>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
.
|
.
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -70,10 +77,9 @@
|
||||||
5724
|
5724
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="has-text-right">
|
<p class="has-text-right mt-4">
|
||||||
<span class="field" style="width:150px">
|
<span class="field mb-1" style="width:150px"> </span><br />
|
||||||
<%= dateTimeFunctions.dateToString(new Date(lotOccupancy.recordUpdate_timeMillis)) %>
|
<span class="is-8pt">(Year Month Day)</span>
|
||||||
</span>
|
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue