Ok got it thanks.

I just installed the sales report for my version of zen cart. I seem to have an issue with exporting csc format. The data is all wrong. When I view the sales in print format it seems to display everything correctly with sales tax collected and discounts given with shipping amounts. When I export the same date range into csv everything is not correct at all. Sales taxes are full amounts, not taking to consideration discount coupons and so are the total sales.

Looks like the program just takes quantity sold and multiplies it by price ignoring everything else. Any idea why this is happening?