diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 7c733bcdc..d514e7a91 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -8719,6 +8719,27 @@ + + inproduction + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + job false diff --git a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx index afbfc84b2..d37113716 100644 --- a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx +++ b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx @@ -35,7 +35,7 @@ export function JobsDetailHeaderActions({ job, bodyshop }) { AddToProduction(client, job.id)}> {t("jobs.actions.addtoproduction")} diff --git a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx index 0678c2622..7f5bc979f 100644 --- a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx +++ b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx @@ -46,7 +46,7 @@ export function JobsDetailHeader({ const tombstoneTitle = ( - + {job.ro_number ? `${t("jobs.fields.ro_number")} ${job.ro_number}` : `EST-${job.est_number}`} @@ -57,8 +57,7 @@ export function JobsDetailHeader({ { updateJobStatus(e.key); - }} - > + }}> {bodyshop.md_ro_statuses.statuses.map((item) => ( {item} ))} @@ -66,12 +65,12 @@ export function JobsDetailHeader({ ); const menuExtra = [ - + {t("jobs.actions.changestatus")} , - + { @@ -81,14 +80,13 @@ export function JobsDetailHeader({ jobId: job.id, }, }); - }} - > + }}> {t("jobs.actions.schedule")} , { mutationConvertJob({ @@ -100,12 +98,11 @@ export function JobsDetailHeader({ message: t("jobs.successes.converted"), }); }); - }} - > + }}> {t("jobs.actions.convert")} , - , - + , + {t("general.actions.save")} , ]; @@ -118,50 +115,48 @@ export function JobsDetailHeader({ title={tombstoneTitle} //subTitle={tombstoneSubtitle} tags={ - - {job.status ? {job.status} : null} + + {job.status ? {job.status} : null} + {job.inproduction ? ( + {t("jobs.labels.inproduction")} + ) : null} } - extra={menuExtra} - > - - + extra={menuExtra}> + + {job.clm_total} + key='custowing' + label={t("jobs.fields.customerowing")}> {job.owner_owing} + key='scp' + label={t("jobs.fields.specialcoveragepolicy")}> + key='sched_comp' + label={t("jobs.fields.scheduled_completion")}> {job.scheduled_completion ? ( - {job.scheduled_completion} + {job.scheduled_completion} ) : null} - + {job.cccontracts && job.cccontracts.map((item) => ( + to={`/manage/courtesycars/contracts/${item.id}`}> {`${item.agreementnumber} - ${item.start} - ${item.scheduledreturn}`} ))} diff --git a/client/src/components/owner-tag-popover/owner-tag-popover.component.jsx b/client/src/components/owner-tag-popover/owner-tag-popover.component.jsx index 69ccc602f..ff3137a9b 100644 --- a/client/src/components/owner-tag-popover/owner-tag-popover.component.jsx +++ b/client/src/components/owner-tag-popover/owner-tag-popover.component.jsx @@ -69,7 +69,7 @@ export default function OwnerTagPopoverComponent({ job }) { return ( - + {job.owner ? `${job.ownr_co_nm || ""}${job.ownr_fn || ""} ${job.ownr_ln || ""}` : t("jobs.errors.noowner")} diff --git a/client/src/graphql/jobs.queries.js b/client/src/graphql/jobs.queries.js index 6ba8fa12f..8fb11526b 100644 --- a/client/src/graphql/jobs.queries.js +++ b/client/src/graphql/jobs.queries.js @@ -125,6 +125,7 @@ export const GET_JOB_BY_PK = gql` est_number ro_number clm_total + inproduction vehicleid plate_no v_vin @@ -247,6 +248,7 @@ export const GET_JOB_BY_PK = gql` date_exported status owner_owing + joblines { id unq_seq @@ -350,7 +352,7 @@ export const QUERY_JOB_CARD_DETAILS = gql` } documents(limit: 3, order_by: { created_at: desc }) { id - thumb_url + key } } } diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index b52fc47d4..d37849a89 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -557,6 +557,7 @@ "existing_jobs": "Existing Jobs", "hrs_claimed": "Hours Claimed", "hrs_total": "Hours Total", + "inproduction": "In Production", "job": "Job Details", "laborallocations": "Labor Allocations", "lines": "Estimate Lines", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index ca6e0f7c0..cdb468941 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -557,6 +557,7 @@ "existing_jobs": "Empleos existentes", "hrs_claimed": "", "hrs_total": "", + "inproduction": "", "job": "", "laborallocations": "", "lines": "LĂneas estimadas", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 883e96fdc..04c8c61dd 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -557,6 +557,7 @@ "existing_jobs": "Emplois existants", "hrs_claimed": "", "hrs_total": "", + "inproduction": "", "job": "", "laborallocations": "", "lines": "Estimer les lignes",