AH Updates.

This commit is contained in:
Patrick Fic
2022-02-10 10:48:31 -08:00
parent 139dedd3e7
commit f9f14255a8
2 changed files with 6 additions and 17 deletions

View File

@@ -267,22 +267,14 @@ const CreateRepairOrderTag = (job, errorCallback) => {
}, },
Dates: { Dates: {
DateofLoss: DateofLoss:
(job.loss_date && (job.loss_date && moment(job.loss_date).format(AhDateFormat)) || "",
moment(job.loss_date)
.tz(job.bodyshop.timezone)
.format(AhDateFormat)) ||
"",
InitialCustomerContactDate: null, InitialCustomerContactDate: null,
FirstFollowUpDate: null, FirstFollowUpDate: null,
ReferralDate: null, ReferralDate: null,
EstimateAppointmentDate: null, EstimateAppointmentDate: null,
SecondFollowUpDate: null, SecondFollowUpDate: null,
AssignedDate: AssignedDate:
(job.asgn_date && (job.asgn_date && moment(job.asgn_date).format(AhDateFormat)) || "",
moment(job.asgn_date)
.tz(job.bodyshop.timezone)
.format(AhDateFormat)) ||
"",
EstComplete: null, EstComplete: null,
CustomerAuthorizationDate: null, CustomerAuthorizationDate: null,
InsuranceAuthorizationDate: null, InsuranceAuthorizationDate: null,
@@ -808,9 +800,9 @@ const GenerateDetailLines = (job, line, statuses) => {
MarkUp: null, MarkUp: null,
OrderedOn: OrderedOn:
(line.parts_order_lines[0] && (line.parts_order_lines[0] &&
moment(line.parts_order_lines[0].parts_order.order_date) moment(line.parts_order_lines[0].parts_order.order_date).format(
.tz(job.bodyshop.timezone) AhDateFormat
.format(AhDateFormat)) || )) ||
"", "",
OriginalCost: null, OriginalCost: null,
OriginalInvoiceNumber: null, OriginalInvoiceNumber: null,
@@ -830,9 +822,7 @@ const GenerateDetailLines = (job, line, statuses) => {
ExpectedOn: null, ExpectedOn: null,
ReceivedOn: ReceivedOn:
line.billlines[0] && line.billlines[0] &&
moment(line.billlines[0].bill.date) moment(line.billlines[0].bill.date).format(AhDateFormat),
.tz(job.bodyshop.timezone)
.format(AhDateFormat),
OrderedBy: null, OrderedBy: null,
ShipVia: null, ShipVia: null,
VendorContact: null, VendorContact: null,

View File

@@ -581,7 +581,6 @@ exports.AUTOHOUSE_QUERY = `query AUTOHOUSE_EXPORT($start: timestamptz, $bodyshop
ownr_st ownr_st
ownr_ph1 ownr_ph1
ownr_zip ownr_zip
referral_source
loss_type loss_type
v_model_yr v_model_yr
v_model_desc v_model_desc