rename default lot occupant type
parent
c117cc84e4
commit
056f30a249
|
|
@ -72,7 +72,7 @@ const initializeCemeteryDatabase = () => {
|
|||
orderNumber: 2
|
||||
}, session);
|
||||
addLotOccupantType({
|
||||
lotOccupantType: "Arranger",
|
||||
lotOccupantType: "Purchaser",
|
||||
orderNumber: 3
|
||||
}, session);
|
||||
addOccupancyType({
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ const initializeCemeteryDatabase = () => {
|
|||
|
||||
addLotOccupantType(
|
||||
{
|
||||
lotOccupantType: "Arranger",
|
||||
lotOccupantType: "Purchaser",
|
||||
orderNumber: 3
|
||||
},
|
||||
session
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ function getFeeIdByFeeDescription(feeDescription) {
|
|||
readonly: true
|
||||
});
|
||||
const records = database
|
||||
.prepare("select feeId, feeDescription from Fees" + " where feeDescription like 'CMPP_FEE_%'")
|
||||
.prepare("select feeId, feeDescription from Fees where feeDescription like 'CMPP_FEE_%'")
|
||||
.all();
|
||||
for (const record of records) {
|
||||
feeCache.set(record.feeDescription, record.feeId);
|
||||
|
|
@ -182,7 +182,7 @@ const cremationOccupancyType = cacheFunctions.getOccupancyTypeByOccupancyType("C
|
|||
const allOccupancyTypeFields = cacheFunctions.getAllOccupancyTypeFields();
|
||||
const preneedOwnerLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Preneed Owner");
|
||||
const deceasedLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Deceased");
|
||||
const arrangerLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Arranger");
|
||||
const purchaserLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Purchaser");
|
||||
const acknowledgedWorkOrderMilestoneType = cacheFunctions.getWorkOrderMilestoneTypeByWorkOrderMilestoneType("Acknowledged");
|
||||
const deathWorkOrderMilestoneType = cacheFunctions.getWorkOrderMilestoneTypeByWorkOrderMilestoneType("Death");
|
||||
const funeralWorkOrderMilestoneType = cacheFunctions.getWorkOrderMilestoneTypeByWorkOrderMilestoneType("Funeral");
|
||||
|
|
@ -520,7 +520,7 @@ function importFromPrepaidCSV() {
|
|||
if (prepaidRow.CMPP_ARRANGED_BY_NAME) {
|
||||
addLotOccupancyOccupant({
|
||||
lotOccupancyId,
|
||||
lotOccupantTypeId: arrangerLotOccupantType.lotOccupantTypeId,
|
||||
lotOccupantTypeId: purchaserLotOccupantType.lotOccupantTypeId,
|
||||
occupantName: prepaidRow.CMPP_ARRANGED_BY_NAME,
|
||||
occupantAddress1: "",
|
||||
occupantAddress2: "",
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ function getFeeIdByFeeDescription(feeDescription: string) {
|
|||
feeDescription: string;
|
||||
}[] = database
|
||||
.prepare(
|
||||
"select feeId, feeDescription from Fees" + " where feeDescription like 'CMPP_FEE_%'"
|
||||
"select feeId, feeDescription from Fees where feeDescription like 'CMPP_FEE_%'"
|
||||
)
|
||||
.all();
|
||||
|
||||
|
|
@ -418,7 +418,7 @@ const allOccupancyTypeFields = cacheFunctions.getAllOccupancyTypeFields();
|
|||
const preneedOwnerLotOccupantType =
|
||||
cacheFunctions.getLotOccupantTypesByLotOccupantType("Preneed Owner");
|
||||
const deceasedLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Deceased");
|
||||
const arrangerLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Arranger");
|
||||
const purchaserLotOccupantType = cacheFunctions.getLotOccupantTypesByLotOccupantType("Purchaser");
|
||||
|
||||
const acknowledgedWorkOrderMilestoneType =
|
||||
cacheFunctions.getWorkOrderMilestoneTypeByWorkOrderMilestoneType("Acknowledged");
|
||||
|
|
@ -957,7 +957,7 @@ function importFromPrepaidCSV() {
|
|||
addLotOccupancyOccupant(
|
||||
{
|
||||
lotOccupancyId,
|
||||
lotOccupantTypeId: arrangerLotOccupantType.lotOccupantTypeId,
|
||||
lotOccupantTypeId: purchaserLotOccupantType.lotOccupantTypeId,
|
||||
occupantName: prepaidRow.CMPP_ARRANGED_BY_NAME,
|
||||
occupantAddress1: "",
|
||||
occupantAddress2: "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue