public static IReportInfo CustomerSalesDetailReport(IEnumerable <CustomerSaleDetailOrderInfo> orders)
        {
            var orderItems = orders.SelectMany(x => x.OrderItems).ToArray();

            return(GetReportInfo(SortByAndDateRangeViewModel.Create(),
                                 p => ReportFactory.CustomerSalesDetailReport(orders, orderItems, p.SortDirection == SortByPrintMode.SortByOrderDate, p.FromDate, p.ToDate)));
        }
 public static IReportInfo SalesOrdersSummaryReport(IEnumerable <SaleSummaryInfo> sales)
 {
     return(GetReportInfo(SortByAndDateRangeViewModel.Create(), p => ReportFactory.SalesOrdersSummaryReport(sales, p.SortDirection == SortByPrintMode.SortByOrderDate, p.FromDate, p.ToDate)));
 }
 public static IReportInfo CustomerSalesSummaryReport(IEnumerable <CustomerSaleDetailOrderItemInfo> sales)
 {
     return(GetReportInfo(SortByAndDateRangeViewModel.Create(), p => ReportFactory.CustomerSalesSummaryReport(sales, p.SortDirection == SortByPrintMode.SortByOrderDate, p.FromDate, p.ToDate)));
 }
 public static IReportInfo ProductOrders(IEnumerable <OrderItem> sales, IList <State> states)
 {
     return(GetReportInfo(SortByAndDateRangeViewModel.Create(), p => ReportFactory.ProductOrders(sales, states, p.SortDirection == SortByPrintMode.SortByOrderDate, p.FromDate, p.ToDate)));
 }
 public static IReportInfo SalesRevenueAnalysisReport(IEnumerable <OrderItem> sales)
 {
     return(GetReportInfo(SortByAndDateRangeViewModel.Create(), p => ReportFactory.SalesRevenueAnalysisReport(sales, p.SortDirection == SortByPrintMode.SortByOrderDate)));
 }