Bugzilla – Attachment 128090 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), 1015 bytes, created by
David Nind
on 2021-11-29 20:51:46 UTC
(
hide
)
Description:
Bug 28481: Make 'to' date inclusive.
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-11-29 20:51:46 UTC
Size:
1015 bytes
patch
obsolete
>From 0985960ff05a622cd4c2526b3314be01a7ac5bee 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> >--- > 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
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