IO-1559 Requested changes to tags from ClaimsCorp
This commit is contained in:
@@ -17,7 +17,7 @@ let Client = require("ssh2-sftp-client");
|
|||||||
const client = require("../graphql-client/graphql-client").client;
|
const client = require("../graphql-client/graphql-client").client;
|
||||||
const { sendServerEmail } = require("../email/sendemail");
|
const { sendServerEmail } = require("../email/sendemail");
|
||||||
const CCDineroFormat = "0,0.00";
|
const CCDineroFormat = "0,0.00";
|
||||||
const AhDateFormat = "MMDDYYYY";
|
const AhDateFormat = "MM/DD/YYYY";
|
||||||
|
|
||||||
const repairOpCodes = ["OP4", "OP9", "OP10"];
|
const repairOpCodes = ["OP4", "OP9", "OP10"];
|
||||||
const replaceOpCodes = ["OP2", "OP5", "OP11", "OP12"];
|
const replaceOpCodes = ["OP2", "OP5", "OP11", "OP12"];
|
||||||
@@ -245,7 +245,7 @@ const CreateRepairOrderTag = (job, errorCallback) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const ret = {
|
const ret = {
|
||||||
RONumber: job.ro_number,
|
RoNumber: job.ro_number,
|
||||||
Customer: {
|
Customer: {
|
||||||
CustomerZip: (job.ownr_zip && job.ownr_zip.substring(0, 3)) || "",
|
CustomerZip: (job.ownr_zip && job.ownr_zip.substring(0, 3)) || "",
|
||||||
CustomerState: job.ownr_st || "",
|
CustomerState: job.ownr_st || "",
|
||||||
@@ -312,7 +312,7 @@ const CreateRepairOrderTag = (job, errorCallback) => {
|
|||||||
(job.date_estimated &&
|
(job.date_estimated &&
|
||||||
moment(job.date_estimated).format(AhDateFormat)) ||
|
moment(job.date_estimated).format(AhDateFormat)) ||
|
||||||
"",
|
"",
|
||||||
DateofLoss:
|
DateLoss:
|
||||||
(job.loss_date && moment(job.loss_date).format(AhDateFormat)) || "",
|
(job.loss_date && moment(job.loss_date).format(AhDateFormat)) || "",
|
||||||
DateFNOL: "",
|
DateFNOL: "",
|
||||||
DateContact: "",
|
DateContact: "",
|
||||||
@@ -384,7 +384,7 @@ const CreateRepairOrderTag = (job, errorCallback) => {
|
|||||||
"",
|
"",
|
||||||
BilledDate: "",
|
BilledDate: "",
|
||||||
PaidInFullDate: "",
|
PaidInFullDate: "",
|
||||||
RoStatus: job.tlos_ind
|
ROStatus: job.tlos_ind
|
||||||
? "TOT"
|
? "TOT"
|
||||||
: StatusMapping(job.status, job.bodyshop.md_ro_statuses),
|
: StatusMapping(job.status, job.bodyshop.md_ro_statuses),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user