fix(dashboard): exclude services from modal tertahan table and calculations #190
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
type === 'Service'fromagedItems,agedTotalValue,agedSkuCount, andagedPercentderivations inapps/management/app/(dashboard)/page.tsx.type === 'Service'from the Modal Tertahan table (AgingInventoryTable) inapps/management/app/(dashboard)/aging-inventory-table.tsx.apps/management/lib/inventory/queries.ts, ensuregetDashboardInventoryfilters out services fromagedQty,agedCostValue,oldestAgedDate, andagedDays.pnpm verify:management.