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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-22 / +23 lines)
Lines 558-584 Link Here
558
                                [% END %]
558
                                [% END %]
559
                            </td>
559
                            </td>
560
                            <td>
560
                            <td>
561
                            [% IF ( books_loo.left_holds_on_order ) %]
561
                            [% IF ( books_loo.orderstatus != "complete") %]
562
                            <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>
562
                                [% IF ( books_loo.left_holds_on_order ) %]
563
                            [% ELSE %]
563
                                    <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>
564
                            <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>
564
                                [% ELSE %]
565
                            [% END %]
565
                                    <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>
566
                            [% IF ( books_loo.can_del_bib ) %]
566
                                [% END %]
567
                            <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>
567
                                [% IF ( books_loo.can_del_bib ) %]
568
                            [% ELSE %]
568
                                    <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>
569
                            <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
569
                                [% ELSE %]
570
                            [% END %]
570
                                    <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
571
                            [% IF ( books_loo.left_item ) %]
571
                                [% END %]
572
                            <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>
572
                                [% IF ( books_loo.left_item ) %]
573
                            [% END %]
573
                                    <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>
574
                            [% IF ( books_loo.left_biblio ) %]
574
                                [% END %]
575
                            <strong title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios | html %] order(s) left</strong><br>
575
                                [% IF ( books_loo.left_biblio ) %]
576
                            [% END %]
576
                                    <strong title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios | html %] order(s) left</strong><br>
577
                            [% IF ( books_loo.left_subscription ) %]
577
                                [% END %]
578
                            <strong title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions | html %] subscription(s) left</strong><br>
578
                                [% IF ( books_loo.left_subscription ) %]
579
                            [% END %]
579
                                    <strong title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions | html %] subscription(s) left</strong><br>
580
                            [% IF ( books_loo.left_holds ) %]
580
                                [% END %]
581
                            <strong title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds | html %] hold(s) left</strong>
581
                                [% IF ( books_loo.left_holds ) %]
582
                                    <strong title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds | html %] hold(s) left</strong>
583
                                [% END %]
582
                            [% END %]
584
                            [% END %]
583
                            </td>
585
                            </td>
584
                            [% END %]
586
                            [% END %]
585
- 

Return to bug 6819