Skip to content

Commit

Permalink
Use today's date in list view to be more consistent with status helper
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Sep 6, 2022
1 parent 149e7e9 commit 406583a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/org/openpsa/invoices/handler/list.php
Expand Up @@ -67,12 +67,12 @@ public function get_qb(string $field = null, string $direction = 'ASC', array $s
case 'overdue':
$qb->add_constraint('sent', '>', 0);
$qb->add_constraint('paid', '=', 0);
$qb->add_constraint('due', '<=', strtotime('yesterday'));
$qb->add_constraint('due', '<=', strtotime('today'));
break;
case 'open':
$qb->add_constraint('sent', '>', 0);
$qb->add_constraint('paid', '=', 0);
$qb->add_constraint('due', '>', strtotime('yesterday'));
$qb->add_constraint('due', '>', strtotime('today'));
break;
}

Expand Down

0 comments on commit 406583a

Please sign in to comment.