From: Cesar Velez Date: Mon, 20 Aug 2018 19:09:56 +0000 (-0400) Subject: LP#1739087 - enable vol to be zeroed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ef3fa1488e4a84f998a4ba2671d796a553f7c07c;p=Evergreen.git LP#1739087 - enable vol to be zeroed Allow user to "blank" or "zero out" a volume row by using the new "x" Signed-off by: Cesar Velez Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 496b93d808..804b7ee55d 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1507,7 +1507,11 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , ); angular.forEach(itemSvc.copies, function(c){ - c.call_number().not_ephemeral = true; + var cn = c.call_number(); + var copy_id = c.id(); + if (copy_id > 0){ + cn.not_ephemeral = true; + } }); return itemSvc.copies;