PBS Improvements.

This commit is contained in:
Patrick Fic
2022-01-21 14:34:15 -08:00
parent 61090aa04c
commit c962d848c1
2 changed files with 25 additions and 18 deletions

View File

@@ -65,7 +65,11 @@ exports.default = async function (socket, { txEnvelope, jobid }) {
const JobData = await QueryJobData(socket, jobid);
socket.JobData = JobData;
CdkBase.createLogEvent(
socket,
"DEBUG",
`Querying the DMS for the Vehicle Record.`
);
//Query for the Vehicle record to get the associated customer.
socket.DmsVeh = await QueryVehicleFromDms(socket);
//Todo: Need to validate the lines and methods below.
@@ -121,7 +125,11 @@ exports.PbsSelectedCustomer = async function PbsSelectedCustomer(
);
await UpsertVehicleData(socket, ownerRef.ReferenceId);
CdkBase.createLogEvent(socket, "DEBUG", `Inserting account data.`);
CdkBase.createLogEvent(
socket,
"DEBUG",
`Inserting accounting posting data..`
);
await InsertAccountPostingData(socket);
CdkBase.createLogEvent(socket, "DEBUG", `Marking job as exported.`);