IO-1632 Resolve missing cieca code on clock out.

This commit is contained in:
Patrick Fic
2022-01-11 11:39:56 -08:00
parent 1c2a64cf50
commit 9714371a36

View File

@@ -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
);
}),
},
},
});