Bug 29240: Rename start_for with date_to
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / pos / register.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE AuthorisedValues %]
6 [% USE Price %]
7 [% SET footerjs = 1 %]
8 [% PROCESS 'accounts.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Cashup &rsaquo; Koha</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
13 </head>
14
15 <body id="register" class="pos">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'circ-search.inc' %]
18
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20     <ol>
21         <li>
22             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23         </li>
24         <li>
25             <a href="/cgi-bin/koha/pos/pay.pl">Cash management</a>
26         </li>
27         <li>
28             <a href="#" aria-current="page">
29                 Transaction history for [% register.name | html %]
30             </a>
31         </li>
32     </ol>
33 </nav>
34
35 <div class="main container-fluid">
36     <div class="row">
37         <div class="col-sm-10 col-sm-push-2">
38
39             [% IF ( error_registers ) %]
40                 <div id="error_message" class="dialog message">
41                     <p>
42                         You must have at least one cash register associated with the library before you can record payments.
43                     </p>
44                     [% IF ( CAN_user_parameters_manage_cash_registers ) %]
45                         <form action="/cgi-bin/koha/admin/cash_registers.pl" method="get">
46                             <input type="hidden" name="op" value="add_form" />
47                             <button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button>
48                         </form>
49                     [% END %]
50                 </div>
51             [% ELSE %]
52
53             [% IF ( error_cashup_permission ) %]
54             <div id="error_message" class="dialog alert">
55                 You do not have permission to perform cashup actions.
56             </div>
57             [% END %]
58
59             [% IF ( error_refund_permission ) %]
60             <div id="error_message" class="dialog alert">
61                 You do not have permission to perform refund actions.
62             </div>
63             [% END %]
64
65             [% IF ( CAN_user_cash_management_cashup ) %]
66             <div id="toolbar" class="btn-toolbar">
67                 <button id="pos_cashup" type="button" class="btn btn-default" data-toggle="modal" data-target="#confirmCashupModal" ><i class="fa fa-money"></i> Record cashup</button>
68             </div>
69             [% END %]
70
71             <h1>Transaction history for [% register.name | html %]</h1>
72
73             <h2>Summary</h2>
74             <ul>
75                 [% IF register.last_cashup %]
76                 <li>Last cashup: [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] (<a data-toggle="modal" data-cashup="[% register.last_cashup.id | html %]" data-register="[% register.description | html %]" href="#cashupSummaryModal" class="button">Summary</a>)</li>
77                 [% END %]
78                 <li>Float: [% register.starting_float | $Price %]</li>
79                 <li>Total income (cash): [% accountlines.credits_total * -1 | $Price %] ([% accountlines.credits_total(payment_type => 'CASH') * -1 | $Price %])</li>
80                 <li>Total outgoing (cash): [% accountlines.debits_total * -1 | $Price %] ([% accountlines.debits_total( payment_type => 'CASH') * -1 | $Price %])</li>
81                 <li>Total bankable: [% accountlines.total( payment_type => 'CASH') * -1 | $Price %]</li>
82             </ul>
83
84             [% IF register.last_cashup %]
85             <h2>Transactions since [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %]</h2>
86             [% ELSE %]
87             <h2>Transactions to date</h2>
88             [% END %]
89             <table id="sales" class="table_sales">
90                 <thead>
91                     <th>ID</th>
92                     <th>DATA</th>
93                     <th>Transaction</th>
94                     <th>Description</th>
95                     <th>Price</th>
96                     <th>Total</th>
97                     <th class="noExport">Actions</th>
98                 </thead>
99                 <tbody>
100                     [% FOREACH accountline IN accountlines %]
101                         [% IF accountline.is_credit %]
102                             [% FOREACH credit IN accountline.credit_offsets %]
103                             [% IF credit.debit %]
104                             <tr>
105                                 <td>[% accountline.accountlines_id | html %]</td>
106                                 <td>{ "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
107                                 <td></td>
108                                 <td>
109                                     [%- PROCESS account_type_description account=credit.debit -%]
110                                     [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
111                                     [%- IF ( credit.debit.itemnumber ) -%] (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% credit.debit.item.biblionumber | uri %]&amp;itemnumber=[% credit.debit.itemnumber | uri %]">[% credit.debit.item.biblio.title | html %]</a>)[%- END -%]
112                                 </td>
113                                 <td>[% credit.debit.amount | $Price %]</td>
114                                 <td></td>
115                                 <td>
116                                     [% IF CAN_user_cash_management_anonymous_refund && !(credit.debit.status == 'REFUNDED') && !(credit.debit.debit_type_code == 'PAYOUT') %]
117                                     <button type="button" class="btn btn-default btn-xs pos_refund" data-toggle="modal" data-target="#issueRefundModal" data-item="[%- PROCESS account_type_description account=credit.debit -%]" data-accountline="[% credit.debit.accountlines_id | html %]" data-amount="[% credit.debit.amount | $Price %]" data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" data-member="[% credit.debit.borrowernumber | html %]"><i class="fa fa-money"></i> Issue refund</button>
118                                     [% ELSIF CAN_user_updatecharges_refund && !(credit.debit.status == 'REFUNDED') && credit.debit.borrowernumber && !(credit.debit.debit_type_code == 'PAYOUT') %]
119                                     <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#issueRefundModal" data-item="[%- PROCESS account_type_description account=credit.debit -%]" data-accountline="[% credit.debit.accountlines_id | html %]" data-amount="[% credit.debit.amount | $Price %]" data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" data-member="[% credit.debit.borrowernumber | html %]"><i class="fa fa-money"></i> Issue refund</button>
120                                     [% END %]
121                                 </td>
122                             </tr>
123                             [% END %]
124                             [% END %]
125                         [% ELSE %]
126                             [% FOREACH debit IN accountline.debit_offsets %]
127                             [% IF debit.credit %]
128                             <tr>
129                                 <td>[% accountline.accountlines_id | html %]</td>
130                                 <td>{ "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
131                                 <td></td>
132                                 <td>
133                                     [%- PROCESS account_type_description account=debit.credit -%]
134                                     [%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%]
135                                     [%- IF ( debit.credit.itemnumber ) -%] (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% debit.credit.item.biblionumber | uri %]&amp;itemnumber=[% debit.credit.itemnumber | uri %]">[% debit.credit.item.biblio.title | html %]</a>)[%- END -%]
136                                 </td>
137                                 <td>[% debit.credit.amount | $Price %]</td>
138                                 <td></td>
139                                 <td>
140                                     [%- IF debit.credit.credit_type_code == 'REFUND' -%]<a href="/cgi-bin/koha/members/accountline-details.pl?accountlines_id=[% debit.credit.accountlines_id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>[%- END -%]
141                                 </td>
142                             </tr>
143                             [% END %]
144                             [% END %]
145                         [% END %]
146                     [% END %]
147                 </tbody>
148                 <tfoot>
149                     <tr>
150                         <td colspan="5">Total income: </td>
151                         <td>[% accountlines.total * -1 | $Price %]</td>
152                         <td></td>
153                     </tr>
154                 </tfoot>
155             </table>
156             [% END %]
157
158             [% IF register.cashups %]
159             <h2>Older transactions</h2>
160             <form method="GET" action="/cgi-bin/koha/pos/register.pl">
161                 <fieldset class="rows">
162                     Please select a date range to display transactions for:
163                     <ol>
164                         <li>
165                             <label for="trange_f">From: </label>
166                             <input type="text" size="10" id="from" class="flatpickr" data-date_to="to" name="trange_f" value="[% trange_f | html %]"/>
167                             <label class="inline" for="trange_t">To: </label>
168                             <input type="text" size="10" id="to" class="flatpickr" name="trange_t" value="[% trange_t | html %]" />
169                             <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
170                         </li>
171                     </ol>
172                 </fieldset>
173
174                 <div class="action">
175                     <input type="hidden" name="registerid" value="[% register.id | html %]">
176                     <input type="submit" value="Display" />
177                 </div>
178             </form>
179
180             [% IF trange_f %]
181             <table id="past_sales" class="past_sales_table">
182                 <thead>
183                     <th>ID</th>
184                     <th>DATA</th>
185                     <th>Transaction</th>
186                     <th>Description</th>
187                     <th>Price</th>
188                     <th>Total</th>
189                     <th class="noExport">Actions</th>
190                 </thead>
191                 <tbody>
192                     [% FOREACH accountline IN past_accountlines %]
193                         [% IF accountline.is_credit %]
194                             [% FOREACH credit IN accountline.credit_offsets %]
195                             [% IF credit.debit %]
196                             <tr>
197                                 <td>[% accountline.accountlines_id | html %]</td>
198                                 <td>{ "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
199                                 <td></td>
200                                 <td>
201                                     [%- PROCESS account_type_description account=credit.debit -%]
202                                     [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
203                                     [%- IF ( credit.debit.itemnumber ) -%] (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% credit.debit.item.biblionumber | uri %]&amp;itemnumber=[% credit.debit.itemnumber | uri %]">[% credit.debit.item.biblio.title | html %]</a>)[%- END -%]
204                                 </td>
205                                 <td>[% credit.debit.amount | $Price %]</td>
206                                 <td></td>
207                                 <td>
208                                     [% IF CAN_user_cash_management_anonymous_refund && !(credit.debit.status == 'REFUNDED') && !(credit.debit.debit_type_code == 'PAYOUT') %]
209                                     <button type="button" class="btn btn-default btn-xs pos_refund" data-toggle="modal" data-target="#issueRefundModal" data-item="[%- PROCESS account_type_description account=credit.debit -%]" data-accountline="[% credit.debit.accountlines_id | html %]" data-amount="[% credit.debit.amount | $Price %]" data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" data-member="[% credit.debit.borrowernumber | html %]"><i class="fa fa-money"></i> Issue refund</button>
210                                     [% ELSIF CAN_user_updatecharges_refund && !(credit.debit.status == 'REFUNDED') && credit.debit.borrowernumber && !(credit.debit.debit_type_code == 'PAYOUT') %]
211                                     <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#issueRefundModal" data-item="[%- PROCESS account_type_description account=credit.debit -%]" data-accountline="[% credit.debit.accountlines_id | html %]" data-amount="[% credit.debit.amount | $Price %]" data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" data-member="[% credit.debit.borrowernumber | html %]"><i class="fa fa-money"></i> Issue refund</button>
212                                     [% END %]
213                                 </td>
214                             </tr>
215                             [% END %]
216                             [% END %]
217                         [% ELSE %]
218                             [% FOREACH debit IN accountline.debit_offsets %]
219                             [% IF debit.credit %]
220                             <tr>
221                                 <td>[% accountline.accountlines_id | html %]</td>
222                                 <td>{ "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
223                                 <td></td>
224                                 <td>
225                                     [%- PROCESS account_type_description account=debit.credit -%]
226                                     [%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%]
227                                     [%- IF ( debit.credit.itemnumber ) -%] (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% debit.credit.item.biblionumber | uri %]&amp;itemnumber=[% debit.credit.itemnumber | uri %]">[% debit.credit.item.biblio.title | html %]</a>)[%- END -%]
228                                 </td>
229                                 <td>[% debit.credit.amount | $Price %]</td>
230                                 <td></td>
231                                 <td>
232                                     [%- IF debit.credit.credit_type_code == 'REFUND' -%]<a href="/cgi-bin/koha/members/accountline-details.pl?accountlines_id=[% debit.credit.accountlines_id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>[%- END -%]
233                                 </td>
234                             </tr>
235                             [% END %]
236                             [% END %]
237                         [% END %]
238                     [% END %]
239                 </tbody>
240                 <tfoot>
241                     <tr>
242                         <td colspan="5">Total income: </td>
243                         <td>[% past_accountlines.total * -1 | $Price %]</td>
244                         <td></td>
245                     </tr>
246                 </tfoot>
247             </table>
248             [% END %]
249
250             <hr/>
251             <h2>Cashup history</h2>
252             <table id="table_cashups">
253                 <thead>
254                     <tr>
255                         <th>Date</th>
256                         <th>Cashier</th>
257                         <th>Amount</th>
258                         <th data-class-name="actions">Actions</th>
259                     </tr>
260                 </thead>
261             </table>
262             [% END %]
263         </div>
264
265         <div class="col-sm-2 col-sm-pull-10">
266             <aside>
267                 [% INCLUDE 'pos-menu.inc' %]
268             </aside>
269         </div>
270     </div><!-- /.row -->
271
272     <!-- Confirm cashup modal -->
273     <div class="modal" id="confirmCashupModal" tabindex="-1" role="dialog" aria-labelledby="confirmCashupLabel">
274         <div class="modal-dialog" role="document">
275             <div class="modal-content">
276                 <div class="modal-header">
277                     <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
278                     <h4 class="modal-title" id="confirmCashupLabel">Confirm cashup of <em>[% register.description | html %]</em></h4>
279                 </div>
280                 <div class="modal-body">
281                     Please confirm that you have removed [% accountlines.total( payment_type => 'CASH') * -1 | $Price %] from the cash register and left a float of [% register.starting_float | $Price %].
282                 </div> <!-- /.modal-body -->
283                 <div class="modal-footer">
284                     <a href="/cgi-bin/koha/pos/register.pl?op=cashup" class="btn btn-default" id="pos_cashup_confirm">Confirm</a>
285                     <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
286                 </div> <!-- /.modal-footer -->
287             </div> <!-- /.modal-content -->
288         </div> <!-- /.modal-dialog -->
289     </div> <!-- /#confirmCashupModal -->
290
291     <!-- Issue refund modal -->
292     <div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel">
293         <form id="refund_form" method="post" enctype="multipart/form-data" class="validated">
294             <input type="hidden" name="accountline" value="" id="refundline">
295             <div class="modal-dialog" role="document">
296                 <div class="modal-content">
297                     <div class="modal-header">
298                         <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
299                         <h4 class="modal-title" id="issueRefundLabel">Issue refund from <em>[% register.description | html %]</em></h4>
300                     </div>
301                     <div class="modal-body">
302                         <fieldset class="rows">
303                             <ol>
304                                 <li>
305                                     <span id="item" class="label">Item: </span><span></span>
306                                 </li>
307                                 <li>
308                                     <span id="paid" class="label">Amount paid: </span><span></span>
309                                 </li>
310                                 <li>
311                                     <label class="required" for="amount">Returned to patron: </label>
312                                     <input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" id="returned" name="amount" required="required">
313                                     <span class="required">Required</span>
314                                 </li>
315                                 [% INCLUDE 'transaction_types.inc' type="refund" %]
316                             </ol>
317                         </fieldset> <!-- /.rows -->
318                     </div> <!-- /.modal-body -->
319                     <div class="modal-footer">
320                         <input type="hidden" name="registerid" value="[% register.id | html %]">
321                         <input type="hidden" name="op" value="refund">
322                         <button type="submit" class="btn btn-default" id="pos_refund_confirm">Confirm</button>
323                         <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
324                     </div> <!-- /.modal-footer -->
325                 </div> <!-- /.modal-content -->
326             </div> <!-- /.modal-dialog -->
327         </form> <!-- /#refund_form -->
328     </div> <!-- /#issueRefundModal -->
329
330     [% INCLUDE 'modals/cashup_summary.inc' %]
331
332     [% MACRO jsinclude BLOCK %]
333     [% INCLUDE 'datatables.inc' %]
334     [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
335     [% Asset.js("js/cashup_modal.js") | $raw %]
336     [% INCLUDE 'calendar.inc' %]
337     [% INCLUDE 'js-date-format.inc' %]
338     <script>
339         var sales_table = $("#sales").dataTable($.extend(true, {}, dataTablesDefaults, {
340             orderFixed: [ 0, 'asc'],
341             columnDefs: [ {
342                 targets: [ 0, 1 ],
343                 visible: false
344             }],
345             rowGroup: {
346                 dataSrc: 0,
347                 startRender: function ( rows, group ) {
348                     var details = JSON.parse(rows.data().pluck(1).pop());
349                     var identifier = details.identifier || group;
350                     return $('<tr class="'+details.type+'"/>')
351                         .append( '<td>'+details.timestamp+' ('+identifier+')</td>' )
352                         .append( '<td colspan="2">'+details.description+'</td>' )
353                         .append( '<td>'+details.amount+'</td>' )
354                         .append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> ' + _("Print receipt") + '</button></td>');
355                 },
356                 endRender: null,
357             },
358             initComplete: function() {
359                 $("#sales").show();
360             }
361         }));
362
363         var past_sales_table = $("#past_sales").dataTable($.extend(true, {}, dataTablesDefaults, {
364             orderFixed: [ 0, 'asc'],
365             columnDefs: [ {
366                 targets: [ 0, 1 ],
367                 visible: false
368             }],
369             rowGroup: {
370                 dataSrc: 0,
371                 startRender: function ( rows, group ) {
372                     var details = JSON.parse(rows.data().pluck(1).pop());
373                     var identifier = details.identifier || group;
374                     return $('<tr class="'+details.type+'"/>')
375                         .append( '<td>'+details.timestamp+' ('+identifier+')</td>' )
376                         .append( '<td colspan="2">'+details.description+'</td>' )
377                         .append( '<td>'+details.amount+'</td>' )
378                         .append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> Print receipt</button></td>');
379                 },
380                 endRender: null,
381             }
382         }));
383
384         $("#issueRefundModal").on("shown.bs.modal", function(e){
385            var button = $(e.relatedTarget);
386            var item = button.data('item');
387            $("#item + span").replaceWith(item);
388            var accountline = button.data('accountline');
389            $('#refundline').val(accountline);
390            var amount = button.data('amount');
391            var amountoutstanding = button.data('amountoutstanding') || 0;
392            var paid = amount - amountoutstanding;
393            $("#paid + span").replaceWith(paid);
394            $("#returned").attr({ "value": paid, "max": paid });
395            var member = button.data('member');
396            if ( member === '' ) {
397                $("#refund_type option[value='AC']").remove();
398            } else if ( $("#refund_type option[value='AC']").length == 0 ) {
399                $("#refund_type").prepend('<option value="AC" selected="selected">Account credit</option>');
400            }
401            $("#returned, #refund_type").focus();
402         });
403
404         $(".printReceipt").click(function() {
405             var accountlines_id = $(this).data('accountline');
406             var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=' + accountlines_id, '_blank');
407             win.focus();
408         });
409
410         $('.modal.printable').on('shown.bs.modal', function() {
411             $('.modal-dialog', this).addClass('focused');
412             $('body').addClass('modalprinter');
413
414             if ($(this).hasClass('autoprint')) {
415                 window.print();
416             }
417         }).on('hidden.bs.modal', function () {
418             $('.modal-dialog', this).removeClass('focused');
419             $('body').removeClass('modalprinter');
420         });
421
422         $('.printModal').click(function() {
423             window.print();
424         });
425
426
427         var cashups_table_url = "/api/v1/cash_registers/[% register.id | html %]/cashups?";
428         var cashups_table = $("#table_cashups").api({
429             "ajax": {
430                 "url": cashups_table_url
431             },
432             "header_filter": true,
433             "embed": [
434                "manager"
435             ],
436             "order": [[ 0, "asc" ]],
437             "columns": [
438                 {
439                     "data": "timestamp",
440                     "searchable": true,
441                     "orderable": true,
442                     "render": function(data, type, row, meta) {
443                         return $datetime(row.timestamp);
444                     }
445                 },
446                 {
447                     "data": "manager.firstname:manager.surname",
448                     "searchable": true,
449                     "orderable": true,
450                     "render": function(data, type, row, meta) {
451                         var fullname;
452                         if ( row.manager.firstname == null ) {
453                             fullname = row.manager.surname;
454                         }
455                         else {
456                             fullname = row.manager.firstname + " " + row.manager.surname;
457                         }
458                         return escape_str(fullname);
459                     }
460                 },
461                 {
462                     "data": "amount",
463                     "searchable": true,
464                     "orderable": true,
465                     "render": function(data, type, row, meta) {
466                         var amt = row.amount * -1;
467                         return escape_price(amt);
468                     }
469                 },
470                 {
471                     "data": function( row, type, val, meta ) {
472                         var result = '<a class="btn btn-default btn-xs" role="button" data-toggle="modal" data-cashup="'+encodeURIComponent(row.cashup_id)+'" data-register="[% register.description | html %]" href="#cashupSummaryModal"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Summary")+'</a>\n';
473                         return result;
474                     },
475                     "searchable": false,
476                     "orderable": false
477                 }
478             ]
479         }, [], 1);
480     </script>
481 [% END %]
482
483 [% INCLUDE 'intranet-bottom.inc' %]