diff --git a/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx b/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx index c0681c0e6..7e4cd8a79 100644 --- a/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx +++ b/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx @@ -55,6 +55,17 @@ export function TechClockOffButton({ timeticket: { clockoff: (await axios.post("/utils/time")).data, ...values, + ciecacode: + bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber + ? values.cost_center + : Object.keys( + bodyshop.md_responsibility_centers.defaults.costs + ).find((key) => { + return ( + bodyshop.md_responsibility_centers.defaults.costs[key] === + values.cost_center + ); + }), }, }, });