@model OrderModel
@T("Admin.Orders.Fields.BillingAddress")
@Model.BillingAddress.FirstName @Model.BillingAddress.LastName
@Model.BillingAddress.Email
@Model.BillingAddress.PhoneNumber
@Model.BillingAddress.FaxNumber
@Model.BillingAddress.Company
@Model.BillingAddress.Address1
@Model.BillingAddress.Address2
@Model.BillingAddress.City
@Model.BillingAddress.County
@Model.BillingAddress.StateProvinceName
@Model.BillingAddress.ZipPostalCode
@Model.BillingAddress.CountryName
@if (!string.IsNullOrEmpty(Model.BillingAddress.FormattedCustomAddressAttributes)) {
@Html.Raw(Model.BillingAddress.FormattedCustomAddressAttributes)
}
@if (!Model.IsLoggedInAsVendor) { }
@if (Model.IsShippable) { if (!Model.PickupInStore && Model.ShippingAddress != null) {
@T("Admin.Orders.Fields.ShippingAddress")
@Model.ShippingAddress.FirstName @Model.ShippingAddress.LastName
@Model.ShippingAddress.Email
@Model.ShippingAddress.PhoneNumber
@Model.ShippingAddress.FaxNumber
@Model.ShippingAddress.Company
@Model.ShippingAddress.Address1
@Model.ShippingAddress.Address2
@Model.ShippingAddress.City
@Model.ShippingAddress.County
@Model.ShippingAddress.StateProvinceName
@Model.ShippingAddress.ZipPostalCode
@Model.ShippingAddress.CountryName
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderShippingAddressDetailsBottom, additionalData = Model }) @if (!string.IsNullOrEmpty(Model.ShippingAddress.FormattedCustomAddressAttributes)) {
@Html.Raw(Model.ShippingAddress.FormattedCustomAddressAttributes)
}
} if (Model.PickupInStore && Model.PickupAddress != null) {
@T("Admin.Orders.Fields.PickupAddress")
@if (!string.IsNullOrEmpty(Model.PickupAddress.Address1)) {
@Model.PickupAddress.Address1
} @if (!string.IsNullOrEmpty(Model.PickupAddress.City)) {
@Model.PickupAddress.City
} @if (!string.IsNullOrEmpty(Model.PickupAddress.County)) {
@Model.PickupAddress.County
} @if (!string.IsNullOrEmpty(Model.PickupAddress.CountryName)) {
@Model.PickupAddress.CountryName
} @if (!string.IsNullOrEmpty(Model.PickupAddress.ZipPostalCode)) {
@Model.PickupAddress.ZipPostalCode
}
} } else {
@T("Admin.Orders.ShippingInfo.NotRequired")
}
@if (Model.IsShippable) {
@if (!Model.IsLoggedInAsVendor) {
@Model.ShippingMethod
} else {
@Model.ShippingMethod
}
@if (!Model.IsLoggedInAsVendor) {
@Model.ShippingStatus
}
@T("Admin.Orders.Shipments")
@await Html.PartialAsync("Table", new DataTablesModel { Name = "shipments-grid", UrlRead = new DataUrl("ShipmentsByOrder", "Order", new RouteValueDictionary { [nameof(OrderShipmentSearchModel.OrderId)] = Model.Id }), PrimaryKeyColumn = nameof(ShipmentModel.Id), Length = Model.OrderShipmentSearchModel.PageSize, LengthMenu = Model.OrderShipmentSearchModel.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(null) { Render = new RenderChildCaret(), Width = "5", Searchable = false, ClassName = NopColumnClassDefaults.ChildControl }, new ColumnProperty(nameof(ShipmentModel.Id)) { Title = T("Admin.Orders.Shipments.ID").Text, Width = "50" }, new ColumnProperty(nameof(ShipmentModel.CustomOrderNumber)) { Title = T("Admin.Orders.Shipments.CustomOrderNumber").Text, Width = "100" }, new ColumnProperty(nameof(ShipmentModel.TrackingNumber)) { Title = T("Admin.Orders.Shipments.TrackingNumber").Text, Width = "100" }, new ColumnProperty(nameof(ShipmentModel.TotalWeight)) { Title = T("Admin.Orders.Shipments.TotalWeight").Text, Width = "100" }, (Model.PickupInStore ? new ColumnProperty(nameof(ShipmentModel.ReadyForPickupDate)) { Title = T("Admin.Orders.Shipments.ReadyForPickupDate").Text, Width = "100" } : new ColumnProperty(nameof(ShipmentModel.ShippedDate)) { Title = T("Admin.Orders.Shipments.ShippedDate").Text, Width = "100" }), new ColumnProperty(nameof(ShipmentModel.DeliveryDate)) { Title = T("Admin.Orders.Shipments.DeliveryDate").Text, Width = "100" }, new ColumnProperty(nameof(ShipmentModel.Id)) { Title = T("Admin.Common.View").Text, Width = "50", Render = new RenderButtonView(new DataUrl("~/Admin/Order/ShipmentDetails/")) } }, ChildTable = new DataTablesModel { Name = "shipment-items-grid", UrlRead = new DataUrl("ShipmentsItemsByShipmentId", "Order", null), IsChildTable = true, Length = Model.OrderShipmentSearchModel.PageSize, LengthMenu = Model.OrderShipmentSearchModel.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(ShipmentItemSearchModel.ShipmentId), nameof(ShipmentModel.Id), true) }, ColumnCollection = new List { new ColumnProperty(nameof(ShipmentItemModel.ProductName)) { Title = T("Admin.Orders.Shipments.Products.ProductName").Text, Width = "400" }, new ColumnProperty(nameof(ShipmentItemModel.ShippedFromWarehouse)) { Title = T("Admin.Orders.Shipments.Products.Warehouse").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentItemModel.QuantityInThisShipment)) { Title = T("Admin.Orders.Shipments.Products.QtyShipped").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentItemModel.ItemWeight)) { Title = T("Admin.Orders.Shipments.Products.ItemWeight").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentItemModel.ItemDimensions)) { Title = T("Admin.Orders.Shipments.Products.ItemDimensions").Text, Width = "150" } } } })
@if (Model.CanAddNewShipments) { }
}