From f6fe392462dae8e0bb729835b66701f1a99d3fd1 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Sun, 14 May 2023 00:58:17 -0700 Subject: [PATCH] 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 --- .../app/share/date-select/date-select.component.ts | 2 +- .../local/cash-reports/cash-reports.component.html | 18 ++++--- .../cash-reports/cash-reports.component.spec.ts | 60 ++++++++++++++++++++++ .../local/cash-reports/cash-reports.component.ts | 25 ++++----- 4 files changed, 81 insertions(+), 24 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.spec.ts diff --git a/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.ts b/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.ts index 5de9628050..07acc59b86 100644 --- a/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.ts +++ b/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit, Input, Output, ViewChild, EventEmitter, forwardRef} from '@angular/core'; +import {Component, OnInit, Input, Output, EventEmitter, forwardRef} from '@angular/core'; import {NgbDateStruct} from '@ng-bootstrap/ng-bootstrap'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms'; import {DateUtil} from '@eg/share/util/date'; diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.html index 251fc936c3..d4224cff04 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/cash-reports/cash-reports.component.html @@ -2,25 +2,29 @@
-
+
-
Start Date
- + +
-
End Date
- + +
View reports for
- +
-
+ +