Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ReportDataSource Class / GetSalesByCouponCount Method
Inclusive start date to consider
Inclusive end date to consider
The coupon code to get sales details for
In This Topic
    GetSalesByCouponCount Method
    In This Topic
    Gets the record count for sales by coupon report with given criteria
    Syntax
    public static int GetSalesByCouponCount( 
       DateTime startDate,
       DateTime endDate,
       string couponCode
    )

    Parameters

    startDate
    Inclusive start date to consider
    endDate
    Inclusive end date to consider
    couponCode
    The coupon code to get sales details for

    Return Value

    Number of records for sales by coupon report with given criteria
    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