Bug 28481: Make 'to' date inclusive.

Test Plan:
1) Sell an item
2) Cash up to make the sale historical
3) Search "Older transactions" with both dates being the current date,
   click "Display" to search
4) Note you get no results
5) Apply the patch
6) You should now see your transaction

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2021-11-29 10:46:06 +00:00 committed by Fridolin Somers
parent 5bfe34a375
commit 7974ecbeab
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ else {
: $last_cashup ? $last_cashup->timestamp
: '';
my $end = dt_from_string($transactions_range_to);
$end = $end->add(days => 1); # To should be 'inclusive'
if ($transactions_range_from) {