Update parts status counter to exclude sublets.
This commit is contained in:
@@ -16,6 +16,7 @@ export function JobPartsQueueCount({ bodyshop, parts }) {
|
|||||||
if (!parts) return null;
|
if (!parts) return null;
|
||||||
return parts.reduce(
|
return parts.reduce(
|
||||||
(acc, val) => {
|
(acc, val) => {
|
||||||
|
if (val.part_type === "PAS" || val.part_type === "PASL") return acc;
|
||||||
acc.total = acc.total + val.count;
|
acc.total = acc.total + val.count;
|
||||||
acc[val.status] = acc[val.status] + val.count;
|
acc[val.status] = acc[val.status] + val.count;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user