IO-223 ARMS Updates.
This commit is contained in:
@@ -21,7 +21,7 @@ const entegralEndpoint =
|
|||||||
const client = require("../graphql-client/graphql-client").client;
|
const client = require("../graphql-client/graphql-client").client;
|
||||||
const uuid = require("uuid").v4;
|
const uuid = require("uuid").v4;
|
||||||
|
|
||||||
const momentFormat = "yyyy-MM-DDTHH:mm:ss.SSSSSSSZ";
|
const momentFormat = "yyyy-MM-DDTHH:mm:ss.SSS";
|
||||||
|
|
||||||
exports.default = async (req, res) => {
|
exports.default = async (req, res) => {
|
||||||
//Query for the List of Bodyshop Clients.
|
//Query for the List of Bodyshop Clients.
|
||||||
@@ -47,7 +47,7 @@ exports.default = async (req, res) => {
|
|||||||
RqUID: transId,
|
RqUID: transId,
|
||||||
DocumentInfo: {
|
DocumentInfo: {
|
||||||
BMSVer: "4.0.0",
|
BMSVer: "4.0.0",
|
||||||
DocumentType: "Repair Order",
|
DocumentType: "RO",
|
||||||
DocumentVerCode: "EM",
|
DocumentVerCode: "EM",
|
||||||
DocumentVerNum: GetSupplementNumber(job.joblines), //TODO Get Supplement Number
|
DocumentVerNum: GetSupplementNumber(job.joblines), //TODO Get Supplement Number
|
||||||
DocumentStatus: GetDocumentstatus(job, bodyshop),
|
DocumentStatus: GetDocumentstatus(job, bodyshop),
|
||||||
@@ -63,8 +63,10 @@ exports.default = async (req, res) => {
|
|||||||
UploadDateTime: moment().format(momentFormat),
|
UploadDateTime: moment().format(momentFormat),
|
||||||
},
|
},
|
||||||
RepairEvent: {
|
RepairEvent: {
|
||||||
ArrivalDateTime:
|
CreatedDateTime:
|
||||||
job.date_open && moment(job.date_open).format(momentFormat),
|
job.date_open && moment(job.date_open).format(momentFormat),
|
||||||
|
ArrivalDateTime:
|
||||||
|
job.actual_in && moment(job.actual_in).format(momentFormat),
|
||||||
ArrivalOdometerReading: job.kmin,
|
ArrivalOdometerReading: job.kmin,
|
||||||
TargetCompletionDateTime:
|
TargetCompletionDateTime:
|
||||||
job.scheduled_completion &&
|
job.scheduled_completion &&
|
||||||
|
|||||||
Reference in New Issue
Block a user