LP1904036 Hold print template configs
authorBill Erickson <berickxx@gmail.com>
Mon, 3 May 2021 19:12:53 +0000 (15:12 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:34 +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/admin/server/print-template.component.ts

index 5e1361b..0b27fd7 100644 (file)
@@ -50,7 +50,9 @@ export class PrintTemplateComponent implements OnInit {
     sampleData: any = {
         patron_address: {},
         holds_for_bib: {},
-        bills_current: {}
+        bills_current: {},
+        bills_payment: {},
+        hold_shelf_slip: {}
     };
 
     constructor(
@@ -153,6 +155,19 @@ export class PrintTemplateComponent implements OnInit {
                 copy_barcode: '3423482302394'
             }]
         };
+
+        this.sampleData.hold_shelf_slip = {
+            checkin: {
+                copy: samples.acp[0],
+                patron: samples.au[0],
+                hold: samples.ahr[0]
+            }
+        };
+
+        this.sampleData.hold_transit_slip =
+            Object.assign({}, this.sampleData.hold_shelf_slip);
+        this.sampleData.hold_transit_slip.checkin.destOrg =
+            this.org.list()[0];
     }
 
     onTabChange(evt: NgbTabChangeEvent) {