From ef3fa1488e4a84f998a4ba2671d796a553f7c07c Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Mon, 20 Aug 2018 15:09:56 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.43.2