+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+
+ const handleClick = (e) => {
+ setLoading(true);
+ const v = job.joblines.reduce(
+ (acc, val) => {
+ if (val.mod_lbr_ty === "LAB")
+ acc = { ...acc, bodyhrs: acc.bodyhrs + val.mod_lb_hrs };
+ if (val.mod_lbr_ty === "LAR")
+ acc = { ...acc, painthrs: acc.painthrs + val.mod_lb_hrs };
+ return acc;
+ },
+ {
+ bodyhrs: 0,
+ painthrs: 0,
+ }
+ );
+ form.setFieldsValue({
+ date: new moment(),
+ bodyhrs: Math.round(v.bodyhrs * 10) / 10,
+ painthrs: Math.round(v.painthrs * 10) / 10,
+ });
+ setVisibility(true);
+ setLoading(false);
+ };
+
+ return (
+