refactor: 調整統計基準為明細筆數,並恢復庫存查詢為單一細目顯示模式

This commit is contained in:
2026-02-10 11:15:08 +08:00
parent 38642cc58b
commit 83d26de6f9
2 changed files with 43 additions and 70 deletions

View File

@@ -40,7 +40,6 @@ interface InventoryItem {
last_inbound: string | null;
last_outbound: string | null;
statuses: string[];
is_grouped?: boolean;
location: string | null;
}
@@ -493,10 +492,10 @@ export default function StockQueryIndex({
<TableCell>
{item.warehouse_name}
</TableCell>
<TableCell className="text-gray-500 text-sm italic">
<TableCell className="text-gray-500 text-sm">
{item.batch_number || "—"}
</TableCell>
<TableCell className="text-sm text-gray-500 italic">
<TableCell className="text-sm text-gray-500">
{item.location || "—"}
</TableCell>
<TableCell className={`text-right font-medium ${item.quantity < 0 ? "text-red-600" : ""}`}>