Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reports - CustomerOrdersTotal


haphazardlynamed

Recommended Posts

In reports, there is currently a report to list customer buying totals

 

I want one that is more detailed though

and perhaps only totals the orders that the customer has actually paid for (not orders that are still in progress or unpaid)

 

and i also want a second report for finding account balance - totals up the customer orders that have been placed, but not paid

 

Is there an extension to do this?

 

Im having a heck of a time coming up with a mysql query to do precisely this

 

the first one is easy total all products where the order_status_history contains status=paid

 

the second one is hard

total all products where the order_status_history!=paid but since orders have multiple history entries, any number of them would qualify as !paid

this has me stumped...

Link to comment
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...