diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 8c489c2bd..c7321fcd0 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -4024,6 +4024,27 @@ timetickets + + edit + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + enter false diff --git a/client/src/components/shop-info/shop-info.rbac.component.jsx b/client/src/components/shop-info/shop-info.rbac.component.jsx index c2e49462b..3cc24227a 100644 --- a/client/src/components/shop-info/shop-info.rbac.component.jsx +++ b/client/src/components/shop-info/shop-info.rbac.component.jsx @@ -405,6 +405,18 @@ export default function ShopInfoRbacComponent({ form }) { > + + + ( + + ({ + title: t("general.labels.actions"), + dataIndex: "actions", + key: "actions", + render: (text, record) => ( +
+ {!!techConsole && ( {t("general.actions.edit")} - ), - } - : null, + )} + {!techConsole && ( + { + return
; + }} + > + + {t("general.actions.edit")} + + + )} +
+ ), + }: null), ]; const handleTableChange = (pagination, filters, sorter) => { diff --git a/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx b/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx index 06e66fb3e..b2f27d121 100644 --- a/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx +++ b/client/src/components/time-ticket-modal/time-ticket-modal.container.jsx @@ -181,6 +181,7 @@ export function TimeTicketModalContainer({ jobid: (timeTicketModal.context.timeticket.job && timeTicketModal.context.timeticket.job.id) || + timeTicketModal.context.timeticket.jobid || null, date: timeTicketModal.context.timeticket.date ? moment(timeTicketModal.context.date) diff --git a/client/src/graphql/timetickets.queries.js b/client/src/graphql/timetickets.queries.js index 0d2474712..d4758dbcd 100644 --- a/client/src/graphql/timetickets.queries.js +++ b/client/src/graphql/timetickets.queries.js @@ -36,6 +36,7 @@ export const QUERY_TIME_TICKETS_IN_RANGE = gql` rate productivehrs memo + jobid job { id ro_number diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 7d20d4030..cbcf23424 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -277,6 +277,7 @@ "vendors": "Shop -> Vendors" }, "timetickets": { + "edit": "Time Tickets -> Edit", "enter": "Time Tickets -> Enter", "list": "Time Tickets -> List" } diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 84b973399..8acef73f0 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -277,6 +277,7 @@ "vendors": "" }, "timetickets": { + "edit": "", "enter": "", "list": "" } diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 19548c7d7..3b0284a07 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -277,6 +277,7 @@ "vendors": "" }, "timetickets": { + "edit": "", "enter": "", "list": "" }