Refundable payment webstaff fix
authorBill Erickson <berickxx@gmail.com>
Tue, 11 Dec 2018 16:10:18 +0000 (11:10 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Avoid sending refundable payment values (in the wrong format) to the server
when no refundable payments are made.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js

index e3d1e1d..7f7de97 100644 (file)
@@ -393,7 +393,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
         });
 
         if (lostXacts.length === 0) {
-            return $q.when(payments);
+            return $q.when(null);
         }
 
         return checkSecondaryAuth().then(