diff --git a/client/src/components/jobs-detail-labor/jobs-detail-labor.component.jsx b/client/src/components/jobs-detail-labor/jobs-detail-labor.component.jsx index 7d80316e6..be73cd96d 100644 --- a/client/src/components/jobs-detail-labor/jobs-detail-labor.component.jsx +++ b/client/src/components/jobs-detail-labor/jobs-detail-labor.component.jsx @@ -49,6 +49,7 @@ const adjSpan = { export function JobsDetailLaborContainer({ jobRO, + job, jobId, joblines, timetickets, @@ -65,7 +66,7 @@ export function JobsDetailLaborContainer({ timetickets={timetickets} refetch={refetch} techConsole={techConsole} - disabled={jobRO} + disabled={jobRO || !job.converted} jobId={jobId} /> diff --git a/client/src/components/jobs-detail-labor/jobs-detail-labor.container.jsx b/client/src/components/jobs-detail-labor/jobs-detail-labor.container.jsx index a2a3f7688..50780aaef 100644 --- a/client/src/components/jobs-detail-labor/jobs-detail-labor.container.jsx +++ b/client/src/components/jobs-detail-labor/jobs-detail-labor.container.jsx @@ -4,7 +4,7 @@ import { GET_LINE_TICKET_BY_PK } from "../../graphql/jobs-lines.queries"; import AlertComponent from "../alert/alert.component"; import JobsDetailLaborComponent from "./jobs-detail-labor.component"; -export default function JobsDetailLaborContainer({ jobId, techConsole }) { +export default function JobsDetailLaborContainer({ jobId, techConsole, job }) { const { loading, error, data, refetch } = useQuery(GET_LINE_TICKET_BY_PK, { variables: { id: jobId }, skip: !!!jobId, @@ -21,6 +21,7 @@ export default function JobsDetailLaborContainer({ jobId, techConsole }) { refetch={refetch} techConsole={techConsole} adjustments={data ? data.jobs_by_pk.lbr_adjustments : []} + job={job} /> ); } diff --git a/client/src/components/time-ticket-list/time-ticket-list.component.jsx b/client/src/components/time-ticket-list/time-ticket-list.component.jsx index 2da4d42b6..f37c74c78 100644 --- a/client/src/components/time-ticket-list/time-ticket-list.component.jsx +++ b/client/src/components/time-ticket-list/time-ticket-list.component.jsx @@ -224,6 +224,7 @@ export function TimeTicketList({ {t("timetickets.actions.enter")} diff --git a/client/src/pages/jobs-detail/jobs-detail.page.component.jsx b/client/src/pages/jobs-detail/jobs-detail.page.component.jsx index f0237cf20..f3cbbf2ed 100644 --- a/client/src/pages/jobs-detail/jobs-detail.page.component.jsx +++ b/client/src/pages/jobs-detail/jobs-detail.page.component.jsx @@ -243,7 +243,7 @@ export function JobsDetailPage({ } key="labor" > - +