Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: hide shelves with 0 quantity

Brad Barbinf555adb854f2
diff --git a/apps/erp/app/components/Activity.tsx b/apps/erp/app/components/Activity.tsx
index e535a5f900..d357e312e2 100644
--- a/apps/erp/app/components/Activity.tsx
+++ b/apps/erp/app/components/Activity.tsx
@@ -33,7 +33,7 @@ const Activity = ({
<div className="flex-grow">
<p>
<span className="font-semibold mr-1">
- {person?.name ?? "Deactivated user"}
+ {person?.name ?? "CarbonOS Admin"}
</span>
<span className="text-gray-400">{activityMessage}</span>
</p>
diff --git a/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx b/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
index 53b897cea7..74a3971edc 100644
--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
@@ -89,17 +89,19 @@ const InventoryShelves = ({
</Tr>
</Thead>
<Tbody>
- {itemShelfQuantities.map((item, index) => (
- <Tr key={index}>
- <Td>
- {shelves.find((s) => s.id === item.shelfId)?.name ||
- item.shelfId}
- </Td>
- <Td>{item.batchNumber}</Td>
- <Td>{item.serialNumber}</Td>
- <Td>{item.quantity}</Td>
- </Tr>
- ))}
+ {itemShelfQuantities
+ .filter((item) => item.quantity !== 0)
+ .map((item, index) => (
+ <Tr key={index}>
+ <Td>
+ {shelves.find((s) => s.id === item.shelfId)?.name ||
+ item.shelfId}
+ </Td>
+ <Td>{item.batchNumber}</Td>
+ <Td>{item.serialNumber}</Td>
+ <Td>{item.quantity}</Td>
+ </Tr>
+ ))}
</Tbody>
</Table>
</CardContent>