LP#1841089 Apply button in Patron Bill History screen is in confusing location user/sandbergja/lp1841089_remove_bill_history_apply_btn_signoff
authorDan Briem <dbriem@wlsmail.org>
Sat, 24 Aug 2019 18:44:01 +0000 (14:44 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 17 Sep 2019 15:27:06 +0000 (08:27 -0700)
commitbff0ebc38e333921bd81f9b77998e221ae440505
treee3c09cee72852be7caabe8371fec93cb5a69d4a5
parent5489249b535f2817a5da3e862dd59f1501434e87
LP#1841089 Apply button in Patron Bill History screen is in confusing location

It's possible to miss the apply button for the date range in bill history
because it's located before the datepickers. The interface also allows
invalid date ranges.

This removes the apply button and watches the start and finish dates in the
bill history and payment history controllers. If it's not first init and they
are valid date objects in a valid date range, the grid refreshes with the new
date range query. If start > finish they are set equal to each other to force
a valid range.

To test:

1. Apply patch
2. Bring up a patron with bills and payments (or add bills and payments)
3. Under the Bills tab click History
4. Change the date range and observe that the grid refreshes
5. Try to set the start date past the finish date and vice versa

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/circ/patron/t_bill_history.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js