feat: 統一度量衡,確保儀表板統計與庫存查詢清單數據精確一致
This commit is contained in:
@@ -40,6 +40,8 @@ interface InventoryItem {
|
||||
last_inbound: string | null;
|
||||
last_outbound: string | null;
|
||||
statuses: string[];
|
||||
is_grouped?: boolean;
|
||||
location: string | null;
|
||||
}
|
||||
|
||||
interface PaginationLink {
|
||||
@@ -491,18 +493,13 @@ export default function StockQueryIndex({
|
||||
<TableCell>
|
||||
{item.warehouse_name}
|
||||
</TableCell>
|
||||
<TableCell className="text-gray-500 text-sm">
|
||||
<TableCell className="text-gray-500 text-sm italic">
|
||||
{item.batch_number || "—"}
|
||||
</TableCell>
|
||||
<TableCell className="text-sm text-gray-500">
|
||||
<TableCell className="text-sm text-gray-500 italic">
|
||||
{item.location || "—"}
|
||||
</TableCell>
|
||||
<TableCell
|
||||
className={`text-right font-medium ${item.quantity < 0
|
||||
? "text-red-600"
|
||||
: ""
|
||||
}`}
|
||||
>
|
||||
<TableCell className={`text-right font-medium ${item.quantity < 0 ? "text-red-600" : ""}`}>
|
||||
{item.quantity}
|
||||
</TableCell>
|
||||
<TableCell className="text-right text-gray-500">
|
||||
|
||||
Reference in New Issue
Block a user