From 7974ecbeabe51643bf83e6ce3a7ebc8c9cabcce6 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 Signed-off-by: Fridolin Somers --- pos/register.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/pos/register.pl b/pos/register.pl index 490fe11127..0949b2d074 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.39.5