Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

SalesSummary.cshtml

@model SalesSummarySearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Reports.SalesSummary").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Sales summary");
}

@{
    const string hideSearchBlockAttributeName = "SalesSummaryPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}

@T("Admin.Reports.SalesSummary")

 
@await Html.PartialAsync("Table", new DataTablesModel { Name = "salessummary-grid", UrlRead = new DataUrl("SalesSummaryList", "Report", null), SearchButtonId = "search-salessummary", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.StartDate), typeof(DateTime?)), new FilterParameter(nameof(Model.EndDate), typeof(DateTime?)), new FilterParameter(nameof(Model.StoreId)), new FilterParameter(nameof(Model.OrderStatusIds)), new FilterParameter(nameof(Model.PaymentStatusIds)), new FilterParameter(nameof(Model.CategoryId)), new FilterParameter(nameof(Model.ManufacturerId)), new FilterParameter(nameof(Model.BillingCountryId)), new FilterParameter(nameof(Model.ProductId)), new FilterParameter(nameof(Model.SearchGroupId)), new FilterParameter(nameof(Model.VendorId)) }, ColumnCollection = new List { new ColumnProperty(nameof(SalesSummaryModel.Summary)) { Title = T("Admin.Reports.SalesSummary.Fields.Summary").Text }, new ColumnProperty(nameof(SalesSummaryModel.NumberOfOrders)) { Title = T("Admin.Reports.SalesSummary.Fields.NumberOfOrders").Text, Width = "150" }, new ColumnProperty(nameof(SalesSummaryModel.ProfitStr)) { Title = T("Admin.Reports.SalesSummary.Fields.Profit").Text }, new ColumnProperty(nameof(SalesSummaryModel.Shipping)) { Title = T("Admin.Reports.SalesSummary.Fields.Shipping").Text }, new ColumnProperty(nameof(SalesSummaryModel.Tax)) { Title = T("Admin.Reports.SalesSummary.Fields.Tax").Text }, new ColumnProperty(nameof(SalesSummaryModel.OrderTotal)) { Title = T("Admin.Reports.SalesSummary.Fields.OrderTotal").Text }, } })