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