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> </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 |
- |
|
|