feat: 實作出貨單模組並暫時導向通用製作中頁面,同步優化盤點與調撥功能的活動日誌顯示
This commit is contained in:
@@ -188,6 +188,14 @@ class InventoryService implements InventoryServiceInterface
|
||||
});
|
||||
}
|
||||
|
||||
public function findInventoryByBatch(int $warehouseId, int $productId, ?string $batchNumber)
|
||||
{
|
||||
return Inventory::where('warehouse_id', $warehouseId)
|
||||
->where('product_id', $productId)
|
||||
->where('batch_number', $batchNumber)
|
||||
->first();
|
||||
}
|
||||
|
||||
public function getDashboardStats(): array
|
||||
{
|
||||
// 庫存總表 join 安全庫存表,計算低庫存
|
||||
|
||||
Reference in New Issue
Block a user