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 <berickxx@gmail.com>
<span>[% l('Fine Tally:') %]</span>
<span class="pad-horiz alert alert-danger">{{fine_total | currency}}</span>
<span ng-if="billable_barcode">
- <span>[% l('Transaction for [_1] billed:', '{{billable_barcode}}') %]</span>
+ <!-- note: this forces a new tab -->
+ <a href='./circ/patron/{{billable_user_id}}/bills' target='_blank'>
+ <span>[% l('Transaction for [_1] billed:', '{{billable_barcode}}') %]</span>
+ </a>
<span class="pad-horiz alert alert-danger">{{billable_amount | currency}}</span>
</span>
</div>
delete $scope.alert;
delete $scope.billable_amount;
delete $scope.billable_barcode;
+ delete $scope.billable_user_id;
var params = compiled.params;
var options = compiled.options;
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;
}