track legacy work order number field
parent
38ce826e9d
commit
bd749ccb48
|
|
@ -231,6 +231,14 @@ async function importFromMasterCSV() {
|
|||
lotOccupancyComment: masterRow.CM_REMARK2
|
||||
}, user);
|
||||
}
|
||||
if (masterRow.CM_WORK_ORDER.trim() !== '') {
|
||||
await addLotOccupancyComment({
|
||||
lotOccupancyId: preneedLotOccupancyId,
|
||||
lotOccupancyCommentDateString: preneedOccupancyStartDateString,
|
||||
lotOccupancyCommentTimeString: '00:00',
|
||||
lotOccupancyComment: 'Imported Contract #' + masterRow.CM_WORK_ORDER
|
||||
}, user);
|
||||
}
|
||||
if (occupancyEndDateString === '') {
|
||||
await updateLotStatus(lotId, importIds.reservedLotStatusId, user);
|
||||
}
|
||||
|
|
@ -369,6 +377,14 @@ async function importFromMasterCSV() {
|
|||
lotOccupancyComment: masterRow.CM_REMARK2
|
||||
}, user);
|
||||
}
|
||||
if (masterRow.CM_WORK_ORDER.trim() !== '') {
|
||||
await addLotOccupancyComment({
|
||||
lotOccupancyId: deceasedLotOccupancyId,
|
||||
lotOccupancyCommentDateString: deceasedOccupancyStartDateString,
|
||||
lotOccupancyCommentTimeString: '00:00',
|
||||
lotOccupancyComment: 'Imported Contract #' + masterRow.CM_WORK_ORDER
|
||||
}, user);
|
||||
}
|
||||
await updateLotStatus(lotId, importIds.takenLotStatusId, user);
|
||||
if (masterRow.CM_PRENEED_OWNER !== '') {
|
||||
await addLotOccupancyOccupant({
|
||||
|
|
|
|||
|
|
@ -507,6 +507,18 @@ async function importFromMasterCSV(): Promise<void> {
|
|||
)
|
||||
}
|
||||
|
||||
if (masterRow.CM_WORK_ORDER.trim() !== '') {
|
||||
await addLotOccupancyComment(
|
||||
{
|
||||
lotOccupancyId: preneedLotOccupancyId,
|
||||
lotOccupancyCommentDateString: preneedOccupancyStartDateString,
|
||||
lotOccupancyCommentTimeString: '00:00',
|
||||
lotOccupancyComment: 'Imported Contract #' + masterRow.CM_WORK_ORDER
|
||||
},
|
||||
user
|
||||
)
|
||||
}
|
||||
|
||||
if (occupancyEndDateString === '') {
|
||||
await updateLotStatus(lotId, importIds.reservedLotStatusId, user)
|
||||
}
|
||||
|
|
@ -762,6 +774,18 @@ async function importFromMasterCSV(): Promise<void> {
|
|||
)
|
||||
}
|
||||
|
||||
if (masterRow.CM_WORK_ORDER.trim() !== '') {
|
||||
await addLotOccupancyComment(
|
||||
{
|
||||
lotOccupancyId: deceasedLotOccupancyId,
|
||||
lotOccupancyCommentDateString: deceasedOccupancyStartDateString,
|
||||
lotOccupancyCommentTimeString: '00:00',
|
||||
lotOccupancyComment: 'Imported Contract #' + masterRow.CM_WORK_ORDER
|
||||
},
|
||||
user
|
||||
)
|
||||
}
|
||||
|
||||
await updateLotStatus(lotId, importIds.takenLotStatusId, user)
|
||||
|
||||
if (masterRow.CM_PRENEED_OWNER !== '') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue