Bugzilla – Attachment 128453 Details for
Bug 28481
Register details "Older transactions" search does not include the selected day in the "To" field in date range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28481: Make 'to' date inclusive.
Bug-28481-Make-to-date-inclusive.patch (text/plain), 1.07 KB, created by
Jonathan Druart
on 2021-12-13 12:03:43 UTC
(
hide
)
Description:
Bug 28481: Make 'to' date inclusive.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-12-13 12:03:43 UTC
Size:
1.07 KB
patch
obsolete
>From 3129c3ebd959e8c6ad4c90d40217ac6f87486e58 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 <david@davidnind.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28481
:
128065
|
128090
|
128428
|
128429
| 128453 |
128454
|
128640