View | Details | Raw Unified | Return to bug 32698
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-10 / +23 lines)
Lines 146-167 Link Here
146
146
147
                [% IF ( years ) %]
147
                [% IF ( years ) %]
148
                    <form name="edition" action="/cgi-bin/koha/serials/serials-edit.pl" method="post">
148
                    <form name="edition" action="/cgi-bin/koha/serials/serials-edit.pl" method="post">
149
                        <div id="subscription_years" class="toptabs numbered">
149
                        [% WRAPPER tabs id= "subscription_years" %]
150
                            <ul class="nav nav-tabs" role="tablist">
150
                            [% WRAPPER tabs_nav %]
151
                                [% FOREACH year IN years %]
151
                                [% FOREACH year IN years %]
152
                                    [% IF ( loop.first ) %]
153
                                        [% bt_active = 1 %]
154
                                    [% ELSE %]
155
                                        [% bt_active = 0 %]
156
                                    [% END %]
152
                                    [% IF ( year.year ) %]
157
                                    [% IF ( year.year ) %]
153
                                        [% IF year.year == 'manage' %]
158
                                        [% IF year.year == 'manage' %]
154
                                            <li role="presentation"><a href="#subscription-year-manage" aria-controls="subscription-year-manage" role="tab" data-toggle="tab">Manage</a></li>
159
                                            [% SET tabname = "subscription-year-manage" %]
160
                                            [% SET tab_text = "Manage" %]
155
                                        [% ELSE %]
161
                                        [% ELSE %]
156
                                            <li role="presentation"><a href="#subscription-year-[% year.year | uri %]" aria-controls="subscription-year-[% year.year | uri %]" role="tab" data-toggle="tab">[% year.year | html %]</a></li>
162
                                            [% SET tabname = "subscription-year-${year.year}" %]
163
                                            [% SET tab_text = year.year %]
157
                                        [% END %]
164
                                        [% END %]
165
                                        [% WRAPPER tab_item tabname= tabname bt_active= bt_active %] [% tab_text | html %] [% END %]
158
                                    [% END %]
166
                                    [% END %]
159
                                [% END %]
167
                                [% END %]
160
                            </ul>
168
                            [% END # /WRAPPER tabs_nav %]
161
169
162
                            <div class="tab-content">
170
                            [% WRAPPER tab_panels %]
163
                                [% FOREACH year IN years %]
171
                                [% FOREACH year IN years %]
164
                                    <div id="subscription-year-[% year.year | html %]" role="tabpanel" class="tab-pane">
172
                                    [% IF ( loop.first ) %]
173
                                        [% SET bt_active = 1 %]
174
                                    [% ELSE %]
175
                                        [% SET bt_active = 0 %]
176
                                    [% END %]
177
                                    [% WRAPPER tab_panel tabname="subscription-year-${year.year}" bt_active= bt_active %]
165
                                        [% IF ( CAN_user_serials_receive_serials ) %]
178
                                        [% IF ( CAN_user_serials_receive_serials ) %]
166
                                            <p>
179
                                            <p>
167
                                                <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-primary btn-sm" /></div>
180
                                                <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-primary btn-sm" /></div>
Lines 305-315 Link Here
305
                                                [% END %]
318
                                                [% END %]
306
                                            </tbody>
319
                                            </tbody>
307
                                        </table> <!-- /.subscription-year-table -->
320
                                        </table> <!-- /.subscription-year-table -->
308
                                    </div> <!-- /#subscription-year-year -->
321
                                    [% END # /WRAPPER tab_panel#subscription-year %]
309
                                [% END # /FOREACH year %]
322
                                [% END # /FOREACH year %]
310
                            </div> <!-- /.tab-content -->
323
                            [% END # /WRAPPER tab_panels %]
311
                            <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
324
                            <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
312
                        </div> <!-- /#subscription_years -->
325
                        [% END # /WRAPPER tabs#subscription_years %]
313
                    </form>
326
                    </form>
314
                [% END # /IF years %]
327
                [% END # /IF years %]
315
328
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-17 / +19 lines)
Lines 310-331 Link Here
310
310
311
                    [% IF ( done_searched ) %]
311
                    [% IF ( done_searched ) %]
312
                        [% IF ( total ) %]
312
                        [% IF ( total ) %]
313
                            <div id="serialstabs" class="toptabs">
313
314
                                <ul class="nav nav-tabs" role="tablist">
314
                            [% WRAPPER tabs id= "serialstabs" %]
315
                                [% WRAPPER tabs_nav %]
315
                                    [% IF mana %]
316
                                    [% IF mana %]
316
                                        <li role="presentation" class="active"><a href="#mana" aria-controls="mana" role="tab" data-toggle="tab">Mana ([% total || 0 | html %])</a></li>
317
                                        [% WRAPPER tab_item tabname= "mana" bt_active= 1 %] Mana ([% total || 0 | html %]) [% END %]
317
                                    [% ELSE %]
318
                                    [% ELSE %]
318
                                        <li role="presentation" class="active"><a href="#opened" aria-controls="opened" role="tab" data-toggle="tab">Open ([% openedsubscriptions.size || 0 | html %])</a></li>
319
                                        [% WRAPPER tab_item tabname= "opened" bt_active= 1 %] Open ([% openedsubscriptions.size || 0 | html %]) [% END %]
319
                                        <li role="presentation"><a href="#closed" aria-controls="closed" role="tab" data-toggle="tab">Closed ([% closedsubscriptions.size || 0 | html %])</a></li>
320
                                        [% WRAPPER tab_item tabname= "closed" %] Closed ([% closedsubscriptions.size || 0 | html %]) [% END %]
320
                                    [% END %]
321
                                    [% END %]
321
                                </ul>
322
                                [% END # /WRAPPER tabs_nav %]
322
                                <div class="tab-content">
323
                                [% WRAPPER tab_panels %]
323
                                    [% IF mana %]
324
                                    [% IF mana %]
324
                                        <div id="mana" role="tabpanel" class="tab-pane active" >
325
                                        [% WRAPPER tab_panel tabname="mana" bt_active= 1 %]
325
                                            [% INCLUDE 'mana/mana-subscription-search-result.inc' %]
326
                                            [% INCLUDE 'mana/mana-subscription-search-result.inc' %]
326
                                        </div>
327
                                        [% END # /WRAPPER tab_panel#mana %]
327
                                    [% ELSE %]
328
                                    [% ELSE %]
328
                                        <div id="opened" role="tabpanel" class="tab-pane active" >
329
                                        [% WRAPPER tab_panel tabname="opened" bt_active= 1 %]
329
                                            [% IF openedsubscriptions %]
330
                                            [% IF openedsubscriptions %]
330
                                                [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %]
331
                                                [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %]
331
                                            [% ELSE %]
332
                                            [% ELSE %]
Lines 333-340 Link Here
333
                                                    <p>Your search returned no open subscriptions.</p>
334
                                                    <p>Your search returned no open subscriptions.</p>
334
                                                </div>
335
                                                </div>
335
                                            [% END %]
336
                                            [% END %]
336
                                        </div>
337
                                        [% END # /WRAPPER tab_panel#opened %]
337
                                        <div id="closed" role="tabpanel" class="tab-pane" >
338
                                        [% WRAPPER tab_panel tabname="closed" %]
338
                                            [% IF closedsubscriptions %]
339
                                            [% IF closedsubscriptions %]
339
                                                [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %]
340
                                                [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %]
340
                                            [% ELSE %]
341
                                            [% ELSE %]
Lines 342-351 Link Here
342
                                                    <p>Your search returned no closed subscriptions.</p>
343
                                                    <p>Your search returned no closed subscriptions.</p>
343
                                                </div>
344
                                                </div>
344
                                            [% END %]
345
                                            [% END %]
345
                                        </div>
346
                                        [% END # /WRAPPER tab_panel#closed %]
346
                                    [% END # /IF mana %]
347
                                    [% END # /IF mana %]
347
                                </div> <!-- /.tab-content -->
348
                                [% END # /WRAPPER tab_panels %]
348
                            </div> <!-- /#serialstabs -->
349
                            [% END # /WRAPPER tabs#serialstabs %]
350
349
                        [% ELSE %]
351
                        [% ELSE %]
350
                            <div class="dialog message">
352
                            <div class="dialog message">
351
                                <p>Your search returned no results.</p>
353
                                <p>Your search returned no results.</p>
Lines 479-485 Link Here
479
            }
481
            }
480
482
481
        $(document).ready(function() {
483
        $(document).ready(function() {
482
            var osrlt = $("#opened table").dataTable($.extend(true, {}, dataTablesDefaults, {
484
            var osrlt = $("#opened_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
483
                "sPaginationType": "full",
485
                "sPaginationType": "full",
484
                "order": [[ 2, "asc" ]],
486
                "order": [[ 2, "asc" ]],
485
                "aoColumnDefs": [
487
                "aoColumnDefs": [
Lines 488-494 Link Here
488
                ]
490
                ]
489
            }));
491
            }));
490
492
491
            var csrlt = $("#closed table").dataTable($.extend(true, {}, dataTablesDefaults, {
493
            var csrlt = $("#closed_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
492
                // FIXME sort function of additional_fields!
494
                // FIXME sort function of additional_fields!
493
                "order": [[ 2, "asc" ]],
495
                "order": [[ 2, "asc" ]],
494
                "sPaginationType": "full",
496
                "sPaginationType": "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-189 / +117 lines)
Lines 93-120 Link Here
93
                    </div>
93
                    </div>
94
                [% END %]
94
                [% END %]
95
95
96
                <div id="subscription_description" class="toptabs">
96
                [% WRAPPER tabs id= "subscription_description" %]
97
                    <ul class="nav nav-tabs" role="tablist">
97
                    [% WRAPPER tabs_nav %]
98
                        <li role="presentation" class="active">
98
                        [% WRAPPER tab_item tabname= "subscription_info" bt_active= 1 %] Information [% END %]
99
                            <a href="#subscription_info" aria-controls="subscription_info" role="tab" data-toggle="tab">Information</a>
99
                        [% WRAPPER tab_item tabname= "subscription_planning" %] Planning [% END %]
100
                        </li>
100
                        [% WRAPPER tab_item tabname= "subscription_issues" %] Issues [% END %]
101
                        <li role="presentation">
101
                        [% WRAPPER tab_item tabname= "subscription_summary" %] Summary [% END %]
102
                            <a href="#subscription_planning" aria-controls="subscription_planning" role="tab" data-toggle="tab">Planning</a>
103
                        </li>
104
                        <li role="presentation">
105
                            <a href="#subscription_issues" aria-controls="subscription_issues" role="tab" data-toggle="tab">Issues</a>
106
                        </li>
107
                        <li role="presentation">
108
                            <a href="#subscription_summary" aria-controls="subscription_summary" role="tab" data-toggle="tab">Summary</a>
109
                        </li>
110
                        [% IF orders_grouped.size %]
102
                        [% IF orders_grouped.size %]
111
                            <li role="presentation">
103
                            [% WRAPPER tab_item tabname= "acquisition_details" %] Acquisition details [% END %]
112
                                <a href="#acquisition_details" aria-controls=" aria-controls="profile" role="tab" data-toggle="tab"" role="tab" data-toggle="tab">Acquisition details</a>
113
                            </li>
114
                        [% END %]
104
                        [% END %]
115
                    </ul>
105
                    [% END # /WRAPPER tabs_nav %]
116
                    <div class="tab-content">
106
117
                        <div id="subscription_info" role="tabpanel" class="tab-pane active">
107
                    [% WRAPPER tab_panels %]
108
                        [% WRAPPER tab_panel tabname="subscription_info" bt_active= 1 %]
118
                            <div class="row">
109
                            <div class="row">
119
                                <div class="col-sm-6">
110
                                <div class="col-sm-6">
120
                                    <div class="rows">
111
                                    <div class="rows">
Lines 182-190 Link Here
182
                                    </div> <!-- /.col-sm-6 -->
173
                                    </div> <!-- /.col-sm-6 -->
183
                                </div> <!-- /.row -->
174
                                </div> <!-- /.row -->
184
                            [% END %]
175
                            [% END %]
185
                        </div> <!-- /#subscription_info -->
176
                        [% END # /WRAPPER#subscription_info %]
186
177
187
                        <div id="subscription_planning" role="tabpanel" class="tab-pane">
178
                        [% WRAPPER tab_panel tabname="subscription_planning" %]
188
                            <div class="row">
179
                            <div class="row">
189
                                <div class="col-sm-12">
180
                                <div class="col-sm-12">
190
                                    <div class="rows">
181
                                    <div class="rows">
Lines 263-333 Link Here
263
                                    </div> <!-- /.rows -->
254
                                    </div> <!-- /.rows -->
264
                                </div> <!-- /.col-sd-12 -->
255
                                </div> <!-- /.col-sd-12 -->
265
                            </div> <!-- /.row -->
256
                            </div> <!-- /.row -->
266
                        </div> <!-- /#subscription_planning -->
257
                        [% END # /WRAPPER#subscription_planning %]
267
258
268
                        <div id="subscription_numbering" role="tabpanel" class="tab-pane" style="display:none">
259
                        [% WRAPPER tab_panel tabname="subscription_issues" %]
269
                            <h3>Numbering calculation</h3>
270
                            <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
271
                            <table>
272
                                <tr>
273
                                    <th>&nbsp;</th>
274
                                    <th>X</th>
275
                                    <th>Y</th>
276
                                    <th>Z</th>
277
                                </tr>
278
                                <tr>
279
                                    <td>Add</td>
280
                                    <td>
281
                                        [% add1 | html %]
282
                                    </td>
283
                                    <td>
284
                                    [% add2 | html %]
285
                                </td>
286
                                <td>
287
                                    [% add3 | html %]
288
                                </td>
289
                            </tr>
290
                            <tr>
291
                                <td>once every</td>
292
                                <td>[% every1 | html %]</td>
293
                                <td>[% every2 | html %]</td>
294
                                <td>[% every3 | html %]</td>
295
                            </tr>
296
                            <tr>
297
                                <td>When more than</td>
298
                                <td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br />
299
                                    <em>(is [% innerloop1 | html %])</em>[% END %]</td>
300
                                <td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br />
301
                                    <em>(is [% innerloop2 | html %])</em>[% END %]</td>
302
                                <td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br />
303
                                    <em>(is [% innerloop3 | html %])</em>[% END %]</td>
304
                            </tr>
305
                            <tr>
306
                                <td>Set back to</td>
307
                                <td>[% setto1 | html %]</td>
308
                                <td>[% setto2 | html %]</td>
309
                                <td>[% setto3 | html %]</td>
310
                            </tr>
311
                            <tr>
312
                                <td>
313
                                        Inner counter
314
                                </td>
315
                                <td>[% innerloop1 | html %]</td>
316
                                <td>[% innerloop2 | html %]</td>
317
                                <td>[% innerloop3 | html %]</td>
318
                            </tr>
319
                            <tr>
320
                                <td>
321
                                        Last value
322
                                </td>
323
                                <td>[% lastvalue1 | html %]</td>
324
                                <td>[% lastvalue2 | html %]</td>
325
                                <td>[% lastvalue3 | html %]</td>
326
                            </tr>
327
                        </table>
328
                    </div> <!-- /#subscription_numbering -->
329
330
                        <div id="subscription_issues" role="tabpanel" class="tab-pane">
331
                            <table>
260
                            <table>
332
                                <tr>
261
                                <tr>
333
                                    <th>Issue number</th>
262
                                    <th>Issue number</th>
Lines 345-388 Link Here
345
                                            [% IF serialslis.planneddate %]
274
                                            [% IF serialslis.planneddate %]
346
                                                [% serialslis.planneddate | html %]
275
                                                [% serialslis.planneddate | html %]
347
                                            [% ELSE %]
276
                                            [% ELSE %]
348
                                            <span>Unknown</span>
277
                                                <span>Unknown</span>
349
                                        [% END %]
350
                                    </td>
351
                                    <td>
352
                                        [% IF serialslis.publisheddate %]
353
                                            [% serialslis.publisheddate | html %]
354
                                        [% ELSE %]
355
                                            <span>Unknown</span>
356
                                        [% END %]
357
                                    </td>
358
                                    <td>
359
                                        [% serialslis.publisheddatetext | html %]
360
                                    </td>
361
                                    <td>
362
                                        [% IF ( serialslis.status1 ) %]<span>Expected</span>[% END %]
363
                                        [% IF ( serialslis.status2 ) %]<span>Arrived</span>[% END %]
364
                                        [% IF ( serialslis.status3 ) %]<span>Late</span>[% END %]
365
                                        [% IF ( serialslis.status4 ) %]<span>Missing</span>[% END %]
366
                                        [% IF ( serialslis.status41 ) %]<span>Missing (never received)</span>[% END %]
367
                                        [% IF ( serialslis.status42 ) %]<span>Missing (sold out)</span>[% END %]
368
                                        [% IF ( serialslis.status43 ) %]<span>Missing (damaged)</span>[% END %]
369
                                        [% IF ( serialslis.status44 ) %]<span>Missing (lost)</span>[% END %]
370
                                        [% IF ( serialslis.status5 ) %]<span>Not issued</span>[% END %]
371
                                        [% IF ( serialslis.status6 ) %]<span>Delete</span>[% END %]
372
                                        [% IF ( serialslis.status7 ) %]
373
                                            <span>Claimed</span>
374
                                            [% IF ( serialslis.claimdate ) %]
375
                                                [% serialslis.claimdate | html %]
376
                                            [% END %]
278
                                            [% END %]
377
                                        [% END %]
279
                                        </td>
378
                                        [% IF ( serialslis.status8 ) %]<span>Stopped</span>[% END %]
280
                                        <td>
379
                                    </td>
281
                                            [% IF serialslis.publisheddate %]
380
                                </tr>
282
                                                [% serialslis.publisheddate | html %]
381
                            [% END # /FOREACH serialslist %]
283
                                            [% ELSE %]
382
                        </table>
284
                                                <span>Unknown</span>
383
                    </div> <!-- /#subscription_issues -->
285
                                            [% END %]
286
                                        </td>
287
                                        <td>
288
                                            [% serialslis.publisheddatetext | html %]
289
                                        </td>
290
                                        <td>
291
                                            [% IF ( serialslis.status1 ) %]<span>Expected</span>[% END %]
292
                                            [% IF ( serialslis.status2 ) %]<span>Arrived</span>[% END %]
293
                                            [% IF ( serialslis.status3 ) %]<span>Late</span>[% END %]
294
                                            [% IF ( serialslis.status4 ) %]<span>Missing</span>[% END %]
295
                                            [% IF ( serialslis.status41 ) %]<span>Missing (never received)</span>[% END %]
296
                                            [% IF ( serialslis.status42 ) %]<span>Missing (sold out)</span>[% END %]
297
                                            [% IF ( serialslis.status43 ) %]<span>Missing (damaged)</span>[% END %]
298
                                            [% IF ( serialslis.status44 ) %]<span>Missing (lost)</span>[% END %]
299
                                            [% IF ( serialslis.status5 ) %]<span>Not issued</span>[% END %]
300
                                            [% IF ( serialslis.status6 ) %]<span>Delete</span>[% END %]
301
                                            [% IF ( serialslis.status7 ) %]
302
                                                <span>Claimed</span>
303
                                                [% IF ( serialslis.claimdate ) %]
304
                                                    [% serialslis.claimdate | html %]
305
                                                [% END %]
306
                                            [% END %]
307
                                            [% IF ( serialslis.status8 ) %]<span>Stopped</span>[% END %]
308
                                        </td>
309
                                    </tr>
310
                                [% END # /FOREACH serialslist %]
311
                            </table>
312
                        [% END # /WRAPPER#subscription_issues %]
384
313
385
                        <div id="subscription_summary" role="tabpanel" class="tab-pane">
314
                        [% WRAPPER tab_panel tabname="subscription_summary" %]
386
                            <div class="row">
315
                            <div class="row">
387
                                <div class="col-sm-12">
316
                                <div class="col-sm-12">
388
                                    <div class="rows">
317
                                    <div class="rows">
Lines 401-410 Link Here
401
                                    </div> <!-- /.rows -->
330
                                    </div> <!-- /.rows -->
402
                                </div> <!-- /.col-sm-12 -->
331
                                </div> <!-- /.col-sm-12 -->
403
                            </div> <!-- /.row -->
332
                            </div> <!-- /.row -->
404
                        </div> <!-- /#subscription_summary -->
333
                        [% END # /WRAPPER#subscription_summary %]
405
334
406
                        [% IF orders_grouped.size %]
335
                        [% IF orders_grouped.size %]
407
                            <div id="acquisition_details" role="tabpanel" class="tab-pane">
336
                            [% WRAPPER tab_panel tabname="acquisition_details" %]
408
                                <h2>Acquisition details</h2>
337
                                <h2>Acquisition details</h2>
409
                                <table id="orders">
338
                                <table id="orders">
410
                                    <caption>
339
                                    <caption>
Lines 441-516 Link Here
441
                                                    [% IF CAN_user_acquisition_order_manage %]
370
                                                    [% IF CAN_user_acquisition_order_manage %]
442
                                                        <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a>
371
                                                        <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a>
443
                                                    [% ELSE %]
372
                                                    [% ELSE %]
444
                                                    [% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])
373
                                                        [% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])
445
                                                [% END %]
446
                                            </td>
447
                                            <td></td> [%# ordernumber %]
448
                                            <td>[% parent_order.basket.creationdate | $KohaDates %]</td>
449
                                            <td>[% parent_order.datereceived | $KohaDates %]</td>
450
                                            <td>
451
                                                [% SWITCH parent_order.orderstatus %]
452
                                                    [% CASE 'new' %]<span title="status_1">New</span>
453
                                                    [% CASE 'ordered' %]<span title="status_2">Ordered</span>
454
                                                    [% CASE 'partial' %]<span title="status_3">Partial</span>
455
                                                    [% CASE 'complete' %]<span title="status_4">Complete</span>
456
                                                    [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
457
                                                [% END %]
458
                                            </td>
459
                                            <td></td> [%# internalnote %]
460
                                            <td></td> [%# vendornote %]
461
                                            <td></td> [%# fund %]
462
                                            <td>[% parent_order.quantity | html %]</td>
463
                                            <td>[% parent_order.ecost_tax_excluded | $Price %] / [% parent_order.ecost_tax_included | $Price %]</td>
464
                                            <td>[% parent_order.unitprice_tax_excluded | $Price %] / [% parent_order.unitprice_tax_included | $Price %]</td>
465
                                        </tr>
466
                                        [% FOR order IN parent_order.orders %]
467
                                            <tr data-tt-id="0" data-tt-parent-id="[% parent_tree_id | html %]">
468
                                                <td>
469
                                                [% IF order.invoice %]
470
                                                    [% IF CAN_user_acquisition %]
471
                                                        <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]" title="Invoice detail page">
472
                                                           [% order.invoice.invoicenumber | html %]</a>
473
                                                    [% ELSE %]
474
                                                        [% order.invoice.invoicenumber | html %]
475
                                                    [% END %]
476
                                                [% END %]
477
                                                </td>
478
                                                <td></td> [%# basket %]
479
                                                <td>[% order.ordernumber | html %]</td>
480
                                                <td data-order="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</td>
481
                                                <td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</td>
482
                                                    [% SWITCH order.orderstatus %]
483
                                                        [% CASE 'new' %]<td data-order="status_1"><span>New</span>
484
                                                        [% CASE 'ordered' %]<td data-order="status_2"><span>Ordered</span>
485
                                                        [% CASE 'partial' %]<td data-order="status_3"><span>Partial</span>
486
                                                        [% CASE 'complete' %]<td data-order="status_4"><span>Complete</span>
487
                                                        [% CASE 'cancelled' %]<td data-order="status_5"><span>Cancelled</span>
488
                                                    [% END %]
489
                                                </td>
490
                                                <td>[% order.order_internalnote | html %]</td>
491
                                                <td>[% order.order_vendornote | html %]</td>
492
                                                <td>[% order.fund.budget_name | html %]</td>
493
                                                <td>[% order.quantity | html %]</td>
494
                                                <td>
495
                                                    [% UNLESS order.datereceived %]
496
                                                        [% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %]
497
                                                    [% END %]
374
                                                    [% END %]
498
                                                </td>
375
                                                </td>
376
                                                <td></td> [%# ordernumber %]
377
                                                <td>[% parent_order.basket.creationdate | $KohaDates %]</td>
378
                                                <td>[% parent_order.datereceived | $KohaDates %]</td>
499
                                                <td>
379
                                                <td>
500
                                                    [% IF order.datereceived %]
380
                                                    [% SWITCH parent_order.orderstatus %]
501
                                                        [%# FIXME What if unitprice has not been filled? %]
381
                                                        [% CASE 'new' %]<span title="status_1">New</span>
502
                                                        [% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %]
382
                                                        [% CASE 'ordered' %]<span title="status_2">Ordered</span>
383
                                                        [% CASE 'partial' %]<span title="status_3">Partial</span>
384
                                                        [% CASE 'complete' %]<span title="status_4">Complete</span>
385
                                                        [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
503
                                                    [% END %]
386
                                                    [% END %]
504
                                                </td>
387
                                                </td>
388
                                                <td></td> [%# internalnote %]
389
                                                <td></td> [%# vendornote %]
390
                                                <td></td> [%# fund %]
391
                                                <td>[% parent_order.quantity | html %]</td>
392
                                                <td>[% parent_order.ecost_tax_excluded | $Price %] / [% parent_order.ecost_tax_included | $Price %]</td>
393
                                                <td>[% parent_order.unitprice_tax_excluded | $Price %] / [% parent_order.unitprice_tax_included | $Price %]</td>
505
                                            </tr>
394
                                            </tr>
506
                                        [% END # /FOR order %]
395
                                            [% FOR order IN parent_order.orders %]
507
                                    [% END # /FOR ordernumber %]
396
                                                <tr data-tt-id="0" data-tt-parent-id="[% parent_tree_id | html %]">
508
                                </tbody>
397
                                                    <td>
509
                            </table> <!-- /#orders -->
398
                                                        [% IF order.invoice %]
510
                        </div> <!-- /#acquisition_details -->
399
                                                            [% IF CAN_user_acquisition %]
511
                    [% END # IF orders_grouped.size %]
400
                                                                <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]" title="Invoice detail page">
512
                    </div> <!-- /.tab-content -->
401
                                                                [% order.invoice.invoicenumber | html %]</a>
513
                </div> <!-- /#subscription_description -->
402
                                                            [% ELSE %]
403
                                                                [% order.invoice.invoicenumber | html %]
404
                                                            [% END %]
405
                                                        [% END %]
406
                                                    </td>
407
                                                    <td></td> [%# basket %]
408
                                                    <td>[% order.ordernumber | html %]</td>
409
                                                    <td data-order="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</td>
410
                                                    <td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</td>
411
                                                        [% SWITCH order.orderstatus %]
412
                                                            [% CASE 'new' %]<td data-order="status_1"><span>New</span>
413
                                                            [% CASE 'ordered' %]<td data-order="status_2"><span>Ordered</span>
414
                                                            [% CASE 'partial' %]<td data-order="status_3"><span>Partial</span>
415
                                                            [% CASE 'complete' %]<td data-order="status_4"><span>Complete</span>
416
                                                            [% CASE 'cancelled' %]<td data-order="status_5"><span>Cancelled</span>
417
                                                        [% END %]
418
                                                    </td>
419
                                                    <td>[% order.order_internalnote | html %]</td>
420
                                                    <td>[% order.order_vendornote | html %]</td>
421
                                                    <td>[% order.fund.budget_name | html %]</td>
422
                                                    <td>[% order.quantity | html %]</td>
423
                                                    <td>
424
                                                        [% UNLESS order.datereceived %]
425
                                                            [% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %]
426
                                                        [% END %]
427
                                                    </td>
428
                                                    <td>
429
                                                        [% IF order.datereceived %]
430
                                                            [%# FIXME What if unitprice has not been filled? %]
431
                                                            [% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %]
432
                                                        [% END %]
433
                                                    </td>
434
                                                </tr>
435
                                            [% END # /FOR order %]
436
                                        [% END # /FOR ordernumber %]
437
                                    </tbody>
438
                                </table> <!-- /#orders -->
439
                            [% END # /WRAPPER tab_panel#acquisition_details %]
440
                        [% END # IF orders_grouped.size %]
441
                    [% END # /WRAPPER tab_panels %]
442
                [% END # /WRAPPER tabs#subscription_description %]
514
            </main>
443
            </main>
515
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
444
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
516
445
517
- 

Return to bug 32698