From c9c44036eb7d640519e5b1ff638cccff3e9c5aac Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 12 Dec 2014 17:27:06 -0500 Subject: [PATCH] LP#1402797 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 Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 | 5 ++++- Open-ILS/web/js/ui/default/staff/circ/checkin/app.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.43.2