From 3129c3ebd959e8c6ad4c90d40217ac6f87486e58 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 29 Nov 2021 10:46:06 +0000 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart --- pos/register.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/pos/register.pl b/pos/register.pl index 490fe111271..0949b2d074a 100755 --- a/pos/register.pl +++ b/pos/register.pl @@ -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) { -- 2.25.1