Dashboard Stats does not exclude orders that were trashed

Marketpress V


If orders are trashed in Manage Orders they are still being included in the dashboard stats. Trashed orders are typically never fulfilled. Hence, the query should include a filter for excluding them in the stats.

I added this to each query WHERE clause:

‘AND p.post_status != ‘trash’`

Your thoughts?

Merv (@lzw8bk)