From faad3128c1c9a2b1228820523967158372f93df0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 16 Jun 2022 11:42:52 -0400 Subject: [PATCH] LP1840773 SCKO Angular Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/scko/scko.component.html | 6 +++--- Open-ILS/src/eg2/src/app/scko/scko.service.ts | 7 +++++++ .../src/eg2/src/app/scko/summary.component.html | 22 ++++++++++++++-------- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/scko/scko.component.html b/Open-ILS/src/eg2/src/app/scko/scko.component.html index 3edb18bd53..4159fa2a9d 100644 --- a/Open-ILS/src/eg2/src/app/scko/scko.component.html +++ b/Open-ILS/src/eg2/src/app/scko/scko.component.html @@ -1,11 +1,11 @@ -
-
+
+
-
+
diff --git a/Open-ILS/src/eg2/src/app/scko/scko.service.ts b/Open-ILS/src/eg2/src/app/scko/scko.service.ts index 58899fd1d2..0f9fd1dff0 100644 --- a/Open-ILS/src/eg2/src/app/scko/scko.service.ts +++ b/Open-ILS/src/eg2/src/app/scko/scko.service.ts @@ -14,6 +14,13 @@ export class SckoService { barcodeRegex: RegExp; patronPasswordRequired = false; + sessionTotalCheckouts = 0; + accountTotalCheckouts = 0; + + totalHolds = 0; + holdsReady = 0; + totalFines = 0; + constructor( private net: NetService, private evt: EventService, diff --git a/Open-ILS/src/eg2/src/app/scko/summary.component.html b/Open-ILS/src/eg2/src/app/scko/summary.component.html index 4f20b9cb0a..009c2f78ab 100644 --- a/Open-ILS/src/eg2/src/app/scko/summary.component.html +++ b/Open-ILS/src/eg2/src/app/scko/summary.component.html @@ -36,19 +36,25 @@
Items Checked Out -
-
+
+ Total items on account: + {{scko.accountTotalCheckouts}} +
+
Holds -
-
-
+
You have {{scko.holdsReady}} item(s) ready for pickup
+
You have {{scko.totalHolds}} total holds
+
@@ -56,8 +62,8 @@
Fines -
-
+
{{scko.totalFines | currency}}
+