LP2002343: cash reports end date cannot come before start date user/sandbergja/lp2002343-validate-cash-reports-dates
authorJane Sandberg <js7389@princeton.edu>
Sun, 14 May 2023 07:58:17 +0000 (00:58 -0700)
committerJane Sandberg <js7389@princeton.edu>
Sun, 14 May 2023 08:01:58 +0000 (01:01 -0700)
commitf6fe392462dae8e0bb729835b66701f1a99d3fd1
treea566db8c30c4a9cf17bf63f73cbde1a6e9343998
parent6430a7bf507fea59ce3bcb9751f4f61e7812c8b6
LP2002343: cash reports end date cannot come before start date

To test:
1. Log in as a staff member with a branch-level home library (global admin account will work only if you change it from CONS to, say, BR1)
2. As that staff member, bill some patrons and then accept some payments from them
3. Go to admin > local admin > cash reports
4. Try to set the end date before the start date.
5. Note that you get an alert, and cannot press the Submit button.
6. Confirm that when you enter valid dates and select your staff member's home ou, the reports display as usual.

Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/share/date-select/date-select.component.ts
Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.ts