]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_xact_details_details.tt2
LP#1748986 Billing Statement View
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_xact_details_details.tt2
1 <div ng-if="xact_tab == 'details'">
2
3 <!-- set a lower default page size (limit) to allow for more space -->
4 <eg-grid
5   main-label="[% l('Bills') %]"
6   idl-class="mb"
7   id-field="id"
8   grid-controls="xactGridControls"
9   auto-fields="true"
10   page-size="10"
11   dateformat="{{$root.egDateAndTimeFormat}}">
12
13   <eg-grid-action 
14     label="[% l('Void Billings') %]" handler="voidBillings"></eg-grid-action>
15
16   <eg-grid-action 
17     label="[% l('Edit Note') %]" handler="editBillNotes"></eg-grid-action>
18
19 </eg-grid>
20
21 <!-- TODO: this grid may contain objects (payments) of different types.. 
22     apply manual columns, see xul -->
23 <!-- NOTE: sorting disabled since payments are fetched via non-sortable API -->
24 <br/>
25 <eg-grid
26   main-label="[% l('Payments') %]"
27   idl-class="mbp"
28   id-field="id"
29   grid-controls="paymentGridControls"
30   page-size="10"
31   dateformat="{{$root.egDateAndTimeFormat}}">
32   <eg-grid-action
33     label="[% l('Edit Note') %]" handler="editPaymentNotes"></eg-grid-action>
34
35   <eg-grid-field path="cash_payment.cash_drawer.name" parent-idl-class="mbp"
36     label="[% l('Cash Drawer') %]"></eg-grid-field>
37
38   <eg-grid-field path="accepting_usr">{{item.staff_name}} ({{item.staff_barcode}}) @ {{item.staff_org}}</eg-grid-field>
39
40   <eg-grid-field path="amount"></eg-grid-field>
41   <eg-grid-field path="id"></eg-grid-field>
42   <eg-grid-field path="note"></eg-grid-field>
43   <eg-grid-field path="payment_ts"></eg-grid-field>
44   <eg-grid-field path="payment_type"></eg-grid-field>
45   <eg-grid-field path="xact"></eg-grid-field>
46   <eg-grid-field path="voided"></eg-grid-field>
47
48   <eg-grid-field path="accepting_usr.family_name" name="staff_name"
49     label="[% l('Staff Last Name') %]" hidden required></eg-grid-field>
50
51   <eg-grid-field path="accepting_usr.card.barcode" name="staff_barcode"
52     label="[% l('Staff Barcode') %]" hidden required></eg-grid-field>
53
54   <eg-grid-field path="accepting_usr.home_ou.shortname" name="staff_org"
55     label="[% l('Staff Org Unit') %]" hidden required></eg-grid-field>
56
57 </eg-grid>
58
59 </div>