LP1904036 Checkin clear effective date option
authorBill Erickson <berickxx@gmail.com>
Wed, 25 Aug 2021 17:19:46 +0000 (13:19 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:37 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.html
Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts

index 93b9256..84214d1 100644 (file)
       </div>
     </div>
     <div class="mr-2" i18n>Effective Date:</div>
-    <eg-date-select [initialIso]="backdate" 
+    <eg-date-select [initialIso]="backdate" [(ngModel)]="backdateDate"
       (onChangeAsIso)="backdate = $event"></eg-date-select>
+    <button class="btn btn-sm btn-outline-dark ml-1" 
+      (click)="backdateDate=null; backdate=null" i18n>Clear</button>
   </div>
 </div>
 
index ad5e186..67b0f91 100644 (file)
@@ -64,6 +64,7 @@ export class CheckinComponent implements OnInit, AfterViewInit {
 
     barcode: string;
     backdate: string;
+    backdateDate: any;
     backdateUntilLogout = false;
     fineTally = 0;
     isHoldCapture = false;