Skip to content

Commit

Permalink
fixed query when using 'new' type
Browse files Browse the repository at this point in the history
  • Loading branch information
ideadude authored and dparker1005 committed Jun 24, 2024
1 parent 59ec346 commit da6801e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminpages/reports/sales.php
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ function pmpro_getRevenue( $period, $levels = NULL, $type = 'all' ) {
ON mo1.user_id = mo2.user_id
AND mo2.total > 0
AND mo2.status NOT IN('refunded', 'review', 'token', 'error')
AND mo2.timestamp < mo1.end_timestamp
AND mo2.timestamp < mo1.timestamp
AND mo2.gateway_environment = '" . esc_sql( $gateway_environment ) . "' ";
}

Expand Down

0 comments on commit da6801e

Please sign in to comment.