Update parts status counter to exclude sublets.

This commit is contained in:
Patrick Fic
2022-04-18 14:34:36 -07:00
parent 74297052d4
commit 65783cde07

View File

@@ -16,6 +16,7 @@ export function JobPartsQueueCount({ bodyshop, parts }) {
if (!parts) return null;
return parts.reduce(
(acc, val) => {
if (val.part_type === "PAS" || val.part_type === "PASL") return acc;
acc.total = acc.total + val.count;
acc[val.status] = acc[val.status] + val.count;