import preneed owner

deepsource-autofix-76c6eb20
Dan Gowans 2022-11-22 14:56:36 -05:00
parent d7590d3602
commit 2ea4bfa53d
2 changed files with 32 additions and 0 deletions

View File

@ -475,6 +475,20 @@ function importFromMasterCSV() {
}
updateLotStatus(lotId, takenLotStatus.lotStatusId, user);
}
if (masterRow.CM_PRENEED_OWNER) {
addLotOccupancyOccupant({
lotOccupancyId: deceasedLotOccupancyId,
lotOccupantTypeId: preneedOwnerLotOccupantType.lotOccupantTypeId,
occupantName: masterRow.CM_PRENEED_OWNER,
occupantAddress1: "",
occupantAddress2: "",
occupantCity: "",
occupantProvince: "",
occupantPostalCode: "",
occupantPhoneNumber: "",
occupantEmailAddress: ""
}, user);
}
}
}
catch (error) {

View File

@ -891,6 +891,24 @@ function importFromMasterCSV() {
updateLotStatus(lotId, takenLotStatus.lotStatusId, user);
}
if (masterRow.CM_PRENEED_OWNER) {
addLotOccupancyOccupant(
{
lotOccupancyId: deceasedLotOccupancyId,
lotOccupantTypeId: preneedOwnerLotOccupantType.lotOccupantTypeId,
occupantName: masterRow.CM_PRENEED_OWNER,
occupantAddress1: "",
occupantAddress2: "",
occupantCity: "",
occupantProvince: "",
occupantPostalCode: "",
occupantPhoneNumber: "",
occupantEmailAddress: ""
},
user
);
}
}
} catch (error) {
console.error(error);