IO-1912 Resolve date for tech clock in.

This commit is contained in:
Patrick Fic
2022-05-27 14:34:02 -07:00
parent 885a861f1e
commit 595ec72edd
3 changed files with 11 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ export function TechClockOffButton({
const handleFinish = async (values) => {
logImEXEvent("tech_clock_out_job");
console.log(values);
setLoading(true);
const result = await updateTimeticket({
variables: {
@@ -55,9 +55,10 @@ export function TechClockOffButton({
timeticket: {
clockoff: (await axios.post("/utils/time")).data,
...values,
rate: emps && emps.rates.filter(
(r) => r.cost_center === values.cost_center
)[0]?.rate,
rate:
emps &&
emps.rates.filter((r) => r.cost_center === values.cost_center)[0]
?.rate,
ciecacode:
bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber
? values.cost_center