feat: 實作即時庫存查詢功能、儀表板庫存導盤,及優化手動入庫批號與儲位連動與選單顯示

This commit is contained in:
2026-02-10 10:47:31 +08:00
parent 6980eac1a4
commit a6393e03d8
12 changed files with 1401 additions and 198 deletions

View File

@@ -295,7 +295,8 @@ class InventoryController extends Controller
'originCountry' => $inventory->origin_country,
'expiryDate' => $inventory->expiry_date ? $inventory->expiry_date->format('Y-m-d') : null,
'quantity' => (float) $inventory->quantity,
'unitCost' => (float) $inventory->unit_cost, // 新增
'unitCost' => (float) $inventory->unit_cost,
'location' => $inventory->location,
];
});