LP#1729435: Allow saving Bill Full Details grids
[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   persist-key="circ.patron.xact_details_details_bills"
12   dateformat="{{$root.egDateAndTimeFormat}}">
13
14   <eg-grid-action 
15     label="[% l('Void Billings') %]" handler="voidBillings"></eg-grid-action>
16
17   <eg-grid-action 
18     label="[% l('Edit Note') %]" handler="editBillNotes"></eg-grid-action>
19
20 </eg-grid>
21
22 <!-- TODO: this grid may contain objects (payments) of different types.. 
23     apply manual columns, see xul -->
24 <!-- NOTE: sorting disabled since payments are fetched via non-sortable API -->
25 <br/>
26 <eg-grid
27   main-label="[% l('Payments') %]"
28   idl-class="mbp"
29   id-field="id"
30   grid-controls="paymentGridControls"
31   page-size="10"
32   persist-key="circ.patron.xact_details_details_payments"
33   dateformat="{{$root.egDateAndTimeFormat}}">
34   <eg-grid-action
35     label="[% l('Edit Note') %]" handler="editPaymentNotes"></eg-grid-action>
36
37   <eg-grid-field path="cash_payment.cash_drawer.name" parent-idl-class="mbp"
38     label="[% l('Cash Drawer') %]"></eg-grid-field>
39
40   <eg-grid-field path="accepting_usr">{{item.staff_name}} ({{item.staff_barcode}}) @ {{item.staff_org}}</eg-grid-field>
41
42   <eg-grid-field path="amount"></eg-grid-field>
43   <eg-grid-field path="id"></eg-grid-field>
44   <eg-grid-field path="note"></eg-grid-field>
45   <eg-grid-field path="payment_ts"></eg-grid-field>
46   <eg-grid-field path="payment_type"></eg-grid-field>
47   <eg-grid-field path="xact"></eg-grid-field>
48   <eg-grid-field path="voided"></eg-grid-field>
49
50   <eg-grid-field path="accepting_usr.family_name" name="staff_name"
51     label="[% l('Staff Last Name') %]" hidden required></eg-grid-field>
52
53   <eg-grid-field path="accepting_usr.card.barcode" name="staff_barcode"
54     label="[% l('Staff Barcode') %]" hidden required></eg-grid-field>
55
56   <eg-grid-field path="accepting_usr.home_ou.shortname" name="staff_org"
57     label="[% l('Staff Org Unit') %]" hidden required></eg-grid-field>
58
59 </eg-grid>
60
61 </div>