Code: Select all
public static IList<ProductBreakdownSummary> GetProductBreakdownSummary(
DateTime fromDate,
DateTime toDate,
int vendorId,
string sortExpression
)
Code: Select all
public static IList<ProductBreakdownSummary> GetProductBreakdownSummary(
DateTime fromDate,
DateTime toDate,
int vendorId,
string sortExpression
)
What about first get the break down summary using current method but make sure pass 0 as vendor id so that it doesn't filter over vendors. Once you have the result set you process it again and this time filter them over products which have desired manufacturer. This will have some performance hit to due to double processing but it should be the easiest option with much less effort.abradley wrote:Hi all, I am working on making improvements to the sales reports. The method the GOLD sales report uses to populate the grid is:We do not have a need for vendor at all, is it possible to get this functionality with a filter on Manufacturer instead without the source code? Im pretty sure I can hack something up of course but I feel there is an easier way I am overlooking(obviously the easiest is source -_- ).Code: Select all
public static IList<ProductBreakdownSummary> GetProductBreakdownSummary( DateTime fromDate, DateTime toDate, int vendorId, string sortExpression )
While reading about Nhibernate you will come across HBM mappings! I posted the instructions about how to enable Visual Studio IntelliSense support for them here viewtopic.php?f=47&t=18091abradley wrote:So your idea is good Mazhar, and it works as intended. We did buy the source code so I know we can get this done now. Right now my main obstacle is grabbing the sales data on each product's variants. I need a 30, 60, and 90 day "quantity sold" for each variant of every product in a manufacturer line. Time to read up on some nhibernate