Anyway, I'm adding the ability to support royalty payments on certain types of products and I've run into a situation where I need to add another property to the SalesSummary and OrderSummary classes. (Well, and others, too.) So as to avoid getting my changes stomped the next time AC releases a patch/update, I'm subclassing them into custom classes. But this causes another problem, namely that I need to roll my own version of (for example) ReportDataSource.GetMonthlySales().
Rather than continue playing detective in the database in order to figure out how each of the SalesSummary properties are calculated and where that data comes from, I'm hoping someone here (maybe Logan or someone from AC?) can tell me which tables and fields (and/or calculations) are used to determine:
- OrderCount
- ProductTotal
- ShippingTotal
- TaxTotal
- DiscountTotal
- CouponTotal
- OtherTotal
- ProfitTotal
- GrandTotal

Thanks,
Steve