From 608864b3ceaf9570ee49021eadc3922ca7cc83fe Mon Sep 17 00:00:00 2001 From: Tiffany Little Date: Tue, 27 Oct 2020 12:02:18 -0400 Subject: [PATCH] LP#1570623 Exclude deleted copies from line item existing copy count Excludes copies from the count which are deleted. Signed-off-by: Tiffany Little --- Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm index 104cf71fc5..b2cf7ebc7b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm @@ -4353,7 +4353,9 @@ 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' + }, } }); -- 2.11.0