fix(dashboard): exclude services from modal tertahan table and calculations #190

Closed
opened 2026-10-02 10:01:04 +00:00 by yuris · 0 comments
Owner

Problem

Services (jasa) have no physical inventory, shelf life, or holding cost, but can have inventory lots or show up in aging calculations. They should not appear in the "Modal Tertahan" (aging inventory >60 days) table or be included in its calculations (agedItems, agedTotalValue, agedSkuCount, agedPercent).

Acceptance Criteria

  1. Exclude items with type === 'Service' from agedItems, agedTotalValue, agedSkuCount, and agedPercent derivations in apps/management/app/(dashboard)/page.tsx.
  2. Exclude type === 'Service' from the Modal Tertahan table (AgingInventoryTable) in apps/management/app/(dashboard)/aging-inventory-table.tsx.
  3. In apps/management/lib/inventory/queries.ts, ensure getDashboardInventory filters out services from agedQty, agedCostValue, oldestAgedDate, and agedDays.
  4. Verification commands pass cleanly: pnpm verify:management.
## Problem Services (jasa) have no physical inventory, shelf life, or holding cost, but can have inventory lots or show up in aging calculations. They should not appear in the "Modal Tertahan" (aging inventory >60 days) table or be included in its calculations (agedItems, agedTotalValue, agedSkuCount, agedPercent). ## Acceptance Criteria 1. Exclude items with `type === 'Service'` from `agedItems`, `agedTotalValue`, `agedSkuCount`, and `agedPercent` derivations in `apps/management/app/(dashboard)/page.tsx`. 2. Exclude `type === 'Service'` from the Modal Tertahan table (`AgingInventoryTable`) in `apps/management/app/(dashboard)/aging-inventory-table.tsx`. 3. In `apps/management/lib/inventory/queries.ts`, ensure `getDashboardInventory` filters out services from `agedQty`, `agedCostValue`, `oldestAgedDate`, and `agedDays`. 4. Verification commands pass cleanly: `pnpm verify:management`.
yuris closed this issue 2026-10-02 10:18:45 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage#190
No description provided.