Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ReportDataSource Class / GetMonthlySales Method / GetMonthlySales(DateTime,DateTime) Method
The year to generate sales summaries for.
The month to generate sales summaries for.
In This Topic
    GetMonthlySales(DateTime,DateTime) Method
    In This Topic
    Generates sales summaries for each day in the given month.
    Syntax
    [DataObjectMethod(DataObjectMethodType.Select)]
    public static IList<SalesSummary> GetMonthlySales( 
       DateTime startDate,
       DateTime endDate
    )

    Parameters

    startDate
    The year to generate sales summaries for.
    endDate
    The month to generate sales summaries for.

    Return Value

    A list of SalesSummary, one for each day in the month. StartDate and EndDate properties of the SalesSummary are in store local time.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also