Merged in release/2022-01-14 (pull request #341)
IO-1632 Resolve missing cieca code on clock out.
This commit is contained in:
@@ -55,6 +55,17 @@ export function TechClockOffButton({
|
|||||||
timeticket: {
|
timeticket: {
|
||||||
clockoff: (await axios.post("/utils/time")).data,
|
clockoff: (await axios.post("/utils/time")).data,
|
||||||
...values,
|
...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
|
||||||
|
);
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user