mojoPortal API Documentation
CommerceReport Class
mojoPortalmojoPortal.BusinessCommerceReport
A common repository where ecommerce features can push in their sales results. This makes it possible to create one set of reports instead of having to create them for each feature. It also allows aggregating at the site level across commerce features.
Declaration Syntax
C#
public static class CommerceReport
Members
All MembersMethods



IconMemberDescription
AddRow(Guid, Guid, Guid, Guid, Guid, String, Guid, Guid, String, Int32, Decimal, Decimal, DateTime, String, String, String, String)
Inserts a row in the mp_CommerceReport table. Returns rows affected count.

CreateOrder(Guid, Guid, Guid, Guid, Guid, Guid, String, String, String, String, String, String, String, String, String, String, String, Decimal, Decimal, Decimal, Decimal, DateTime, String, String, DateTime)
Inserts a row in the mp_CommerceReportOrders table. Returns rows affected count.

Delete(Guid)
Deletes an instance of CommerceReport. Returns true on success.

DeleteByModule(Guid)
Deletes a row from the mp_CommerceReport table. Returns true if row deleted.

DeleteBySite(Guid)
Deletes rows from the mp_CommerceReport table. Returns true if row deleted.

DeleteOrder(Guid)
Deletes a row from the mp_CommerceReportOrders table. Returns true if row deleted.

GetAllTimeRevenueByModule(Guid)
GetAllTimeRevenueBySite(Guid)
GetItemRevenueByModule(Guid)
GetItemRevenueBySite(Guid)
GetItemsPageByModule(Guid, Int32, Int32, Int32%)
Gets a page of data from the mp_CommerceReport table.

GetSalesByYearByModule(Guid)
GetSalesByYearMonthByItem(Guid)
GetSalesByYearMonthByModule(Guid)
GetSalesByYearMonthBySite(Guid)
GetSalesByYearMonthByUser(Guid)
GetSalesGroupedByModule(Guid)
GetSalesGroupedByUser(Guid)
GetUserItemPageBySite(Guid, Int32, Int32, Int32%)
Gets a page of data from the mp_CommerceReport table.

GetUserItemsPage(Guid, Guid, Int32, Int32, Int32%)
Gets a page of data from the mp_CommerceReport table.

Inheritance Hierarchy
Object
CommerceReport

Assembly: mojoPortal.Business (Module: mojoPortal.Business) Version: 1.0.4378.24525