Merged in release/2022-01-14 (pull request #341)

IO-1632 Resolve missing cieca code on clock out.
This commit is contained in:
Patrick Fic
2022-01-11 19:40:43 +00:00

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