Skip to content

Commit

Permalink
take new wcb-pending-approval status into consideration when doing th…
Browse files Browse the repository at this point in the history
…e overdue vendor payments list
  • Loading branch information
timiwahalahti authored and renintw committed May 20, 2024
1 parent d776e1b commit 484386d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function prepare_items() {
$order = 'asc';

if ( 'overdue' == $view ) {
$where .= $wpdb->prepare( " AND `status` = 'wcb-pending-approval' AND `due` > 0 AND `due` <= %d ", time() );
$where .= $wpdb->prepare( " AND `status` IN ( 'wcb-pending-approval', 'wcb-needs-followup' ) AND `due` > 0 AND `due` <= %d ", time() );
} elseif ( 'pending-approval' == $view ) {
$where .= " AND `status` = 'wcb-pending-approval' ";
} elseif ( 'approved' == $view ) {
Expand Down

0 comments on commit 484386d

Please sign in to comment.