LP#1739087 - enable vol to be zeroed
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Mon, 20 Aug 2018 19:09:56 +0000 (15:09 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Wed, 12 Sep 2018 12:42:49 +0000 (08:42 -0400)
Allow user to "blank" or "zero out" a volume row by using the new "x"

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>

Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index 496b93d..804b7ee 100644 (file)
@@ -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;