<div class="flex-row pad-vert">
<div class="flex-cell"></div>
+ <div class="pad-horiz">
+ <button class="btn btn-default"
+ ng-click="print_receipt()">[% l('Print Receipt') %]</button>
+ </div>
<div class="checkbox">
<label>
<input ng-model="trim_list" type="checkbox"/>
--- /dev/null
+<div>
+ <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
+ <div>[% l('You renewed the following items:') %]</div>
+ <hr/>
+ <ol>
+ <li ng-repeat="renewal in circulations">
+ <div>{{renewal.title}}</div>
+ <div>[% l('Barcode: [_1] Due: [_2]',
+ '{{renewal.copy.barcode}}',
+ '{{renewal.circ.due_date | date:"short"}}') %]</div>
+ </li>
+ </ol>
+ <hr/>
+ <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
+<br/>
+
if ($scope.renewals.length == 0) return $q.when();
- angular.forEach($srenewalpe.renewals, function(co) {
- var circ = egCore.idl.toHash(renewal.payload.circ);
- circ.title = renewal.payload.record.title;
- print_data.circulations.push(circ);
+ angular.forEach($scope.renewals, function(renewal) {
+ if (renewal.circ) {
+ print_data.circulations.push({
+ circ : egCore.idl.toHash(renewal.circ),
+ copy : egCore.idl.toHash(renewal.acp),
+ title : egCore.idl.toHash(renewal.title),
+ author : egCore.idl.toHash(renewal.author)
+ });
+ }
});
return egCore.print.print({
}
$scope.orgChanged = function(org) {
- console.log('here with ' + org);
$scope.selected = egOrg.get(org.id);
}
}]