From: Tiffany Little Date: Tue, 27 Oct 2020 16:02:18 +0000 (-0400) Subject: LP#1570623 Exclude deleted copies from line item existing copy count X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Ftlittle%2Flp1570623_liexistingcopycount;p=working%2FEvergreen.git LP#1570623 Exclude deleted copies from line item existing copy count Excludes copies from the count which are deleted. Signed-off-by: Tiffany Little --- 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' + }, } });