IO-837 Fix Tech Clocking issue
This commit is contained in:
@@ -31,17 +31,10 @@ export function TechClockOffButton({
|
|||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const emps = bodyshop.employees.filter(
|
const emps = bodyshop.employees.filter(
|
||||||
(e) => e.id === technician && technician.id
|
(e) => e.id === (technician && technician.id)
|
||||||
)[0];
|
)[0];
|
||||||
|
|
||||||
console.log(
|
console.log(emps && emps.rates);
|
||||||
"emps :>> ",
|
|
||||||
emps,
|
|
||||||
"e",
|
|
||||||
bodyshop && bodyshop.employees,
|
|
||||||
"tech",
|
|
||||||
technician
|
|
||||||
);
|
|
||||||
|
|
||||||
const handleFinish = async (values) => {
|
const handleFinish = async (values) => {
|
||||||
logImEXEvent("tech_clock_out_job");
|
logImEXEvent("tech_clock_out_job");
|
||||||
|
|||||||
Reference in New Issue
Block a user