Autohouse Updates.
This commit is contained in:
@@ -89,6 +89,7 @@ function JobsCreateContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
|
|||||||
let job = Object.assign(
|
let job = Object.assign(
|
||||||
{},
|
{},
|
||||||
values,
|
values,
|
||||||
|
{ date_open: new Date() },
|
||||||
{
|
{
|
||||||
vehicle:
|
vehicle:
|
||||||
state.vehicle.selectedid || state.vehicle.none
|
state.vehicle.selectedid || state.vehicle.none
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ exports.default = async (req, res) => {
|
|||||||
bodyshopid: bodyshop.id,
|
bodyshopid: bodyshop.id,
|
||||||
start: start
|
start: start
|
||||||
? moment(start).startOf("day")
|
? moment(start).startOf("day")
|
||||||
: moment().subtract(3, "days").startOf("day"),
|
: moment().subtract(5, "days").startOf("day"),
|
||||||
...(end && { end: moment(end).startOf("day") }),
|
...(end && { end: moment(end).startOf("day") }),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -316,6 +316,10 @@ const CreateRepairOrderTag = (job, errorCallback) => {
|
|||||||
moment(job.date_open)
|
moment(job.date_open)
|
||||||
.tz(job.bodyshop.timezone)
|
.tz(job.bodyshop.timezone)
|
||||||
.format(AhDateFormat)) ||
|
.format(AhDateFormat)) ||
|
||||||
|
(job.created_at &&
|
||||||
|
moment(job.created_at)
|
||||||
|
.tz(job.bodyshop.timezone)
|
||||||
|
.format(AhDateFormat)) ||
|
||||||
"",
|
"",
|
||||||
ScheduledArrivalDate:
|
ScheduledArrivalDate:
|
||||||
(job.scheduled_in &&
|
(job.scheduled_in &&
|
||||||
|
|||||||
@@ -623,6 +623,7 @@ exports.AUTOHOUSE_QUERY = `query AUTOHOUSE_EXPORT($start: timestamptz, $bodyshop
|
|||||||
}
|
}
|
||||||
jobs(where: {_and: [{converted: {_eq: true}}, {updated_at: {_gt: $start}}, {updated_at: {_lte: $end}}, {shopid: {_eq: $bodyshopid}}]}) {
|
jobs(where: {_and: [{converted: {_eq: true}}, {updated_at: {_gt: $start}}, {updated_at: {_lte: $end}}, {shopid: {_eq: $bodyshopid}}]}) {
|
||||||
id
|
id
|
||||||
|
created_at
|
||||||
ro_number
|
ro_number
|
||||||
status
|
status
|
||||||
est_ct_fn
|
est_ct_fn
|
||||||
|
|||||||
Reference in New Issue
Block a user