LP#1570623: Exclude deleted copies from line item existing
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 29 Aug 2022 22:35:15 +0000 (22:35 +0000)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:50 +0000 (08:02 -0700)
This is a rebase of a patch originally written by
Tiffany Little <tlittle@georgialibraries.org>

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Common.pm

index f77deb5..6700ccc 100644 (file)
@@ -69,7 +69,10 @@ sub li_existing_copies {
                 owning_lib => $U->get_org_descendants($org)
             },
             # NOTE: should the excluded copy statuses be an AOUS?
-            '+acp' => {status => {'not in' => [3, 4, 13, 17]}}
+            '+acp' => {
+                status => {'not in' => [3, 4, 13, 17]},
+                deleted => 'f'
+            }
         }
     });