From: Bill Erickson Date: Fri, 12 Dec 2014 22:27:06 +0000 (-0500) Subject: webby: checkin fine tally patron bills link X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a547e0c2e53458ba29c9f61761f0dc6fc78ac672;p=working%2FEvergreen.git webby: checkin fine tally patron bills link Checkin fine tally display now acts as a link which opens a new tab to the patron bills page for the current checkin patron when fines exist. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 b/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 index 1d8c46622e..c578efac8a 100644 --- a/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 +++ b/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 @@ -91,7 +91,10 @@ [% l('Fine Tally:') %] {{fine_total | currency}} - [% l('Transaction for [_1] billed:', '{{billable_barcode}}') %] + + + [% l('Transaction for [_1] billed:', '{{billable_barcode}}') %] + {{billable_amount | currency}} diff --git a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js index 79b1fd710f..dd3fe8f622 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js @@ -162,6 +162,7 @@ function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataPro delete $scope.alert; delete $scope.billable_amount; delete $scope.billable_barcode; + delete $scope.billable_user_id; var params = compiled.params; var options = compiled.options; @@ -191,6 +192,7 @@ function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataPro if (amt != 0) { $scope.billable_barcode = row_item.copy_barcode; $scope.billable_amount = amt; + $scope.billable_user_id = row_item.circ.usr(); $scope.fine_total = ($scope.fine_total * 100 + amt * 100) / 100; }