Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ReportDataSource Class / GetSalesByCoupon Method / GetSalesByCoupon(DateTime,DateTime,String,Int32,Int32) Method
Inclusive start date to consider
Inclusive end date to consider
The coupon code to get sales details for
Maximum number of rows to retrieve
Starting index from where to start retrieving
In This Topic
    GetSalesByCoupon(DateTime,DateTime,String,Int32,Int32) Method
    In This Topic
    Gets details of sales by given coupon code
    Syntax
    [DataObjectMethod(DataObjectMethodType.Select)]
    public static IList<CouponSummary> GetSalesByCoupon( 
       DateTime startDate,
       DateTime endDate,
       string couponCode,
       int maximumRows,
       int startRowIndex
    )

    Parameters

    startDate
    Inclusive start date to consider
    endDate
    Inclusive end date to consider
    couponCode
    The coupon code to get sales details for
    maximumRows
    Maximum number of rows to retrieve
    startRowIndex
    Starting index from where to start retrieving

    Return Value

    A list of CouponSalesSummary objects
    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