Resolved issues on time ticket modal IO-563
This commit is contained in:
@@ -21,7 +21,6 @@ export function LaborAllocationsTable({
|
||||
adjustments,
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [totals, setTotals] = useState([]);
|
||||
useEffect(() => {
|
||||
if (!!joblines && !!timetickets && !!bodyshop);
|
||||
@@ -33,7 +32,8 @@ export function LaborAllocationsTable({
|
||||
adjustments
|
||||
)
|
||||
);
|
||||
}, [joblines, timetickets, bodyshop, adjustments]);
|
||||
if (!jobId) setTotals([]);
|
||||
}, [joblines, timetickets, bodyshop, adjustments, jobId]);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
@@ -6,7 +6,7 @@ export const CalculateAllocationsTotals = (
|
||||
) => {
|
||||
const jobCodes = joblines.map((item) => item.mod_lbr_ty);
|
||||
//.filter((value, index, self) => self.indexOf(value) === index && !!value);
|
||||
const ticketCodes = timetickets.map((item) => item.cieca_code);
|
||||
const ticketCodes = timetickets.map((item) => item.ciecacode);
|
||||
//.filter((value, index, self) => self.indexOf(value) === index && !!value);
|
||||
const allCodes = [...jobCodes, ...ticketCodes].filter(
|
||||
(value, index, self) => self.indexOf(value) === index && !!value
|
||||
|
||||
Reference in New Issue
Block a user