2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5 [% t("Cancel order") | html %] ›
6 [% t("Acquisition") | html %] ›
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="acq_cancelorder" class="acq">
13 [% INCLUDE 'header.inc' %]
15 [% WRAPPER 'sub-header.inc' %]
16 [% WRAPPER breadcrumbs %]
17 [% WRAPPER breadcrumb_item %]
18 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
20 [% WRAPPER breadcrumb_item %]
21 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% basket.bookseller.id | uri %]">[% basket.bookseller.name | html %]</a>
23 [% WRAPPER breadcrumb_item %]
24 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">Basket [% basket.basketname | html %] ([% basket.basketno | html %]) for [% basket.bookseller.name | html %]</a>
26 [% WRAPPER breadcrumb_item bc_active= 1 %]
27 <span>Cancel order</span>
29 [% END #/ WRAPPER breadcrumbs %]
30 [% END #/ WRAPPER sub-header.inc %]
32 <div class="main container-fluid">
34 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
36 [% UNLESS ( confirmcancel ) %]
37 <form method="post" action="">
38 <div class="dialog alert">
39 <h1>Are you sure you want to cancel this order ([% ordernumber | html %])</h1>
42 <span>Bibliographic record will be deleted too.</span>
44 <span>Bibliographic record will not be deleted.</span>
48 [% PROCESS 'av-build-dropbox.inc' name="reason", category="ORDER_CANCELLATION_REASON" default="0" %]
50 <input type="hidden" name="action" value="confirmcancel" />
51 <input type="hidden" value="[% ordernumber | html %]" name="ordernumber" />
52 <input type="hidden" value="[% biblionumber | html %]" name="biblionumber" />
53 <input type="hidden" value="[% basket.basketno | html %]" name="basketno" />
54 <input type="hidden" value="[% referrer | html %]" name="referrer" />
56 <input type="hidden" value="1" name="del_biblio" />
58 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, cancel (Y)</button>
59 <button class="deny" accesskey="n" onclick="window.location='[% referrer | html %]';return false;"><i class="fa fa-fw fa-times"></i> No, don't cancel (N)</button>
63 [% IF ( success_cancelorder ) %]
64 <div class="dialog message">
65 The order has been successfully cancelled
67 <div class="dialog alert">
68 An error has occurred.
69 [% IF error_order_already_cancelled %]
70 <p>The order has been cancelled already.</p>
71 [% ELSIF error_order_not_found %]
72 <p>The order could not be found.</p>
74 [% IF ( error_delitem ) %]
75 <p>The order has been cancelled, although one or more items could not have been deleted.</p>
77 [% IF ( error_delbiblio ) %]
78 <p>The order has been cancelled, although the record has not been deleted.</p>
81 <p><a href="[% referrer | url %]">OK</a></p>
88 [% INCLUDE 'intranet-bottom.inc' %]