LP1904036 Checkin retarget (all) holds fix
authorBill Erickson <berickxx@gmail.com>
Tue, 14 Jun 2022 14:34:44 +0000 (10:34 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:39 +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.ts
Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts

index 6a5ccfd..d072adc 100644 (file)
@@ -190,7 +190,13 @@ export class CheckinComponent implements OnInit, AfterViewInit {
 
         Object.keys(this.modifiers).forEach(mod => {
             if (this.modifiers[mod]) {
-                params[mod] = true;
+                if (mod === 'retarget_holds') {
+                    params.retarget_mode = 'retarget';
+                } else if (mod === 'retarget_holds_all') {
+                    params.retarget_mode = 'retarget.all';
+                } else {
+                    params[mod] = true;
+                }
             }
         });
 
index dfd3afb..630ba72 100644 (file)
@@ -180,8 +180,7 @@ export interface CheckinParams {
     manual_float?: boolean;
     do_inventory_update?: boolean;
     no_precat_alert?: boolean;
-    retarget_holds?: boolean;
-    retarget_holds_all?: boolean;
+    retarget_mode?: string;
 
     // internal / local values that are moved from the API request.
     _override?: boolean;