From: Bill Erickson Date: Thu, 7 Jul 2022 15:25:14 +0000 (-0400) Subject: LP1840773 SCKO Angular Print Session Checkouts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=761eb7e4cd1dd0cd23740908b964b3eecbfa939f;p=working%2FEvergreen.git LP1840773 SCKO Angular Print Session Checkouts Print List button added to main checkout page. Release notes tweak for path change Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.html b/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.html index 51f549f5a4..4458782373 100644 --- a/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.html +++ b/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.html @@ -1,3 +1,9 @@ +
+
+
+ +
+
diff --git a/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.ts b/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.ts index 5afc1f6f29..4a01ab0cd2 100644 --- a/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/scko/checkout.component.ts @@ -19,5 +19,9 @@ export class SckoCheckoutComponent implements OnInit { ngOnInit() { } + + printList() { + this.scko.printReceipt(); + } } diff --git a/Open-ILS/src/eg2/src/app/staff/scko/fines.component.ts b/Open-ILS/src/eg2/src/app/staff/scko/fines.component.ts index 220961475d..dc5a53d564 100644 --- a/Open-ILS/src/eg2/src/app/staff/scko/fines.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/scko/fines.component.ts @@ -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'], diff --git a/Open-ILS/src/eg2/src/app/staff/scko/scko.service.ts b/Open-ILS/src/eg2/src/app/staff/scko/scko.service.ts index 1398fa9892..ebe06e6a81 100644 --- a/Open-ILS/src/eg2/src/app/staff/scko/scko.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/scko/scko.service.ts @@ -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); } diff --git a/docs/RELEASE_NOTES_NEXT/Circulation/self-checkout-angular.adoc b/docs/RELEASE_NOTES_NEXT/Circulation/self-checkout-angular.adoc index 97adcbdc0d..0b9eb203f0 100644 --- a/docs/RELEASE_NOTES_NEXT/Circulation/self-checkout-angular.adoc +++ b/docs/RELEASE_NOTES_NEXT/Circulation/self-checkout-angular.adoc @@ -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 ===