in ./C4/Members.pm, IssueSlip function, $today string has "yyyy-mm-dd" format, but $it->{'issuedate'} and $it->{'due_date'} are in "yyyy-mm-ddThh:mm:ss" format, so the "eq" and "le" string comparisons made later are not going to work. suggested edition in ./C4/Members.pm: if ((substr $it->{'issuedate'}, 0, 10) eq $today) { $it->{'today'} = 1; } elsif ((substr $it->{'date_due'}, 0, 10) le $today) { $it->{'overdue'} = 1; } $it->{'date_due'}=format_date($it->{'date_due'}); } please accept my apologies for my lack of bugEtiquette.
Created attachment 9844 [details] [review] Bug 8129 - Quickslips not printing Implemented from the suggestions attached to the bug. To test: Check out a book to a patron Click print -> quick slip Slip should show only today's checkouts.
Created attachment 9848 [details] [review] Bug 8129 - Quickslips not printing Implemented from the suggestions attached to the bug. To test: Check out a book to a patron Click print -> quick slip Slip should show only today's checkouts. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Created attachment 9849 [details] [review] [SIGNED OFF] Bug 8129 - Quickslips not printing Implemented from the suggestions attached to the bug. To test: Check out a book to a patron Click print -> quick slip Slip should show only today's checkouts. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Handles the date formatting with substrings... not the most general approach, but it works. Less load on the system than using DateTime to cast as a date. Updates variable name from "$today" to "$now", which is more general in our new hourly loan context. I'm in favour. Marking as Passed QA.
Bug fix, pushed to 3.8.x will be in 3.8.2