LP1840773 SCKO Angular Print Session Checkouts
authorBill Erickson <berickxx@gmail.com>
Thu, 7 Jul 2022 15:25:14 +0000 (11:25 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 7 Jul 2022 15:25:17 +0000 (11:25 -0400)
Print List button added to main checkout page.

Release notes tweak for path change

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/scko/checkout.component.html
Open-ILS/src/eg2/src/app/staff/scko/checkout.component.ts
Open-ILS/src/eg2/src/app/staff/scko/fines.component.ts
Open-ILS/src/eg2/src/app/staff/scko/scko.service.ts
docs/RELEASE_NOTES_NEXT/Circulation/self-checkout-angular.adoc

index 51f549f..4458782 100644 (file)
@@ -1,3 +1,9 @@
+<div class="d-flex">
+  <div class="flex-1"></div>
+  <div>
+    <button type="button" class="scko-button" (click)="printList()" i18n>Print List</button>
+  </div>
+</div>
 <div id='oils-selfck-circ-table-div'>
   <table id='oils-selfck-circ-table' class='oils-selfck-item-table'>
     <thead>
index 5afc1f6..4a01ab0 100644 (file)
@@ -19,5 +19,9 @@ export class SckoCheckoutComponent implements OnInit {
 
     ngOnInit() {
     }
+
+    printList() {
+        this.scko.printReceipt();
+    }
 }
 
index 2209614..dc5a53d 100644 (file)
@@ -44,7 +44,7 @@ export class SckoFinesComponent implements OnInit {
         ).pipe(switchMap(sums => {
 
             return this.pcrud.search('mbt', {id: sums.map(s => s.id())},
-                {   order_by: 'xact_start',
+                {   order_by: {mbt: 'xact_start'},
                     flesh: 5,
                     flesh_fields: {
                         mbt: ['summary', 'circulation', 'grocery'],
index 1398fa9..ebe06e6 100644 (file)
@@ -151,6 +151,9 @@ export class SckoService {
 
             if (username && !this.patronPasswordRequired) {
                 return this.loadPatron(username);
+            } else {
+                // Go to the base checkout page by default.
+                this.router.navigate(['/staff/scko']);
             }
         }).catch(_ => {}); // console errors
     }
@@ -352,8 +355,6 @@ export class SckoService {
 
         this.focusBarcode.emit();
 
-        // TODO on success tell the summary to update its numbers.
-
         if (this.alertAudio && ctx.alertSound) {
             this.audio.play(ctx.alertSound);
         }
index 97adcbd..0b9eb20 100644 (file)
@@ -3,7 +3,7 @@
 The patron self-checkout interface is now available as an Angular port of 
 the interface.
 
-https://myhost.mydomain/eg2/scko
+https://myhost.mydomain/eg2/staff/scko
 
 === New Print Templates ===