From 20c691df74b258fe415a6b7bde8242c2c3a7d8a0 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 --- 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.20.1