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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-185 / +186 lines)
Lines 433-473 Link Here
433
        <div id="acqui_basket_content">
433
        <div id="acqui_basket_content">
434
        [% IF ( books_loop ) %]
434
        [% IF ( books_loop ) %]
435
            <h2>Orders</h2>
435
            <h2>Orders</h2>
436
            <table id="orders">
436
            <div class="page-section">
437
                <thead>
437
                <table id="orders">
438
                    <tr>
438
                    <thead>
439
                        <th>No.</th>
439
                        <tr>
440
                        <th>[% tp('noun', 'Order') | html %]</th>
440
                            <th>No.</th>
441
                        <th>RRP tax exc.</th>
441
                            <th>[% tp('noun', 'Order') | html %]</th>
442
                        <th>Actual cost tax exc.</th>
442
                            <th>RRP tax exc.</th>
443
                        <th>Budgeted cost tax exc.</th>
443
                            <th>Actual cost tax exc.</th>
444
                        <th>RRP tax inc.</th>
444
                            <th>Budgeted cost tax exc.</th>
445
                        <th>Actual cost tax inc.</th>
445
                            <th>RRP tax inc.</th>
446
                        <th>Budgeted cost tax inc.</th>
446
                            <th>Actual cost tax inc.</th>
447
                        <th>Replacement price</th>
447
                            <th>Budgeted cost tax inc.</th>
448
                        <th>Qty.</th>
448
                            <th>Replacement price</th>
449
                        <th>Total tax exc. ([% currency | html %])</th>
449
                            <th>Qty.</th>
450
                        <th>Total tax inc. ([% currency | html %])</th>
450
                            <th>Total tax exc. ([% currency | html %])</th>
451
                        <th>GST %</th>
451
                            <th>Total tax inc. ([% currency | html %])</th>
452
                        <th>GST</th>
452
                            <th>GST %</th>
453
                        <th>Fund</th>
453
                            <th>GST</th>
454
                        <th>Estimated delivery date</th>
454
                            <th>Fund</th>
455
                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
455
                            <th>Estimated delivery date</th>
456
                        <th>Supplier report</th>
456
                            [% IF Koha.Preference('EDIFACT') && ediaccount %]
457
                        [% END %]
457
                            <th>Supplier report</th>
458
                        [% IF ( active ) %]
459
                            [% UNLESS ( closedate ) %]
460
                                <th class="NoSort">Modify</th>
461
                                <th class="NoSort">Cancel order</th>
462
                            [% END %]
458
                            [% END %]
463
                        [% END %]
459
                            [% IF ( active ) %]
464
                    </tr>
460
                                [% UNLESS ( closedate ) %]
465
                </thead>
461
                                    <th class="NoSort">Modify</th>
466
                <tfoot>
462
                                    <th class="NoSort">Cancel order</th>
467
                [% FOREACH foot_loo IN book_foot_loop %]
463
                                [% END %]
464
                            [% END %]
465
                        </tr>
466
                    </thead>
467
                    <tfoot>
468
                    [% FOREACH foot_loo IN book_foot_loop %]
469
                        <tr>
470
                            <th></th>
471
                            <th>Total (GST [% foot_loo.tax_rate * 100 | html %])</th>
472
                            <th>&nbsp;</th>
473
                            <th>&nbsp;</th>
474
                            <th>&nbsp;</th>
475
                            <th>&nbsp;</th>
476
                            <th>&nbsp;</th>
477
                            <th>&nbsp;</th>
478
                            <th>&nbsp;</th>
479
                            <th>[% foot_loo.quantity | html %]</th>
480
                            <th>[% foot_loo.total_tax_excluded | $Price %]</th>
481
                            <th>[% foot_loo.total_tax_included | $Price %]</th>
482
                            <th>&nbsp;</th>
483
                            <th>[% foot_loo.tax_value | $Price %]</th>
484
                            <th>&nbsp;</th>
485
                            <th>&nbsp;</th>
486
                            [% IF Koha.Preference('EDIFACT') && ediaccount %]
487
                            <th>&nbsp;</th>
488
                            [% END %]
489
                            [% IF ( active ) %]
490
                                [% UNLESS ( closedate ) %]
491
                                    <th>&nbsp;</th>
492
                                    <th>&nbsp;</th>
493
                                [% END %]
494
                            [% END %]
495
                        </tr>
496
                    [% END %]
468
                    <tr>
497
                    <tr>
469
                        <th></th>
498
                        <th></th>
470
                        <th>Total (GST [% foot_loo.tax_rate * 100 | html %])</th>
499
                        <th>Total ([% currency | html %])</th>
471
                        <th>&nbsp;</th>
500
                        <th>&nbsp;</th>
472
                        <th>&nbsp;</th>
501
                        <th>&nbsp;</th>
473
                        <th>&nbsp;</th>
502
                        <th>&nbsp;</th>
Lines 475-485 Link Here
475
                        <th>&nbsp;</th>
504
                        <th>&nbsp;</th>
476
                        <th>&nbsp;</th>
505
                        <th>&nbsp;</th>
477
                        <th>&nbsp;</th>
506
                        <th>&nbsp;</th>
478
                        <th>[% foot_loo.quantity | html %]</th>
507
                        <th>[% total_quantity | html %]</th>
479
                        <th>[% foot_loo.total_tax_excluded | $Price %]</th>
508
                        <th>[% total_tax_excluded | $Price %]</th>
480
                        <th>[% foot_loo.total_tax_included | $Price %]</th>
509
                        <th>[% total_tax_included | $Price %]</th>
481
                        <th>&nbsp;</th>
510
                        <th>&nbsp;</th>
482
                        <th>[% foot_loo.tax_value | $Price %]</th>
511
                        <th>[% total_tax_value | $Price %]</th>
483
                        <th>&nbsp;</th>
512
                        <th>&nbsp;</th>
484
                        <th>&nbsp;</th>
513
                        <th>&nbsp;</th>
485
                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
514
                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
Lines 492-660 Link Here
492
                            [% END %]
521
                            [% END %]
493
                        [% END %]
522
                        [% END %]
494
                    </tr>
523
                    </tr>
495
                [% END %]
524
                    </tfoot>
496
                <tr>
525
                    <tbody>
497
                    <th></th>
526
                    [% FOREACH books_loo IN books_loop %]
498
                    <th>Total ([% currency | html %])</th>
527
                        [% IF ( books_loo.order_received ) %]
499
                    <th>&nbsp;</th>
528
                            <tr class="disabled">
500
                    <th>&nbsp;</th>
529
                        [% ELSE %]
501
                    <th>&nbsp;</th>
530
                            <tr>
502
                    <th>&nbsp;</th>
503
                    <th>&nbsp;</th>
504
                    <th>&nbsp;</th>
505
                    <th>&nbsp;</th>
506
                    <th>[% total_quantity | html %]</th>
507
                    <th>[% total_tax_excluded | $Price %]</th>
508
                    <th>[% total_tax_included | $Price %]</th>
509
                    <th>&nbsp;</th>
510
                    <th>[% total_tax_value | $Price %]</th>
511
                    <th>&nbsp;</th>
512
                    <th>&nbsp;</th>
513
                    [% IF Koha.Preference('EDIFACT') && ediaccount %]
514
                    <th>&nbsp;</th>
515
                    [% END %]
516
                    [% IF ( active ) %]
517
                        [% UNLESS ( closedate ) %]
518
                            <th>&nbsp;</th>
519
                            <th>&nbsp;</th>
520
                        [% END %]
521
                    [% END %]
522
                </tr>
523
                </tfoot>
524
                <tbody>
525
                [% FOREACH books_loo IN books_loop %]
526
                    [% IF ( books_loo.order_received ) %]
527
                        <tr class="disabled">
528
                    [% ELSE %]
529
                        <tr>
530
                    [% END %]
531
                        <td>
532
                            [% books_loo.ordernumber | html %]
533
                        </td>
534
                        <td>
535
                            <p>
536
                                [% IF ( books_loo.order_received ) %] <span class="order-received">(received)</span>[% END %]
537
                                [% IF books_loo.title %]
538
                                    [% INCLUDE 'biblio-title.inc' biblio=books_loo link = 1 %] [% IF books_loo.author %] by [% books_loo.author | html %][% END %]
539
                                [% ELSE %]
540
                                    <em>Deleted bibliographic record, can't find title</em><br />
541
                                [%- END %]
542
                                <br />
543
                                [%- IF ( books_loo.isbn ) %] - [% books_loo.isbn | html %][% END -%]
544
                                [%- IF ( books_loo.issn ) %] - [% books_loo.issn | html %][% END -%]
545
                                [%- IF ( books_loo.publishercode ) %], [% books_loo.publishercode | html %][% END -%]
546
                                [%- IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear | html -%]
547
                                [%- ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate | html %][% END -%]
548
                                [%- IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END -%]
549
                                [%- IF ( books_loo.suggestionid ) %]
550
                                    <br/>
551
                                    Suggested by: [% books_loo.surnamesuggestedby | html %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby | html %] [% END %]
552
                                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid | uri %]&amp;op=show">suggestion #[% books_loo.suggestionid | html %]</a>)
553
                                [% END %]
554
                            </p>
555
                                [% IF ( books_loo.order_internalnote ) %]
556
                                    <p class="ordernote"><strong>Internal note: </strong><span id="internal-note-[% books_loo.ordernumber | html %]">[% books_loo.order_internalnote | html %]</span> <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="internal" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=internal" title="Edit internal note"><i class="fa fa-pencil"></i> Edit internal note</a></p>
557
                                [% ELSE %]
558
                                    <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="internal" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=internal" title="Add internal note"><i class="fa fa-plus"></i> Add internal note</a>
559
                                [% END %]
560
                                [% IF ( books_loo.order_vendornote ) %]
561
                                    <p class="ordernote"><strong>Vendor note: </strong> <span id="vendor-note-[% books_loo.ordernumber | html %]">[% books_loo.order_vendornote | html %]</span> <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="vendor" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=vendor" title="Edit vendor note"><i class="fa fa-pencil"></i> Edit vendor note</a></p>
562
                                [% ELSE %]
563
                                    <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="vendor" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=vendor" title="Add vendor note"><i class="fa fa-plus"></i> Add vendor note</a>
564
                                [% END %]
565
                            [% IF (books_loo.transferred_from) %]
566
                              [% basket = books_loo.transferred_from.basket %]
567
                              [% bookseller = books_loo.transferred_from.bookseller %]
568
                              [% timestamp = books_loo.transferred_from.timestamp %]
569
                              <p>Transferred from basket:
570
                                <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]"> [% basket.basketname | html %]</a>
571
                                (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | uri %]">[% bookseller.name | html %]</a>)
572
                                on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
573
                                  [% timestamp | $KohaDates %]
574
                                </span>
575
                              </p>
576
                            [% END %]
577
                            [% SET claims = books_loo.order_object.claims %]
578
                            [% IF claims.count %]
579
                                <p>
580
                                    This order has been claimed [% claims.count | html %] times. On [% FOR c IN claims %][% c.claimed_on | $KohaDates %][% UNLESS loop.last %], [% END %][% END %]
581
                                </p>
582
                            [% END %]
583
                        </td>
584
                        [% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %]
585
                        [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
586
                        <td class="number [% IF books_loo.rrp_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_excluded | $Price %] [% IF ( books_loo.uncertainprice ) %] <span>(Uncertain)</span> [% END %] </td>
587
                        <td class="number [% IF books_loo.unitprice_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.unitprice_tax_excluded | $Price %]</td>
588
                        <td class="number [% IF books_loo.ecost_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_excluded | $Price %]</td>
589
                        <td class="number [% IF books_loo.rrp_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_included | $Price %]</td>
590
                        <td class="number [% IF books_loo.unitprice_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.unitprice_tax_included | $Price %]</td>
591
                        <td class="number [% IF books_loo.ecost_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_included | $Price %]</td>
592
                        <td class="number [% IF books_loo.replacementprice.search(zero_regex) %]error[% END %]">[% books_loo.replacementprice | $Price %]</td>
593
                        <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity | html %]</td>
594
                        <td class="number [% IF books_loo.total_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_excluded | $Price %]</td>
595
                        <td class="number [% IF books_loo.total_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_included | $Price %]</td>
596
                        <td class="number">[% books_loo.tax_rate * 100 | html %]</td>
597
                        <td class="number [% IF books_loo.tax_value.search(zero_regex) %]error[% END %]">[% books_loo.tax_value | $Price %]</td>
598
                        <td>[% books_loo.budget_name | html %]</td>
599
                        <td data-order="[% books_loo.estimated_delivery_date | html %]" class="actions">
600
                            [% books_loo.estimated_delivery_date | $KohaDates %]
601
                            [% IF CAN_user_acquisition_order_manage %]
602
                            <a class="edit_delivery_date" href="/cgi-bin/koha/acqui/moddeliverydate.pl?ordernumber=[% books_loo.ordernumber | html %]" title="Edit delivery date" data-ordernumber="[% books_loo.ordernumber | html %]" id="delivery_date_[% books_loo.ordernumber | html %]" data-delivery_date="[% books_loo.estimated_delivery_date | $KohaDates %]">
603
                                <i class="fa fa-pencil"></i> Edit
604
                            </a>
605
                        </td>
606
                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
607
                        <td>[% books_loo.suppliers_report | html %]</td>
608
                        [% END %]
531
                        [% END %]
609
                    [% END %]
610
                        [% IF ( active ) %]
611
                            [% UNLESS ( closedate ) %]
612
                            <td>
532
                            <td>
613
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Modify</a>
533
                                [% books_loo.ordernumber | html %]
614
                                [% UNLESS (books_loo.order_received) %]
615
                                    <br />
616
                                    <a href="#" class="transfer_order" data-ordernumber="[% books_loo.ordernumber | html %]">Transfer</a>
617
                                [% END %]
618
                            </td>
534
                            </td>
619
                            <td>
535
                            <td>
620
                            [% IF ( books_loo.orderstatus != "complete") %]
536
                                <p>
621
                                [% IF ( books_loo.left_holds_on_order ) %]
537
                                    [% IF ( books_loo.order_received ) %] <span class="order-received">(received)</span>[% END %]
622
                                    <span class="button" title="Can't cancel order, ([% books_loo.holds_on_order | html %]) holds are linked with this order. Cancel holds first">Can't cancel order</span><br>
538
                                    [% IF books_loo.title %]
623
                                [% ELSE %]
539
                                        [% INCLUDE 'biblio-title.inc' biblio=books_loo link = 1 %] [% IF books_loo.author %] by [% books_loo.author | html %][% END %]
624
                                    <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber | uri %]&biblionumber=[% books_loo.biblionumber | uri %]&basketno=[% basketno | uri %]&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno | uri %]" class="button">Cancel order</a><br>
540
                                    [% ELSE %]
625
                                [% END %]
541
                                        <em>Deleted bibliographic record, can't find title</em><br />
626
                                [% IF ( books_loo.can_del_bib ) %]
542
                                    [%- END %]
627
                                    <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber | uri %]&biblionumber=[% books_loo.biblionumber | uri %]&basketno=[% basketno | uri %]&del_biblio=1&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno | uri %]" class="button">Cancel order and delete catalog record</a><br>
543
                                    <br />
628
                                [% ELSE %]
544
                                    [%- IF ( books_loo.isbn ) %] - [% books_loo.isbn | html %][% END -%]
629
                                    <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
545
                                    [%- IF ( books_loo.issn ) %] - [% books_loo.issn | html %][% END -%]
630
                                [% END %]
546
                                    [%- IF ( books_loo.publishercode ) %], [% books_loo.publishercode | html %][% END -%]
631
                                [% IF ( books_loo.left_item ) %]
547
                                    [%- IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear | html -%]
632
                                    <strong title="Can't delete catalog record, because of [% books_loo.items | html %] existing hold(s)" >[% books_loo.items | html %] item(s) left</strong><br>
548
                                    [%- ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate | html %][% END -%]
633
                                [% END %]
549
                                    [%- IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END -%]
634
                                [% IF ( books_loo.left_biblio ) %]
550
                                    [%- IF ( books_loo.suggestionid ) %]
635
                                    <strong title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios | html %] order(s) left</strong><br>
551
                                        <br/>
636
                                [% END %]
552
                                        Suggested by: [% books_loo.surnamesuggestedby | html %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby | html %] [% END %]
637
                                [% IF ( books_loo.left_subscription ) %]
553
                                        (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid | uri %]&amp;op=show">suggestion #[% books_loo.suggestionid | html %]</a>)
638
                                    <strong title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions | html %] subscription(s) left</strong><br>
554
                                    [% END %]
555
                                </p>
556
                                    [% IF ( books_loo.order_internalnote ) %]
557
                                        <p class="ordernote"><strong>Internal note: </strong><span id="internal-note-[% books_loo.ordernumber | html %]">[% books_loo.order_internalnote | html %]</span> <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="internal" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=internal" title="Edit internal note"><i class="fa fa-pencil"></i> Edit internal note</a></p>
558
                                    [% ELSE %]
559
                                        <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="internal" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=internal" title="Add internal note"><i class="fa fa-plus"></i> Add internal note</a>
560
                                    [% END %]
561
                                    [% IF ( books_loo.order_vendornote ) %]
562
                                        <p class="ordernote"><strong>Vendor note: </strong> <span id="vendor-note-[% books_loo.ordernumber | html %]">[% books_loo.order_vendornote | html %]</span> <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="vendor" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=vendor" title="Edit vendor note"><i class="fa fa-pencil"></i> Edit vendor note</a></p>
563
                                    [% ELSE %]
564
                                        <a class="edit_note noExport" data-ordernumber="[% books_loo.ordernumber | html %]" data-note_type="vendor" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber | html %]&type=vendor" title="Add vendor note"><i class="fa fa-plus"></i> Add vendor note</a>
565
                                    [% END %]
566
                                [% IF (books_loo.transferred_from) %]
567
                                  [% basket = books_loo.transferred_from.basket %]
568
                                  [% bookseller = books_loo.transferred_from.bookseller %]
569
                                  [% timestamp = books_loo.transferred_from.timestamp %]
570
                                  <p>Transferred from basket:
571
                                    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]"> [% basket.basketname | html %]</a>
572
                                    (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | uri %]">[% bookseller.name | html %]</a>)
573
                                    on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
574
                                      [% timestamp | $KohaDates %]
575
                                    </span>
576
                                  </p>
639
                                [% END %]
577
                                [% END %]
640
                                [% IF ( books_loo.left_holds ) %]
578
                                [% SET claims = books_loo.order_object.claims %]
641
                                    <strong title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds | html %] hold(s) left</strong>
579
                                [% IF claims.count %]
580
                                    <p>
581
                                        This order has been claimed [% claims.count | html %] times. On [% FOR c IN claims %][% c.claimed_on | $KohaDates %][% UNLESS loop.last %], [% END %][% END %]
582
                                    </p>
642
                                [% END %]
583
                                [% END %]
643
                            [% END %]
644
                            </td>
584
                            </td>
585
                            [% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %]
586
                            [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
587
                            <td class="number [% IF books_loo.rrp_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_excluded | $Price %] [% IF ( books_loo.uncertainprice ) %] <span>(Uncertain)</span> [% END %] </td>
588
                            <td class="number [% IF books_loo.unitprice_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.unitprice_tax_excluded | $Price %]</td>
589
                            <td class="number [% IF books_loo.ecost_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_excluded | $Price %]</td>
590
                            <td class="number [% IF books_loo.rrp_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_included | $Price %]</td>
591
                            <td class="number [% IF books_loo.unitprice_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.unitprice_tax_included | $Price %]</td>
592
                            <td class="number [% IF books_loo.ecost_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_included | $Price %]</td>
593
                            <td class="number [% IF books_loo.replacementprice.search(zero_regex) %]error[% END %]">[% books_loo.replacementprice | $Price %]</td>
594
                            <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity | html %]</td>
595
                            <td class="number [% IF books_loo.total_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_excluded | $Price %]</td>
596
                            <td class="number [% IF books_loo.total_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_included | $Price %]</td>
597
                            <td class="number">[% books_loo.tax_rate * 100 | html %]</td>
598
                            <td class="number [% IF books_loo.tax_value.search(zero_regex) %]error[% END %]">[% books_loo.tax_value | $Price %]</td>
599
                            <td>[% books_loo.budget_name | html %]</td>
600
                            <td data-order="[% books_loo.estimated_delivery_date | html %]" class="actions">
601
                                [% books_loo.estimated_delivery_date | $KohaDates %]
602
                                [% IF CAN_user_acquisition_order_manage %]
603
                                <a class="edit_delivery_date" href="/cgi-bin/koha/acqui/moddeliverydate.pl?ordernumber=[% books_loo.ordernumber | html %]" title="Edit delivery date" data-ordernumber="[% books_loo.ordernumber | html %]" id="delivery_date_[% books_loo.ordernumber | html %]" data-delivery_date="[% books_loo.estimated_delivery_date | $KohaDates %]">
604
                                    <i class="fa fa-pencil"></i> Edit
605
                                </a>
606
                            </td>
607
                            [% IF Koha.Preference('EDIFACT') && ediaccount %]
608
                            <td>[% books_loo.suppliers_report | html %]</td>
645
                            [% END %]
609
                            [% END %]
646
                        [% END %]
610
                        [% END %]
647
                    </tr>
611
                            [% IF ( active ) %]
648
                [% END %]
612
                                [% UNLESS ( closedate ) %]
649
                </tbody>
613
                                <td>
650
            </table>
614
                                    <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Modify</a>
615
                                    [% UNLESS (books_loo.order_received) %]
616
                                        <br />
617
                                        <a href="#" class="transfer_order" data-ordernumber="[% books_loo.ordernumber | html %]">Transfer</a>
618
                                    [% END %]
619
                                </td>
620
                                <td>
621
                                [% IF ( books_loo.orderstatus != "complete") %]
622
                                    [% IF ( books_loo.left_holds_on_order ) %]
623
                                        <span class="button" title="Can't cancel order, ([% books_loo.holds_on_order | html %]) holds are linked with this order. Cancel holds first">Can't cancel order</span><br>
624
                                    [% ELSE %]
625
                                        <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber | uri %]&biblionumber=[% books_loo.biblionumber | uri %]&basketno=[% basketno | uri %]&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno | uri %]" class="button">Cancel order</a><br>
626
                                    [% END %]
627
                                    [% IF ( books_loo.can_del_bib ) %]
628
                                        <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber | uri %]&biblionumber=[% books_loo.biblionumber | uri %]&basketno=[% basketno | uri %]&del_biblio=1&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno | uri %]" class="button">Cancel order and delete catalog record</a><br>
629
                                    [% ELSE %]
630
                                        <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
631
                                    [% END %]
632
                                    [% IF ( books_loo.left_item ) %]
633
                                        <strong title="Can't delete catalog record, because of [% books_loo.items | html %] existing hold(s)" >[% books_loo.items | html %] item(s) left</strong><br>
634
                                    [% END %]
635
                                    [% IF ( books_loo.left_biblio ) %]
636
                                        <strong title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios | html %] order(s) left</strong><br>
637
                                    [% END %]
638
                                    [% IF ( books_loo.left_subscription ) %]
639
                                        <strong title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions | html %] subscription(s) left</strong><br>
640
                                    [% END %]
641
                                    [% IF ( books_loo.left_holds ) %]
642
                                        <strong title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds | html %] hold(s) left</strong>
643
                                    [% END %]
644
                                [% END %]
645
                                </td>
646
                                [% END %]
647
                            [% END %]
648
                        </tr>
649
                    [% END %]
650
                    </tbody>
651
                </table>
652
            </div><!-- /.page-section -->
651
        [% END %]
653
        [% END %]
652
        [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
654
        [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
653
        [% END %]
655
        [% END %]
654
        </div> <!-- /#acqui_basket_content -->
656
        </div> <!-- /#acqui_basket_content -->
655
        [% IF (cancelledorders_loop) %]
657
        [% IF (cancelledorders_loop) %]
656
          <div id="cancelledorders">
657
            <h2>Cancelled orders</h2>
658
            <h2>Cancelled orders</h2>
659
            <div id="cancelledorders" class="page-section">
658
            <table id="cancelledorderst">
660
            <table id="cancelledorderst">
659
              <thead>
661
              <thead>
660
                <tr>
662
                <tr>
661
- 

Return to bug 31837