LP#1402797 use null as default payment amount
authorGalen Charlton <gmc@esilibrary.com>
Fri, 26 Dec 2014 22:46:31 +0000 (22:46 +0000)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Feb 2015 16:58:28 +0000 (11:58 -0500)
This means that operator does not have to select the
previous default of "0" in the control to clear it out.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js

index cee0f0f..1d6f371 100644 (file)
@@ -123,7 +123,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
 
     // set up some defaults
     $scope.check_number = 0;
-    $scope.payment_amount = 0;
+    $scope.payment_amount = null;
     $scope.session_voided = 0;
     $scope.payment_type = 'cash_payment';
     $scope.focus_payment = true;
@@ -267,7 +267,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
     function refreshDisplay() {
         patronSvc.fetchUserStats();
         billSvc.fetchSummary().then(function(s) {$scope.summary = s});
-        $scope.payment_amount = 0;
+        $scope.payment_amount = null;
         $scope.gridControls.refresh();
     }