@page @using BakeryErp.Infrastructure.Database @using BakeryErp.Infrastructure.Repositories @model TransfersModel @{ ViewData["Title"] = "中央廚房調撥"; } @if (!string.IsNullOrWhiteSpace(Model.Message)) {
@Model.Message
} @if (!string.IsNullOrWhiteSpace(Model.ErrorMessage)) {
@Model.ErrorMessage
}
調撥單數 @Model.Report.OrderCount
門市叫貨 @Model.Report.StoreRequestedCount
已備貨 @Model.Report.PreparedCount
配送中 @Model.Report.InTransitCount
差異數量 @Model.Report.DifferenceQuantityTotal.ToString("N0")

@(Model.Form.Id == Guid.Empty ? "門市叫貨" : "編輯調撥單")

清空表單
@foreach (var store in Model.StoreOptions) { } @foreach (var warehouse in Model.WarehouseOptions) { } @foreach (var item in Model.ItemOptions) { } @foreach (var item in Model.ItemOptions) { } @foreach (var unit in Model.ItemOptions.Select(item => item.Unit).Distinct()) { }

中央廚房調撥清單

@Model.Orders.Count 筆
@foreach (var order in Model.Orders) { }
狀態 調撥單號 門市 品項 叫貨 備貨 出庫 收貨 差異 操作
@TransferRepository.GetStatusName(order.Status) @order.TransferNumber @order.StoreName @order.ItemName @order.RequestedQuantity.ToString("N2") @order.Unit @order.PreparedQuantity.ToString("N2") @order.ShippedQuantity.ToString("N2") @order.ReceivedQuantity.ToString("N2") @order.DifferenceQuantity.ToString("N2") @if (order.Status is LocalTransferStatus.StoreRequested or LocalTransferStatus.Prepared) { 編輯 } @if (order.Status == LocalTransferStatus.StoreRequested) {
} @if (order.Status == LocalTransferStatus.Prepared) {
} @if (order.Status == LocalTransferStatus.InTransit) {
} @if (order.Status is not LocalTransferStatus.Completed and not LocalTransferStatus.Cancelled) {
}