Fortellis certification updates.

This commit is contained in:
Patrick Fic
2025-11-26 11:09:37 -08:00
parent 3d6498f938
commit f1bad01cec
4 changed files with 26 additions and 18 deletions

View File

@@ -968,9 +968,9 @@ async function InsertServiceVehicleHistory({ socket, redisHelpers, JobData }) {
openTime: moment(JobData.actual_in).tz(JobData.bodyshop.timezone).format("HH:mm:ss"),
closeDate: moment(JobData.invoice_date).tz(JobData.bodyshop.timezone).format("YYYY-MM-DD"),
closeTime: moment(JobData.invoice_date).tz(JobData.bodyshop.timezone).format("HH:mm:ss"),
comments: txEnvelope.story, // has to be between 0 and 40.
comments: txEnvelope.story?.slice(0, 40), // has to be between 0 and 40.
cashierId: JobData.bodyshop.cdk_configuration.cashierid,
referenceNumber: JobData.bodyshop.cdk_configuration.cashierid
referenceNumber: JobData.ro_number.match(/\d+/g)[0]
}
}
});