Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ReportDataSource Class / GetSalesSummary Method
Inclusive start date for sales summary; if startDate.Kind is not DateTimeKind.Utc, the date is converted from store local time.
Inclusive end date for sales summary; if endDate.Kind is not DateTimeKind.Utc, the date is converted from store local time.
Indicates the user count should be updated or not
In This Topic
    GetSalesSummary Method
    In This Topic
    Builds a sales summary for the given period.
    Syntax
    public static SalesSummary GetSalesSummary( 
       DateTime startDate,
       DateTime endDate,
       bool updateUserCount
    )

    Parameters

    startDate
    Inclusive start date for sales summary; if startDate.Kind is not DateTimeKind.Utc, the date is converted from store local time.
    endDate
    Inclusive end date for sales summary; if endDate.Kind is not DateTimeKind.Utc, the date is converted from store local time.
    updateUserCount
    Indicates the user count should be updated or not

    Return Value

    A sales summary for the given period.
    Remarks
    The StartDate and EndDate properies of the returned summary are in store local time to simplify use in reports.
    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