|
Lines 5-19
Link Here
|
| 5 |
[% BLOCK csv_export %] |
5 |
[% BLOCK csv_export %] |
| 6 |
<div class="btn-group"> |
6 |
<div class="btn-group"> |
| 7 |
<a id="exportbutton" class="btn btn-default" href="[% script_name | url %]?op=export&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a> |
7 |
<a id="exportbutton" class="btn btn-default" href="[% script_name | url %]?op=export&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a> |
| 8 |
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a> |
8 |
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a> |
| 9 |
<ul class="dropdown-menu" id="export-csv-menu"> |
9 |
<ul class="dropdown-menu" id="export-csv-menu"> |
| 10 |
<li><a href="#">Default</a></li> |
10 |
<li><a href="#">Default</a></li> |
| 11 |
[% IF csv_profiles.count %] |
11 |
[% IF csv_profiles.count %] |
| 12 |
[% FOR csv IN csv_profiles %] |
12 |
[% FOR csv IN csv_profiles %] |
| 13 |
<li><a href="#" data-value="[% csv.export_format_id | html %]">[% csv.profile | html %]</a></li> |
13 |
<li><a href="#" data-value="[% csv.export_format_id | html %]">[% csv.profile | html %]</a></li> |
| 14 |
[% END %] |
14 |
[% END %] |
| 15 |
[% END %] |
15 |
[% END %] |
| 16 |
</ul> |
16 |
</ul> |
| 17 |
</div> |
17 |
</div> |
| 18 |
[% END %] |
18 |
[% END %] |
| 19 |
[% USE KohaDates %] |
19 |
[% USE KohaDates %] |
|
Lines 36-70
Link Here
|
| 36 |
[% END %] |
36 |
[% END %] |
| 37 |
|
37 |
|
| 38 |
[% WRAPPER 'sub-header.inc' %] |
38 |
[% WRAPPER 'sub-header.inc' %] |
| 39 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
39 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
| 40 |
<ol> |
40 |
<ol> |
| 41 |
<li> |
41 |
<li> |
| 42 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
42 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
| 43 |
</li> |
43 |
</li> |
| 44 |
<li> |
44 |
<li> |
| 45 |
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> |
45 |
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> |
| 46 |
</li> |
46 |
</li> |
| 47 |
<li> |
47 |
<li> |
| 48 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a> |
48 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a> |
| 49 |
</li> |
49 |
</li> |
| 50 |
<li> |
50 |
<li> |
| 51 |
<a href="#" aria-current="page"> |
51 |
<a href="#" aria-current="page"> |
| 52 |
[% UNLESS ( basketno ) %] |
52 |
[% UNLESS ( basketno ) %] |
| 53 |
[% IF ( delete_confirmed ) %] |
53 |
[% IF ( delete_confirmed ) %] |
| 54 |
<span>Deleted</span> |
54 |
<span>Deleted</span> |
| 55 |
[% ELSE %] |
55 |
[% ELSE %] |
| 56 |
<span>New</span> |
56 |
<span>New</span> |
|
|
57 |
[% END %] |
| 57 |
[% END %] |
58 |
[% END %] |
| 58 |
[% END %] |
59 |
<span>Basket [% basketname | html %] |
| 59 |
<span>Basket [% basketname | html %] |
60 |
[% IF ( basketno ) %] |
| 60 |
[% IF ( basketno ) %] |
61 |
([% basketno | html %]) |
| 61 |
([% basketno | html %]) |
62 |
[% END %] |
| 62 |
[% END %] |
63 |
for [% booksellername | html %]</span> |
| 63 |
for [% booksellername | html %]</span> |
64 |
</a> |
| 64 |
</a> |
65 |
</li> |
| 65 |
</li> |
66 |
</ol> |
| 66 |
</ol> |
67 |
</nav> |
| 67 |
</nav> |
|
|
| 68 |
[% END %] |
68 |
[% END %] |
| 69 |
|
69 |
|
| 70 |
<div class="main container-fluid"> |
70 |
<div class="main container-fluid"> |
|
Lines 72-818
Link Here
|
| 72 |
<div class="col-sm-10 col-sm-push-2"> |
72 |
<div class="col-sm-10 col-sm-push-2"> |
| 73 |
<main> |
73 |
<main> |
| 74 |
|
74 |
|
| 75 |
[% IF (cannot_manage_basket) %] |
75 |
[% IF (cannot_manage_basket) %] |
| 76 |
<div class="dialog alert">You are not authorised to manage this basket.</div> |
76 |
<div class="dialog alert">You are not authorised to manage this basket.</div> |
| 77 |
[% ELSE %] |
77 |
[% ELSE %] |
| 78 |
|
78 |
|
| 79 |
[% IF !confirm_close && !edi_confirm %] |
79 |
[% IF !confirm_close && !edi_confirm %] |
| 80 |
[% UNLESS ( selectbasketg ) %] |
80 |
[% UNLESS ( selectbasketg ) %] |
| 81 |
[% UNLESS ( closedate ) %] |
81 |
[% UNLESS ( closedate ) %] |
| 82 |
[% UNLESS ( delete_confirmed ) %] |
82 |
[% UNLESS ( delete_confirmed ) %] |
| 83 |
<div id="toolbar" class="btn-toolbar fh-fixedHeader"> |
83 |
<div id="toolbar" class="btn-toolbar fh-fixedHeader"> |
| 84 |
[% IF active %] |
84 |
[% IF active %] |
| 85 |
<div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div> |
85 |
<div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div> |
| 86 |
[% END %] |
86 |
[% END %] |
| 87 |
<div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&op=add_form" class="btn btn-default" id="basketheadbutton"><i class="fa fa-pencil"></i> Edit basket</a></div> |
87 |
<div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&op=add_form" class="btn btn-default" id="basketheadbutton"><i class="fa fa-pencil"></i> Edit basket</a></div> |
| 88 |
[% IF CAN_user_acquisition_delete_baskets %] |
88 |
[% IF CAN_user_acquisition_delete_baskets %] |
| 89 |
<div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-default" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> Delete basket</a></div> |
89 |
<div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-default" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> Delete basket</a></div> |
| 90 |
[% END %] |
90 |
[% END %] |
| 91 |
[% IF ( unclosable ) %] |
91 |
[% IF ( unclosable ) %] |
| 92 |
[% ELSIF ( uncertainprices ) %] |
92 |
[% ELSIF ( uncertainprices ) %] |
| 93 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid | uri %]&owner=1" class="btn btn-default" id="uncertpricesbutton"><i class="fa fa-usd"></i> Uncertain prices</a></div> |
93 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid | uri %]&owner=1" class="btn btn-default" id="uncertpricesbutton"><i class="fa fa-usd"></i> Uncertain prices</a></div> |
| 94 |
<div title="Can not close baskets that have items with uncertain prices in them." class="btn-group"> |
94 |
<div title="Can not close baskets that have items with uncertain prices in them." class="btn-group"> |
| 95 |
<a href="" class="btn btn-default disabled" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a> |
95 |
<a href="" class="btn btn-default disabled" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a> |
| 96 |
</div> |
96 |
</div> |
| 97 |
[% ELSE %] |
97 |
[% ELSE %] |
| 98 |
<div class="btn-group"> |
98 |
<div class="btn-group"> |
| 99 |
<a href="/cgi-bin/koha/acqui/basket.pl?op=close&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a> |
99 |
<a href="/cgi-bin/koha/acqui/basket.pl?op=close&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a> |
| 100 |
</div> |
100 |
</div> |
| 101 |
[% END %] |
101 |
[% END %] |
| 102 |
|
102 |
|
| 103 |
[% PROCESS csv_export %] |
103 |
[% PROCESS csv_export %] |
| 104 |
|
104 |
|
| 105 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
105 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 106 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</a></div> |
106 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</a></div> |
| 107 |
[% END %] |
107 |
[% END %] |
|
|
108 |
|
| 109 |
[% IF ( active && books_loop ) %] |
| 110 |
<div class="btn-group"> |
| 111 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
| 112 |
<input type="hidden" name="op" value="email" /> |
| 113 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 114 |
<button type="submit" class="btn btn-default" id="emailvendorbutton"><i class="fa fa-envelope"></i> E-mail order</button> |
| 115 |
</form> |
| 116 |
</div> |
| 117 |
[% END %] |
| 118 |
</div> |
| 119 |
[% END %] |
| 120 |
|
| 121 |
<!-- Modal for confirm deletion box--> |
| 122 |
<div class="modal" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true"> |
| 123 |
<div class="modal-dialog"> |
| 124 |
<div class="modal-content"> |
| 125 |
<div class="modal-header"> |
| 126 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 127 |
<h3>Confirm deletion</h3> |
| 128 |
</div> |
| 129 |
[% UNLESS book_foot_loop %] |
| 130 |
<div class="modal-body"> |
| 131 |
<p>Are you sure you want to delete this basket?</p> |
| 132 |
</div> |
| 133 |
<div class="modal-footer"> |
| 134 |
<button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button> |
| 135 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 136 |
<input type="hidden" name="op" value="delete_confirm" /> |
| 137 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 138 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 139 |
<input type="hidden" name="delbiblio" value="0" /> |
| 140 |
<button type="submit" class="btn btn-default btn-default">Delete basket</button> |
| 141 |
</form> |
| 142 |
</div> |
| 143 |
[% ELSE %] |
| 144 |
<div class="modal-body"> |
| 145 |
<p>Are you sure you want to delete this basket?</p> |
| 146 |
<p>Warning:</p> |
| 147 |
<p>All orders of this basket will be cancelled and used funds will be refunded.</p> |
| 148 |
<p>If items have been created when ordering or receiving, they will be deleted.</p> |
| 149 |
<p>You can choose to delete bibliographic records if possible (bibliographic records that have other items or that are used in a subscription or another order will not be deleted).</p> |
| 150 |
</div> |
| 151 |
<div class="modal-footer"> |
| 152 |
<button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button> |
| 153 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 154 |
<input type="hidden" name="op" value="delete_confirm" /> |
| 155 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 156 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 157 |
<input type="hidden" name="delbiblio" value="0" /> |
| 158 |
<button type="submit" class="btn btn-default btn-default">Delete basket and orders</button> |
| 159 |
</form> |
| 108 |
|
160 |
|
| 109 |
[% IF ( active && books_loop ) %] |
161 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 110 |
<div class="btn-group"> |
162 |
<input type="hidden" name="op" value="delete_confirm" /> |
| 111 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
163 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 112 |
<input type="hidden" name="op" value="email" /> |
164 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 113 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
165 |
<input type="hidden" name="delbiblio" value="1" /> |
| 114 |
<button type="submit" class="btn btn-default" id="emailvendorbutton"><i class="fa fa-envelope"></i> E-mail order</button> |
166 |
<button type="submit" class="btn btn-default btn-default">Delete basket, orders, and records</button> |
| 115 |
</form> |
167 |
</form> |
| 116 |
</div> |
168 |
</div> |
|
|
169 |
[% END %] |
| 170 |
</div> |
| 171 |
</div> |
| 172 |
</div> |
| 173 |
<!-- End of Modal--> |
| 174 |
[% ELSE %] |
| 175 |
<div id="toolbar" class="btn-toolbar"> |
| 176 |
[% IF grouped %] |
| 177 |
<div title="Can not reopen baskets that are part of a basket group." class="btn-group"> |
| 178 |
<div class="btn-group"><a href="#" class="btn btn-default disabled" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen basket</a></div> |
| 179 |
</div> |
| 180 |
[% ELSE %] |
| 181 |
<div class="btn-group"><a href="#" class="btn btn-default" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen basket</a></div> |
| 182 |
|
| 183 |
[% PROCESS csv_export %] |
| 184 |
[% END %] |
| 185 |
</div> |
| 186 |
[% END %] |
| 117 |
[% END %] |
187 |
[% END %] |
| 118 |
</div> |
|
|
| 119 |
[% END %] |
| 120 |
|
188 |
|
| 121 |
<!-- Modal for confirm deletion box--> |
189 |
[% IF ( NO_BOOKSELLER ) %] |
| 122 |
<div class="modal" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true"> |
190 |
<h1>Vendor not found</h1> |
| 123 |
<div class="modal-dialog"> |
191 |
[% ELSE %] |
| 124 |
<div class="modal-content"> |
192 |
[% IF ( delete_confirmed ) %] |
| 125 |
<div class="modal-header"> |
193 |
<div class="dialog message"> |
| 126 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
194 |
<h3>Basket deleted</h3> |
| 127 |
<h3>Confirm deletion</h3> |
195 |
</div> |
| 128 |
</div> |
196 |
[% IF (cannotdelbiblios) %] |
| 129 |
[% UNLESS book_foot_loop %] |
197 |
<div class="dialog alert"> |
| 130 |
<div class="modal-body"> |
198 |
<p><strong>Warning:</strong></p> |
| 131 |
<p>Are you sure you want to delete this basket?</p> |
199 |
<p><strong>The following records could not be deleted:</strong></p> |
| 132 |
</div> |
200 |
<ul> |
| 133 |
<div class="modal-footer"> |
201 |
[% FOREACH cannotdelbiblio IN cannotdelbiblios %] |
| 134 |
<button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button> |
202 |
<li> |
| 135 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
203 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber | uri %]">[% cannotdelbiblio.title | html %]</a> by [% cannotdelbiblio.author | html %]: |
| 136 |
<input type="hidden" name="op" value="delete_confirm" /> |
204 |
<ul> |
| 137 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
205 |
[% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount | html %] item(s) attached.</li>[% END %] |
| 138 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
206 |
[% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions | html %] subscription(s) attached.</li>[% END %] |
| 139 |
<input type="hidden" name="delbiblio" value="0" /> |
207 |
[% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio | html %] order(s) attached.</li>[% END %] |
| 140 |
<button type="submit" class="btn btn-default btn-default">Delete basket</button> |
208 |
[% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %] |
| 141 |
</form> |
209 |
</ul> |
| 142 |
</div> |
210 |
</li> |
| 143 |
[% ELSE %] |
211 |
[% END %] |
| 144 |
<div class="modal-body"> |
212 |
</ul> |
| 145 |
<p>Are you sure you want to delete this basket?</p> |
213 |
</div> |
| 146 |
<p>Warning:</p> |
214 |
<a href="booksellers.pl">Go back to vendor page</a> |
| 147 |
<p>All orders of this basket will be cancelled and used funds will be refunded.</p> |
215 |
[% ELSE %] |
| 148 |
<p>If items have been created when ordering or receiving, they will be deleted.</p> |
216 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-sm">Show baskets for vendor [% booksellername | html %]</a> <a href="/cgi-bin/koha/acqui/booksellers.pl" class="btn btn-default btn-sm">Show all active baskets</a> |
| 149 |
<p>You can choose to delete bibliographic records if possible (bibliographic records that have other items or that are used in a subscription or another order will not be deleted).</p> |
217 |
[% END %] |
| 150 |
</div> |
218 |
[% ELSE %] |
| 151 |
<div class="modal-footer"> |
|
|
| 152 |
<button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button> |
| 153 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 154 |
<input type="hidden" name="op" value="delete_confirm" /> |
| 155 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 156 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 157 |
<input type="hidden" name="delbiblio" value="0" /> |
| 158 |
<button type="submit" class="btn btn-default btn-default">Delete basket and orders</button> |
| 159 |
</form> |
| 160 |
|
219 |
|
| 161 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
220 |
[% FOR m IN messages %] |
| 162 |
<input type="hidden" name="op" value="delete_confirm" /> |
221 |
<div class="dialog [% m.type | html %]"> |
| 163 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
222 |
[% SWITCH m.code %] |
| 164 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
223 |
[% CASE 'no_email' %] |
| 165 |
<input type="hidden" name="delbiblio" value="1" /> |
224 |
<span>This vendor has no contact selected for sending orders to or is missing an e-mail address.</span> |
| 166 |
<button type="submit" class="btn btn-default btn-default">Delete basket, orders, and records</button> |
225 |
[% CASE 'no_basketno' %] |
| 167 |
</form> |
226 |
<span>No basket given.</span> |
|
|
227 |
[% CASE 'no_letter' %] |
| 228 |
<span>There is no notice template with code ACQORDER defined.</span> |
| 229 |
[% CASE 'email_sent' %] |
| 230 |
<span>Order e-mail was sent to the vendor.</span> |
| 231 |
[% CASE %] |
| 232 |
<span>ERROR! - [% m.code | html %]</span> |
| 233 |
[% END %] |
| 234 |
</div> |
| 235 |
[% END %] |
| 168 |
|
236 |
|
| 169 |
</div> |
237 |
<h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname | html %] ([% basketno | html %]) for <a href="supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1> |
| 170 |
[% END %] |
|
|
| 171 |
</div> |
| 172 |
</div> |
| 173 |
</div> |
| 174 |
<!-- End of Modal--> |
| 175 |
[% ELSE %] |
| 176 |
<div id="toolbar" class="btn-toolbar"> |
| 177 |
[% IF grouped %] |
| 178 |
<div title="Can not reopen baskets that are part of a basket group." class="btn-group"> |
| 179 |
<div class="btn-group"><a href="#" class="btn btn-default disabled" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen basket</a></div> |
| 180 |
</div> |
| 181 |
[% ELSE %] |
| 182 |
<div class="btn-group"><a href="#" class="btn btn-default" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen basket</a></div> |
| 183 |
|
238 |
|
| 184 |
[% PROCESS csv_export %] |
239 |
[% IF ( basketno ) %] |
| 185 |
[% END %] |
240 |
<div id="acqui_basket_summary" class="row"> |
| 186 |
</div> |
241 |
<div class="rows"> |
| 187 |
[% END %] |
242 |
<div class="col-sm-6"> |
| 188 |
[% END %] |
243 |
<ol> |
|
|
244 |
[% IF ( basketnote ) %] |
| 245 |
<li><span class="label">Internal note:</span> [% basketnote | html %]</li> |
| 246 |
[% END %] |
| 247 |
[% IF ( basketbooksellernote ) %] |
| 248 |
<li><span class="label">Vendor note:</span> [% basketbooksellernote | html %]</li> |
| 249 |
[% END %] |
| 250 |
[% IF ( basketcontractno ) %] |
| 251 |
<li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno | uri %]&booksellerid=[% booksellerid | uri %]">[% basketcontractname | html %]</a></li> |
| 252 |
[% END %] |
| 253 |
[% IF deliveryplace %] |
| 254 |
<li><span class="label">Delivery place:</span> [% Branches.GetName( deliveryplace ) | html %]</li> |
| 255 |
[% END %] |
| 256 |
[% IF billingplace %] |
| 257 |
<li><span class="label">Billing place:</span> [% Branches.GetName( billingplace ) | html %]</li> |
| 258 |
[% END %] |
| 259 |
[% IF ( authorisedbyname ) %] |
| 260 |
<li><span class="label">[% tp('basket created by', 'Created by:') | html %]</span> [% authorisedbyname | html %]</li> |
| 261 |
[% END %] |
| 262 |
<li id="managedby"> |
| 263 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
| 264 |
<span class="label">Managed by:</span> |
| 265 |
<div style="display:inline-block"> |
| 266 |
<ul id="users_names" style="padding-left:0"> |
| 267 |
[% FOREACH user IN users %] |
| 268 |
<li id="user_[% user.borrowernumber | html %]"> |
| 269 |
[% user.firstname | html %] [% user.surname | html %] |
| 270 |
<a href="#" data-borrowernumber="[% user.borrowernumber | html %]" class="del_user"><i class="fa fa-trash"></i> Delete user</a> |
| 271 |
</li> |
| 272 |
[% END %] |
| 273 |
<li> |
| 274 |
<a href="#" id="add_user"><i class="fa fa-plus"></i> Add user</a> |
| 275 |
</li> |
| 276 |
<li id="add_user_submit" style="display:none;"> |
| 277 |
<button type="submit" class="btn btn-default btn-xs">Save changes</button> |
| 278 |
</li> |
| 279 |
</ul> |
| 280 |
</div> |
| 281 |
<input type="hidden" id="basketno" name="basketno" value="[% basketno | html %]" /> |
| 282 |
<input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" /> |
| 283 |
<input type="hidden" id="op" name="op" value="mod_users" /> |
| 284 |
</form> |
| 189 |
|
285 |
|
| 190 |
[% IF ( NO_BOOKSELLER ) %] |
286 |
</li> |
| 191 |
<h1>Vendor not found</h1> |
287 |
<li id="branch"> |
| 192 |
[% ELSE %] |
288 |
<span class="label">Managing library:</span> |
| 193 |
[% IF ( delete_confirmed ) %] |
289 |
[% IF basketbranchcode %] |
| 194 |
<div class="dialog message"> |
290 |
[% Branches.GetName( basketbranchcode ) | html %] |
| 195 |
<h3>Basket deleted</h3> |
291 |
<a href="#" id="set_managing_library"><i class="fa fa-pencil"></i> Change library</a> |
| 196 |
</div> |
292 |
[% ELSE %] |
| 197 |
[% IF (cannotdelbiblios) %] |
293 |
No library |
| 198 |
<div class="dialog alert"> |
294 |
<a href="#" id="set_managing_library"><i class="fa fa-pencil"></i> Set library</a> |
| 199 |
<p><strong>Warning:</strong></p> |
295 |
[% END %] |
| 200 |
<p><strong>The following records could not be deleted:</strong></p> |
296 |
</li> |
| 201 |
<ul> |
297 |
[% IF branches_loop.size %] |
| 202 |
[% FOREACH cannotdelbiblio IN cannotdelbiblios %] |
298 |
<li id="managing_library_entry" style="display:none;"> |
| 203 |
<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber | uri %]">[% cannotdelbiblio.title | html %]</a> by [% cannotdelbiblio.author | html %]: |
299 |
<span class="label"> </span> |
| 204 |
<ul> |
300 |
<div style="float:left"> |
| 205 |
[% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount | html %] item(s) attached.</li>[% END %] |
301 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
| 206 |
[% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions | html %] subscription(s) attached.</li>[% END %] |
302 |
<select id="select_managing_library" name="branch"> |
| 207 |
[% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio | html %] order(s) attached.</li>[% END %] |
303 |
<option value="">(no library)</option> |
| 208 |
[% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %] |
304 |
[% FOREACH branch IN branches_loop %] |
| 209 |
</ul> |
305 |
[% IF ( basketbranchcode == branch.branchcode ) %] |
| 210 |
</li> |
306 |
<option selected="selected" value="[% branch.branchcode | html %]"> [% branch.branchname | html %]</option> |
| 211 |
[% END %] |
307 |
[% ELSE %] |
| 212 |
</ul> |
308 |
<option value="[% branch.branchcode | html %]"> [% branch.branchname | html %]</option> |
| 213 |
</div> |
309 |
[% END %] |
| 214 |
<a href="booksellers.pl">Go back to vendor page</a> |
310 |
[% END %] |
| 215 |
[% ELSE %] |
311 |
</select> |
| 216 |
<a href="/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-sm">Show baskets for vendor [% booksellername | html %]</a> <a href="/cgi-bin/koha/acqui/booksellers.pl" class="btn btn-default btn-sm">Show all active baskets</a> |
312 |
<a id="library_entry_cancel" href="#" class="cancel">Cancel</a> |
| 217 |
[% END %] |
313 |
<input type="hidden" id="basketno" name="basketno" value="[% basketno | html %]" /> |
| 218 |
[% ELSE %] |
314 |
<input type="hidden" id="op" name="op" value="mod_branch" /> |
|
|
315 |
</form> |
| 316 |
</div> |
| 317 |
</li> |
| 318 |
[% END %] |
| 219 |
|
319 |
|
| 220 |
[% FOR m IN messages %] |
320 |
[% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %] |
| 221 |
<div class="dialog [% m.type | html %]"> |
|
|
| 222 |
[% SWITCH m.code %] |
| 223 |
[% CASE 'no_email' %] |
| 224 |
<span>This vendor has no contact selected for sending orders to or is missing an e-mail address.</span> |
| 225 |
[% CASE 'no_basketno' %] |
| 226 |
<span>No basket given.</span> |
| 227 |
[% CASE 'no_letter' %] |
| 228 |
<span>There is no notice template with code ACQORDER defined.</span> |
| 229 |
[% CASE 'email_sent' %] |
| 230 |
<span>Order e-mail was sent to the vendor.</span> |
| 231 |
[% CASE %] |
| 232 |
<span>ERROR! - [% m.code | html %]</span> |
| 233 |
[% END %] |
| 234 |
</div> |
| 235 |
[% END %] |
| 236 |
<h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname | html %] ([% basketno | html %]) for <a href="supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1> |
| 237 |
[% IF ( basketno ) %] |
| 238 |
<div id="acqui_basket_summary" class="row"> |
| 239 |
<div class="rows"> |
| 240 |
<div class="col-sm-6"> |
| 241 |
<ol> |
| 242 |
[% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote | html %]</li>[% END %] |
| 243 |
[% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote | html %]</li>[% END %] |
| 244 |
[% IF ( basketcontractno ) %] |
| 245 |
<li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno | uri %]&booksellerid=[% booksellerid | uri %]">[% basketcontractname | html %]</a></li> |
| 246 |
[% END %] |
| 247 |
[% IF deliveryplace %]<li><span class="label">Delivery place:</span> [% Branches.GetName( deliveryplace ) | html %]</li>[% END %] |
| 248 |
[% IF billingplace %]<li><span class="label">Billing place:</span> [% Branches.GetName( billingplace ) | html %]</li>[% END %] |
| 249 |
[% IF ( authorisedbyname ) %]<li><span class="label">[% tp('basket created by', 'Created by:') | html %]</span> [% authorisedbyname | html %]</li>[% END %] |
| 250 |
<li id="managedby"> |
| 251 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
| 252 |
<span class="label">Managed by:</span> |
| 253 |
<div style="display:inline-block"> |
| 254 |
<ul id="users_names" style="padding-left:0"> |
| 255 |
[% FOREACH user IN users %] |
| 256 |
<li id="user_[% user.borrowernumber | html %]"> |
| 257 |
[% user.firstname | html %] [% user.surname | html %] |
| 258 |
<a href="#" data-borrowernumber="[% user.borrowernumber | html %]" class="del_user"><i class="fa fa-trash"></i> Delete user</a> |
| 259 |
</li> |
| 260 |
[% END %] |
| 261 |
<li> |
| 262 |
<a href="#" id="add_user"><i class="fa fa-plus"></i> Add user</a> |
| 263 |
</li> |
| 264 |
<li id="add_user_submit" style="display:none;"> |
| 265 |
<button type="submit" class="btn btn-default btn-xs">Save changes</button> |
| 266 |
</li> |
| 267 |
</ul> |
| 268 |
</div> |
| 269 |
<input type="hidden" id="basketno" name="basketno" value="[% basketno | html %]" /> |
| 270 |
<input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" /> |
| 271 |
<input type="hidden" id="op" name="op" value="mod_users" /> |
| 272 |
</form> |
| 273 |
|
321 |
|
| 274 |
</li> |
322 |
</ol> |
| 275 |
<li id="branch"> |
323 |
</div> <!-- /.col-sm-6 --> |
| 276 |
<span class="label">Managing library:</span> |
|
|
| 277 |
[% IF basketbranchcode %] |
| 278 |
[% Branches.GetName( basketbranchcode ) | html %] |
| 279 |
<a href="#" id="set_managing_library"><i class="fa fa-pencil"></i> Change library</a> |
| 280 |
[% ELSE %] |
| 281 |
No library |
| 282 |
<a href="#" id="set_managing_library"><i class="fa fa-pencil"></i> Set library</a> |
| 283 |
[% END %] |
| 284 |
</li> |
| 285 |
[% IF branches_loop.size %] |
| 286 |
<li id="managing_library_entry" style="display:none;"> |
| 287 |
<span class="label"> </span> |
| 288 |
<div style="float:left"> |
| 289 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="post"> |
| 290 |
<select id="select_managing_library" name="branch"> |
| 291 |
<option value="">(no library)</option> |
| 292 |
[% FOREACH branch IN branches_loop %] |
| 293 |
[% IF ( basketbranchcode == branch.branchcode ) %] |
| 294 |
<option selected="selected" value="[% branch.branchcode | html %]"> [% branch.branchname | html %]</option> |
| 295 |
[% ELSE %] |
| 296 |
<option value="[% branch.branchcode | html %]"> [% branch.branchname | html %]</option> |
| 297 |
[% END %] |
| 298 |
[% END %] |
| 299 |
</select> |
| 300 |
<a id="library_entry_cancel" href="#" class="cancel">Cancel</a> |
| 301 |
<input type="hidden" id="basketno" name="basketno" value="[% basketno | html %]" /> |
| 302 |
<input type="hidden" id="op" name="op" value="mod_branch" /> |
| 303 |
</form> |
| 304 |
</div> |
| 305 |
</li> |
| 306 |
[% END %] |
| 307 |
|
324 |
|
| 308 |
[% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %] |
325 |
<div class="col-sm-6"> |
|
|
326 |
<ol> |
| 327 |
[% IF ( creationdate ) %] |
| 328 |
<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li> |
| 329 |
[% END %] |
| 330 |
[% IF ( closedate ) %] |
| 331 |
<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li> |
| 332 |
[% END %] |
| 333 |
[% IF ( ediaccount ) %] |
| 334 |
[%- BLOCK edi_status -%] |
| 335 |
[%- SWITCH edi_order.status -%] |
| 336 |
[%- CASE 'Pending' -%]<span>Pending</span> |
| 337 |
[%- CASE 'Sent' -%]<span>Sent</span> |
| 338 |
[%- CASE 'Processed' -%]<span>Processed</span> |
| 339 |
[%- END -%] |
| 340 |
[%- END -%] |
| 341 |
[% IF ( edi_order ) %] |
| 342 |
<li><span class="label">EDI status:</span> [%- PROCESS edi_status edi_order=edi_order -%] ([% edi_order.transfer_date | $KohaDates %])</li> |
| 343 |
[% ELSE %] |
| 344 |
<li><span class="label">EDI status:</span> Not ordered</li> |
| 345 |
[% END %] |
| 346 |
[% END %] |
| 347 |
[% IF ( estimateddeliverydate ) %] |
| 348 |
<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li> |
| 349 |
[% END %] |
| 350 |
<li><span class="label">Orders are standing:</span> [% IF is_standing %]Yes[% ELSE %]No[% END %]</li> |
| 309 |
|
351 |
|
| 310 |
</ol> |
352 |
[% IF basket.create_items %] |
| 311 |
</div> <!-- /.col-sm-6 --> |
353 |
<li> |
|
|
354 |
<span class="label">Create items when:</span> |
| 355 |
[% SWITCH basket.create_items %] |
| 356 |
[% CASE 'receiving' %]<span>Receiving items</span> |
| 357 |
[% CASE 'cataloguing' %]<span>Cataloguing items</span> |
| 358 |
[% CASE %]<span>Placing orders</span> |
| 359 |
[% END %] |
| 360 |
</li> |
| 361 |
[% END %] |
| 362 |
</ol> |
| 312 |
|
363 |
|
| 313 |
<div class="col-sm-6"> |
364 |
[% IF ( closedate ) %] |
| 314 |
<ol> |
365 |
<ol> |
| 315 |
[% IF ( creationdate ) %] |
366 |
<li> |
| 316 |
<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li> |
367 |
<span class="label">Basket group:</span> |
| 317 |
[% END %] |
368 |
[% IF basketgroup.id and not basketgroup.name %] |
| 318 |
[% IF ( closedate ) %] |
369 |
[% SET basketgroup.name = "Basket group no. " _ basketgroup.id %] |
| 319 |
<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li> |
370 |
[% END %] |
| 320 |
[% END %] |
|
|
| 321 |
[% IF ( ediaccount ) %] |
| 322 |
[%- BLOCK edi_status -%] |
| 323 |
[%- SWITCH edi_order.status -%] |
| 324 |
[%- CASE 'Pending' -%]<span>Pending</span> |
| 325 |
[%- CASE 'Sent' -%]<span>Sent</span> |
| 326 |
[%- CASE 'Processed' -%]<span>Processed</span> |
| 327 |
[%- END -%] |
| 328 |
[%- END -%] |
| 329 |
[% IF ( edi_order ) %] |
| 330 |
<li><span class="label">EDI status:</span> [%- PROCESS edi_status edi_order=edi_order -%] ([% edi_order.transfer_date | $KohaDates %])</li> |
| 331 |
[% ELSE %] |
| 332 |
<li><span class="label">EDI status:</span> Not ordered</li> |
| 333 |
[% END %] |
| 334 |
[% END %] |
| 335 |
[% IF ( estimateddeliverydate ) %] |
| 336 |
<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li> |
| 337 |
[% END %] |
| 338 |
<li><span class="label">Orders are standing:</span> [% IF is_standing %]Yes[% ELSE %]No[% END %]</li> |
| 339 |
|
371 |
|
| 340 |
[% IF basket.create_items %] |
372 |
[% IF basketgroup.closed %] |
| 341 |
<li> |
373 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
| 342 |
<span class="label">Create items when:</span> |
374 |
<a href="basketgroup.pl?op=add&booksellerid=[% booksellerid | uri %]&basketgroupid=[% basketgroup.id | uri %]" title="basketgroup">[% basketgroup.name | html %] <span>(closed)</span></a> |
| 343 |
[% SWITCH basket.create_items %] |
375 |
[% ELSE %] |
| 344 |
[% CASE 'receiving' %]<span>Receiving items</span> |
376 |
[% basketgroup.name | html %] <span>(closed)</span> |
| 345 |
[% CASE 'cataloguing' %]<span>Cataloguing items</span> |
377 |
[% END %] |
| 346 |
[% CASE %]<span>Placing orders</span> |
378 |
[% ELSIF ( ! CAN_user_acquisition_group_manage ) %] |
|
|
379 |
[%- IF basketgroup.id -%] |
| 380 |
[% basketgroup.name | html %] |
| 381 |
[%- ELSE -%] |
| 382 |
<span>No group</span> |
| 383 |
[%- END -%] |
| 384 |
[% ELSE %] |
| 385 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
| 386 |
[% IF ( basketgroup.id ) %] |
| 387 |
[% basketgroup.name | html %] |
| 388 |
<a href="#" id="set_basket_group"><i class="fa fa-pencil"></i> Change basket group</a> |
| 389 |
[% ELSE %] |
| 390 |
No group |
| 391 |
<a href="#" id="set_basket_group"><i class="fa fa-pencil"></i> Set basket group</a> |
| 392 |
[% END %] |
| 393 |
[% END %] |
| 394 |
[% END %] |
| 395 |
</li> |
| 396 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
| 397 |
<li id="basket_grouping" style="display:none;"> |
| 398 |
<span class="label"> </span> |
| 399 |
<div style="float:left"> |
| 400 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post"> |
| 401 |
<select id="basketgroupid" name="basketgroupid"> |
| 402 |
<option value="">No group</option> |
| 403 |
[% FOREACH bg IN basketgroups %] |
| 404 |
[% IF ( bg.default ) %] |
| 405 |
<option value="[% bg.id | html %]" selected="selected">[% bg.name | html %]</option> |
| 406 |
[% ELSE %] |
| 407 |
[% UNLESS bg.closed %] |
| 408 |
<option value="[% bg.id | html %]">[% bg.name | html %]</option> |
| 409 |
[% ELSE %] |
| 410 |
<option value="[% bg.id | html %]" disabled="disabled">[% bg.name | html %] <span>(closed)</span></option> |
| 411 |
[% END %] |
| 412 |
[% END %] |
| 413 |
[% END %] |
| 414 |
<option value="new">Add new group</option> |
| 415 |
</select> |
| 416 |
<a href="#" id="basket_group_cancel" class="cancel">Cancel</a> |
| 417 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
| 418 |
<input type="hidden" value="mod_basket" name="op" /> |
| 419 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 420 |
</form> |
| 421 |
</div> |
| 422 |
</li> |
| 423 |
[% END # /IF ( CAN_user_acquisition_group_manage ) %] |
| 424 |
[% IF basketgroup.deliveryplace %] |
| 425 |
<li> |
| 426 |
<span class="label">Basket group delivery placename:</span> [% Branches.GetName( basketgroup.deliveryplace ) | html %] |
| 427 |
</li> |
| 428 |
[% END %] |
| 429 |
[% IF basketgroup.billingplace %] |
| 430 |
<li> |
| 431 |
<span class="label">Basket group billing place:</span> [% Branches.GetName( basketgroup.billingplace ) | html %] |
| 432 |
</li> |
| 433 |
[% END %] |
| 434 |
</ol> |
| 435 |
[% END # /IF closeddate %] |
| 436 |
</div> <!-- /.rows --> |
| 437 |
</div> <!-- /.col-sm-6 --> |
| 438 |
</div> <!-- /#acqui_basket_summary.row --> |
| 347 |
[% END %] |
439 |
[% END %] |
| 348 |
</li> |
|
|
| 349 |
[% END %] |
| 350 |
</ol> |
| 351 |
|
440 |
|
| 352 |
[% IF ( closedate ) %] |
441 |
[% IF ( duplinbatch ) %] |
| 353 |
<ol> |
442 |
<div class="dialog alert"> |
| 354 |
<li> |
443 |
<h4>Duplicate warning</h4> |
| 355 |
<span class="label">Basket group:</span> |
444 |
<p>Some records have not been automatically added because they match an existing record in your catalog:<a href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% duplinbatch | uri %]&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]" title="Open in new window" target="_blank" style="margin-left:10px"><i class="fa fa-window-restore"></i> Display them</a></p> |
| 356 |
[% IF basketgroup.id and not basketgroup.name %] |
445 |
</div> |
| 357 |
[% SET basketgroup.name = "Basket group no. " _ basketgroup.id %] |
|
|
| 358 |
[% END %] |
446 |
[% END %] |
| 359 |
|
447 |
|
| 360 |
[% IF basketgroup.closed %] |
448 |
<div id="acqui_basket_content" class="page-section"> |
| 361 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
449 |
[% IF ( books_loop ) %] |
| 362 |
<a href="basketgroup.pl?op=add&booksellerid=[% booksellerid | uri %]&basketgroupid=[% basketgroup.id | uri %]" title="basketgroup">[% basketgroup.name | html %] <span>(closed)</span></a> |
450 |
<h2>Orders</h2> |
| 363 |
[% ELSE %] |
451 |
<table id="orders"> |
| 364 |
[% basketgroup.name | html %] <span>(closed)</span> |
452 |
<thead> |
| 365 |
[% END %] |
453 |
<tr> |
| 366 |
[% ELSIF ( ! CAN_user_acquisition_group_manage ) %] |
454 |
<th>No.</th> |
| 367 |
[%- IF basketgroup.id -%] |
455 |
<th>[% tp('noun', 'Order') | html %]</th> |
| 368 |
[% basketgroup.name | html %] |
456 |
<th>RRP tax exc.</th> |
| 369 |
[%- ELSE -%] |
457 |
<th>Actual cost tax exc.</th> |
| 370 |
<span>No group</span> |
458 |
<th>Budgeted cost tax exc.</th> |
| 371 |
[%- END -%] |
459 |
<th>RRP tax inc.</th> |
| 372 |
[% ELSE %] |
460 |
<th>Actual cost tax inc.</th> |
| 373 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
461 |
<th>Budgeted cost tax inc.</th> |
| 374 |
[% IF ( basketgroup.id ) %] |
462 |
<th>Replacement price</th> |
| 375 |
[% basketgroup.name | html %] |
463 |
<th>Qty.</th> |
| 376 |
<a href="#" id="set_basket_group"><i class="fa fa-pencil"></i> Change basket group</a> |
464 |
<th>Total tax exc. ([% currency | html %])</th> |
| 377 |
[% ELSE %] |
465 |
<th>Total tax inc. ([% currency | html %])</th> |
| 378 |
No group |
466 |
<th>GST %</th> |
| 379 |
<a href="#" id="set_basket_group"><i class="fa fa-pencil"></i> Set basket group</a> |
467 |
<th>GST</th> |
| 380 |
[% END %] |
468 |
<th>Fund</th> |
| 381 |
[% END %] |
469 |
<th>Estimated delivery date</th> |
| 382 |
[% END %] |
470 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 383 |
</li> |
471 |
<th>Supplier report</th> |
| 384 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
472 |
[% END %] |
| 385 |
<li id="basket_grouping" style="display:none;"> |
473 |
[% IF ( active ) %] |
| 386 |
<span class="label"> </span> |
474 |
[% UNLESS ( closedate ) %] |
| 387 |
<div style="float:left"> |
475 |
<th class="NoSort">Modify</th> |
| 388 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post"> |
476 |
<th class="NoSort">Cancel order</th> |
| 389 |
<select id="basketgroupid" name="basketgroupid"> |
|
|
| 390 |
<option value="">No group</option> |
| 391 |
[% FOREACH bg IN basketgroups %] |
| 392 |
[% IF ( bg.default ) %] |
| 393 |
<option value="[% bg.id | html %]" selected="selected">[% bg.name | html %]</option> |
| 394 |
[% ELSE %] |
| 395 |
[% UNLESS bg.closed %] |
| 396 |
<option value="[% bg.id | html %]">[% bg.name | html %]</option> |
| 397 |
[% ELSE %] |
| 398 |
<option value="[% bg.id | html %]" disabled="disabled">[% bg.name | html %] <span>(closed)</span></option> |
| 399 |
[% END %] |
477 |
[% END %] |
| 400 |
[% END %] |
478 |
[% END %] |
|
|
479 |
</tr> |
| 480 |
</thead> |
| 481 |
<tfoot> |
| 482 |
[% FOREACH foot_loo IN book_foot_loop %] |
| 483 |
<tr> |
| 484 |
<th></th> |
| 485 |
<th>Total (GST [% foot_loo.tax_rate * 100 | html %])</th> |
| 486 |
<th> </th> |
| 487 |
<th> </th> |
| 488 |
<th> </th> |
| 489 |
<th> </th> |
| 490 |
<th> </th> |
| 491 |
<th> </th> |
| 492 |
<th> </th> |
| 493 |
<th>[% foot_loo.quantity | html %]</th> |
| 494 |
<th>[% foot_loo.total_tax_excluded | $Price %]</th> |
| 495 |
<th>[% foot_loo.total_tax_included | $Price %]</th> |
| 496 |
<th> </th> |
| 497 |
<th>[% foot_loo.tax_value | $Price %]</th> |
| 498 |
<th> </th> |
| 499 |
<th> </th> |
| 500 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 501 |
<th> </th> |
| 502 |
[% END %] |
| 503 |
[% IF ( active ) %] |
| 504 |
[% UNLESS ( closedate ) %] |
| 505 |
<th> </th> |
| 506 |
<th> </th> |
| 507 |
[% END %] |
| 508 |
[% END %] |
| 509 |
</tr> |
| 401 |
[% END %] |
510 |
[% END %] |
| 402 |
<option value="new">Add new group</option> |
511 |
<tr> |
| 403 |
</select> |
512 |
<th></th> |
| 404 |
<a href="#" id="basket_group_cancel" class="cancel">Cancel</a> |
513 |
<th>Total ([% currency | html %])</th> |
| 405 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
514 |
<th> </th> |
| 406 |
<input type="hidden" value="mod_basket" name="op" /> |
515 |
<th> </th> |
| 407 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
516 |
<th> </th> |
| 408 |
</form> |
517 |
<th> </th> |
| 409 |
</div> |
518 |
<th> </th> |
| 410 |
</li> |
519 |
<th> </th> |
| 411 |
[% END # /IF ( CAN_user_acquisition_group_manage ) %] |
520 |
<th> </th> |
| 412 |
[% IF basketgroup.deliveryplace %] |
521 |
<th>[% total_quantity | html %]</th> |
| 413 |
<li> |
522 |
<th>[% total_tax_excluded | $Price %]</th> |
| 414 |
<span class="label">Basket group delivery placename:</span> [% Branches.GetName( basketgroup.deliveryplace ) | html %] |
523 |
<th>[% total_tax_included | $Price %]</th> |
| 415 |
</li> |
524 |
<th> </th> |
| 416 |
[% END %] |
525 |
<th>[% total_tax_value | $Price %]</th> |
| 417 |
[% IF basketgroup.billingplace %] |
526 |
<th> </th> |
| 418 |
<li> |
527 |
<th> </th> |
| 419 |
<span class="label">Basket group billing place:</span> [% Branches.GetName( basketgroup.billingplace ) | html %] |
528 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 420 |
</li> |
529 |
<th> </th> |
| 421 |
[% END %] |
530 |
[% END %] |
| 422 |
</ol> |
531 |
[% IF ( active ) %] |
| 423 |
[% END # /IF closeddate %] |
532 |
[% UNLESS ( closedate ) %] |
| 424 |
</div> <!-- /.rows --> |
533 |
<th> </th> |
| 425 |
</div> <!-- /.col-sm-6 --> |
534 |
<th> </th> |
| 426 |
</div> <!-- /#acqui_basket_summary.row --> |
535 |
[% END %] |
| 427 |
[% END %] |
536 |
[% END %] |
| 428 |
[% IF ( duplinbatch ) %]<div class="dialog alert"> |
537 |
</tr> |
| 429 |
<h4>Duplicate warning</h4> |
538 |
</tfoot> |
| 430 |
<p>Some records have not been automatically added because they match an existing record in your catalog:<a href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% duplinbatch | uri %]&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]" title="Open in new window" target="_blank" style="margin-left:10px"><i class="fa fa-window-restore"></i> Display them</a></p> |
539 |
<tbody> |
| 431 |
</div>[% END %] |
540 |
[% FOREACH books_loo IN books_loop %] |
|
|
541 |
[% IF ( books_loo.order_received ) %] |
| 542 |
<tr class="disabled"> |
| 543 |
[% ELSE %] |
| 544 |
<tr> |
| 545 |
[% END %] |
| 546 |
<td> |
| 547 |
[% books_loo.ordernumber | html %] |
| 548 |
</td> |
| 549 |
<td> |
| 550 |
<p> |
| 551 |
[% IF ( books_loo.order_received ) %] <span class="order-received">(received)</span>[% END %] |
| 552 |
[% IF books_loo.title %] |
| 553 |
[% INCLUDE 'biblio-title.inc' biblio=books_loo link = 1 %] [% IF books_loo.author %] by [% books_loo.author | html %][% END %] |
| 554 |
[% ELSE %] |
| 555 |
<em>Deleted bibliographic record, can't find title</em><br /> |
| 556 |
[%- END %] |
| 557 |
<br /> |
| 558 |
[%- IF ( books_loo.isbn ) %] - [% books_loo.isbn | html %][% END -%] |
| 559 |
[%- IF ( books_loo.issn ) %] - [% books_loo.issn | html %][% END -%] |
| 560 |
[%- IF ( books_loo.publishercode ) %], [% books_loo.publishercode | html %][% END -%] |
| 561 |
[%- IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear | html -%] |
| 562 |
[%- ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate | html %][% END -%] |
| 563 |
[%- IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END -%] |
| 564 |
[%- IF ( books_loo.suggestionid ) %] |
| 565 |
<br/> |
| 566 |
Suggested by: [% books_loo.surnamesuggestedby | html %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby | html %] [% END %] |
| 567 |
(<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid | uri %]&op=show">suggestion #[% books_loo.suggestionid | html %]</a>) |
| 568 |
[% END %] |
| 569 |
</p> |
| 570 |
[% IF ( books_loo.order_internalnote ) %] |
| 571 |
<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> |
| 572 |
[% ELSE %] |
| 573 |
<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> |
| 574 |
[% END %] |
| 575 |
[% IF ( books_loo.order_vendornote ) %] |
| 576 |
<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> |
| 577 |
[% ELSE %] |
| 578 |
<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> |
| 579 |
[% END %] |
| 580 |
[% IF (books_loo.transferred_from) %] |
| 581 |
[% basket = books_loo.transferred_from.basket %] |
| 582 |
[% bookseller = books_loo.transferred_from.bookseller %] |
| 583 |
[% timestamp = books_loo.transferred_from.timestamp %] |
| 584 |
<p> |
| 585 |
Transferred from basket: |
| 586 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]"> [% basket.basketname | html %]</a> |
| 587 |
(<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | uri %]">[% bookseller.name | html %]</a>) |
| 588 |
on <span title="[% timestamp | $KohaDates with_hours = 1 %]"> |
| 589 |
[% timestamp | $KohaDates %] |
| 590 |
</span> |
| 591 |
</p> |
| 592 |
[% END %] |
| 593 |
[% SET claims = books_loo.order_object.claims %] |
| 594 |
[% IF claims.count %] |
| 595 |
<p> |
| 596 |
This order has been claimed [% claims.count | html %] times. On [% FOR c IN claims %][% c.claimed_on | $KohaDates %][% UNLESS loop.last %], [% END %][% END %] |
| 597 |
</p> |
| 598 |
[% END %] |
| 599 |
</td> |
| 600 |
[% 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 ... %] |
| 601 |
[%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %] |
| 602 |
<td class="number [% IF books_loo.rrp_tax_excluded.search(zero_regex) %]error[% END %]"> |
| 603 |
[% books_loo.rrp_tax_excluded | $Price %] [% IF ( books_loo.uncertainprice ) %] <span>(Uncertain)</span> [% END %] |
| 604 |
</td> |
| 605 |
<td class="number [% IF books_loo.unitprice_tax_excluded.search(zero_regex) %]error[% END %]"> |
| 606 |
[% books_loo.unitprice_tax_excluded | $Price %] |
| 607 |
</td> |
| 608 |
<td class="number [% IF books_loo.ecost_tax_excluded.search(zero_regex) %]error[% END %]"> |
| 609 |
[% books_loo.ecost_tax_excluded | $Price %] |
| 610 |
</td> |
| 611 |
<td class="number [% IF books_loo.rrp_tax_included.search(zero_regex) %]error[% END %]"> |
| 612 |
[% books_loo.rrp_tax_included | $Price %] |
| 613 |
</td> |
| 614 |
<td class="number [% IF books_loo.unitprice_tax_included.search(zero_regex) %]error[% END %]"> |
| 615 |
[% books_loo.unitprice_tax_included | $Price %] |
| 616 |
</td> |
| 617 |
<td class="number [% IF books_loo.ecost_tax_included.search(zero_regex) %]error[% END %]"> |
| 618 |
[% books_loo.ecost_tax_included | $Price %] |
| 619 |
</td> |
| 620 |
<td class="number [% IF books_loo.replacementprice.search(zero_regex) %]error[% END %]"> |
| 621 |
[% books_loo.replacementprice | $Price %] |
| 622 |
</td> |
| 623 |
<td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]"> |
| 624 |
[% books_loo.quantity | html %] |
| 625 |
</td> |
| 626 |
<td class="number [% IF books_loo.total_tax_excluded.search(zero_regex) %]error[% END %]"> |
| 627 |
[% books_loo.total_tax_excluded | $Price %] |
| 628 |
</td> |
| 629 |
<td class="number [% IF books_loo.total_tax_included.search(zero_regex) %]error[% END %]"> |
| 630 |
[% books_loo.total_tax_included | $Price %] |
| 631 |
</td> |
| 632 |
<td class="number"> |
| 633 |
[% books_loo.tax_rate * 100 | html %] |
| 634 |
</td> |
| 635 |
<td class="number [% IF books_loo.tax_value.search(zero_regex) %]error[% END %]"> |
| 636 |
[% books_loo.tax_value | $Price %] |
| 637 |
</td> |
| 638 |
<td> |
| 639 |
[% books_loo.budget_name | html %] |
| 640 |
</td> |
| 641 |
<td data-order="[% books_loo.estimated_delivery_date | html %]" class="actions"> |
| 642 |
[% books_loo.estimated_delivery_date | $KohaDates %] |
| 643 |
[% IF CAN_user_acquisition_order_manage %] |
| 644 |
<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 | html %]"> |
| 645 |
<i class="fa fa-pencil"></i> Edit</a> |
| 646 |
[% END %] |
| 647 |
</td> |
| 648 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 649 |
<td>[% books_loo.suppliers_report | html %]</td> |
| 650 |
[% END %] |
| 651 |
[% IF ( active ) %] |
| 652 |
[% UNLESS ( closedate ) %] |
| 653 |
<td> |
| 654 |
<a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Modify</a> |
| 655 |
[% UNLESS (books_loo.order_received) %] |
| 656 |
<br /> |
| 657 |
<a href="#" class="transfer_order" data-ordernumber="[% books_loo.ordernumber | html %]">Transfer</a> |
| 658 |
[% END %] |
| 659 |
</td> |
| 660 |
<td> |
| 661 |
[% IF ( books_loo.orderstatus != "complete") %] |
| 662 |
[% IF ( books_loo.left_holds_on_order ) %] |
| 663 |
<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> |
| 664 |
[% ELSE %] |
| 665 |
<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> |
| 666 |
[% END %] |
| 667 |
[% IF ( books_loo.can_del_bib ) %] |
| 668 |
<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> |
| 669 |
[% ELSE %] |
| 670 |
<span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br> |
| 671 |
[% END %] |
| 672 |
[% IF ( books_loo.left_item ) %] |
| 673 |
<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> |
| 674 |
[% END %] |
| 675 |
[% IF ( books_loo.left_biblio ) %] |
| 676 |
<strong title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios | html %] order(s) left</strong><br> |
| 677 |
[% END %] |
| 678 |
[% IF ( books_loo.left_subscription ) %] |
| 679 |
<strong title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions | html %] subscription(s) left</strong><br> |
| 680 |
[% END %] |
| 681 |
[% IF ( books_loo.left_holds ) %] |
| 682 |
<strong title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds | html %] hold(s) left</strong> |
| 683 |
[% END %] |
| 684 |
[% END %] |
| 685 |
</td> |
| 686 |
[% END %] |
| 687 |
[% END %] |
| 688 |
</tr> |
| 689 |
[% END %] |
| 690 |
</tbody> |
| 691 |
</table> |
| 692 |
[% END %] |
| 693 |
[% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>[% END %] |
| 694 |
</div> <!-- /#acqui_basket_content --> |
| 432 |
|
695 |
|
| 433 |
<div id="acqui_basket_content" class="page-section"> |
696 |
[% IF (cancelledorders_loop) %] |
| 434 |
[% IF ( books_loop ) %] |
697 |
<div id="cancelledorders" class="page-section"> |
| 435 |
<h2>Orders</h2> |
698 |
<h2>Cancelled orders</h2> |
| 436 |
<table id="orders"> |
699 |
<table id="cancelledorderst"> |
| 437 |
<thead> |
700 |
<thead> |
| 438 |
<tr> |
701 |
<tr> |
| 439 |
<th>No.</th> |
702 |
<th>No.</th> |
| 440 |
<th>[% tp('noun', 'Order') | html %]</th> |
703 |
<th>[% tp('noun', 'Order') | html %]</th> |
| 441 |
<th>RRP tax exc.</th> |
704 |
<th class="tax_excluded">RRP tax exc.</th> |
| 442 |
<th>Actual cost tax exc.</th> |
705 |
<th class="tax_excluded">ecost tax exc.</th> |
| 443 |
<th>Budgeted cost tax exc.</th> |
706 |
<th class="tax_included">RRP tax inc.</th> |
| 444 |
<th>RRP tax inc.</th> |
707 |
<th class="tax_included">ecost tax inc.</th> |
| 445 |
<th>Actual cost tax inc.</th> |
708 |
<th class="replacementprice">Replacement price</th> |
| 446 |
<th>Budgeted cost tax inc.</th> |
709 |
<th>Qty.</th> |
| 447 |
<th>Replacement price</th> |
710 |
<th class="tax_excluded">Total tax exc. ([% currency | html %])</th> |
| 448 |
<th>Qty.</th> |
711 |
<th class="tax_included">Total tax inc. ([% currency | html %])</th> |
| 449 |
<th>Total tax exc. ([% currency | html %])</th> |
712 |
<th>GST %</th> |
| 450 |
<th>Total tax inc. ([% currency | html %])</th> |
713 |
<th>GST</th> |
| 451 |
<th>GST %</th> |
714 |
<th>Fund</th> |
| 452 |
<th>GST</th> |
715 |
</tr> |
| 453 |
<th>Fund</th> |
716 |
</thead> |
| 454 |
<th>Estimated delivery date</th> |
717 |
<tbody> |
| 455 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
718 |
[% FOREACH order IN cancelledorders_loop %] |
| 456 |
<th>Supplier report</th> |
719 |
<tr style="color:grey"> |
| 457 |
[% END %] |
720 |
<td> |
| 458 |
[% IF ( active ) %] |
721 |
[% order.ordernumber | html %] |
| 459 |
[% UNLESS ( closedate ) %] |
722 |
</td> |
| 460 |
<th class="NoSort">Modify</th> |
723 |
<td> |
| 461 |
<th class="NoSort">Cancel order</th> |
724 |
<p> |
|
|
725 |
[% IF ( order.order_received ) %] <span class="order-received">(received)</span>[% END %] |
| 726 |
[% IF (order.title) %] |
| 727 |
[% order.title | html %][% IF order.author %] by [% order.author | html %][% END %] |
| 728 |
[% ELSE %] |
| 729 |
<em>Deleted bibliographic record, can't find title</em> |
| 730 |
[% END %] |
| 731 |
<br /> |
| 732 |
[% IF ( order.order_internalnote ) %] [% order.order_internalnote | html %][% END %] |
| 733 |
[% IF ( order.isbn ) %] - [% order.isbn | html %][% END %] |
| 734 |
[% IF ( order.issn ) %] - [% order.issn | html %][% END %] |
| 735 |
[% IF ( order.publishercode ) %], [% order.publishercode | html %][% END %] |
| 736 |
[% IF ( order.publicationyear ) %] |
| 737 |
, [% order.publicationyear | html %] |
| 738 |
[% ELSIF ( order.copyrightdate ) %] |
| 739 |
[% order.copyrightdate | html %] |
| 740 |
[% END %] |
| 741 |
[% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END %] |
| 742 |
[% IF ( order.cancellationreason ) %] |
| 743 |
<br /> |
| 744 |
Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) | html %] |
| 745 |
[% END %] |
| 746 |
</p> |
| 747 |
[% IF order.transferred_to %] |
| 748 |
[% basket = order.transferred_to.basket %] |
| 749 |
[% bookseller = order.transferred_to.bookseller %] |
| 750 |
[% timestamp = order.transferred_to.timestamp %] |
| 751 |
<p>Transferred to basket: |
| 752 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]"> [% basket.basketname | html %]</a> |
| 753 |
(<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | uri %]">[% bookseller.name | html %]</a>) |
| 754 |
on <span title="[% timestamp | $KohaDates with_hours = 1 %]"> |
| 755 |
[% timestamp | $KohaDates %] |
| 756 |
</span> |
| 757 |
</p> |
| 758 |
[% END %] |
| 759 |
</td> |
| 760 |
<td class="number"> |
| 761 |
[% order.rrp_tax_excluded | $Price %] |
| 762 |
[% IF ( order.uncertain ) %] |
| 763 |
<span>(Uncertain)</span> |
| 764 |
[% END %] |
| 765 |
</td> |
| 766 |
<td class="number">[% order.ecost_tax_excluded | $Price %]</td> |
| 767 |
<td class="number">[% order.rrp_tax_included | $Price %]</td> |
| 768 |
<td class="number">[% order.ecost_tax_included | $Price %]</td> |
| 769 |
<td class="number">[% order.replacementprice | $Price %]</td> |
| 770 |
<td class="number">[% order.quantity | html %]</td> |
| 771 |
<td class="number">[% order.total_tax_excluded | $Price %]</td> |
| 772 |
<td class="number">[% order.total_tax_included | $Price %]</td> |
| 773 |
<td class="number">[% order.tax_rate * 100 | html %]</td> |
| 774 |
<td class="number">[% order.tax_value | $Price %]</td> |
| 775 |
<td>[% order.budget_name | html %] |
| 776 |
</tr> |
| 777 |
[% END %] |
| 778 |
</tbody> |
| 779 |
</table> |
| 780 |
</div> <!-- /#cancelledorders --> |
| 462 |
[% END %] |
781 |
[% END %] |
| 463 |
[% END %] |
782 |
<br /> |
| 464 |
</tr> |
783 |
|
| 465 |
</thead> |
|
|
| 466 |
<tfoot> |
| 467 |
[% FOREACH foot_loo IN book_foot_loop %] |
| 468 |
<tr> |
| 469 |
<th></th> |
| 470 |
<th>Total (GST [% foot_loo.tax_rate * 100 | html %])</th> |
| 471 |
<th> </th> |
| 472 |
<th> </th> |
| 473 |
<th> </th> |
| 474 |
<th> </th> |
| 475 |
<th> </th> |
| 476 |
<th> </th> |
| 477 |
<th> </th> |
| 478 |
<th>[% foot_loo.quantity | html %]</th> |
| 479 |
<th>[% foot_loo.total_tax_excluded | $Price %]</th> |
| 480 |
<th>[% foot_loo.total_tax_included | $Price %]</th> |
| 481 |
<th> </th> |
| 482 |
<th>[% foot_loo.tax_value | $Price %]</th> |
| 483 |
<th> </th> |
| 484 |
<th> </th> |
| 485 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 486 |
<th> </th> |
| 487 |
[% END %] |
| 488 |
[% IF ( active ) %] |
| 489 |
[% UNLESS ( closedate ) %] |
784 |
[% UNLESS ( closedate ) %] |
| 490 |
<th> </th> |
785 |
<!-- Modal --> |
| 491 |
<th> </th> |
786 |
<div id="addtoBasket" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true" data-basketno="[% basket.basketname | html %]"> |
|
|
787 |
<div class="modal-dialog" role="document"> |
| 788 |
<div class="modal-content"> |
| 789 |
<div class="modal-header"> |
| 790 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 791 |
<h4 class="modal-title" id="addtoBasketLabel">Add order to basket</h4> |
| 792 |
</div> |
| 793 |
<div class="modal-body"> |
| 794 |
[% IF active %] |
| 795 |
[% INCLUDE 'acquisitions-add-to-basket.inc' %] |
| 796 |
[% END %] |
| 797 |
</div> |
| 798 |
<div class="modal-footer"> |
| 799 |
<a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
| 800 |
</div> |
| 801 |
</div><!-- /.modal-content --> |
| 802 |
</div><!-- /.modal-dialog --> |
| 803 |
</div><!-- /.modal --> |
| 492 |
[% END %] |
804 |
[% END %] |
|
|
805 |
|
| 493 |
[% END %] |
806 |
[% END %] |
| 494 |
</tr> |
|
|
| 495 |
[% END %] |
| 496 |
<tr> |
| 497 |
<th></th> |
| 498 |
<th>Total ([% currency | html %])</th> |
| 499 |
<th> </th> |
| 500 |
<th> </th> |
| 501 |
<th> </th> |
| 502 |
<th> </th> |
| 503 |
<th> </th> |
| 504 |
<th> </th> |
| 505 |
<th> </th> |
| 506 |
<th>[% total_quantity | html %]</th> |
| 507 |
<th>[% total_tax_excluded | $Price %]</th> |
| 508 |
<th>[% total_tax_included | $Price %]</th> |
| 509 |
<th> </th> |
| 510 |
<th>[% total_tax_value | $Price %]</th> |
| 511 |
<th> </th> |
| 512 |
<th> </th> |
| 513 |
[% IF Koha.Preference('EDIFACT') && ediaccount %] |
| 514 |
<th> </th> |
| 515 |
[% END %] |
| 516 |
[% IF ( active ) %] |
| 517 |
[% UNLESS ( closedate ) %] |
| 518 |
<th> </th> |
| 519 |
<th> </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 %] |
807 |
[% END %] |
| 531 |
<td> |
808 |
[% ELSE %] |
| 532 |
[% books_loo.ordernumber | html %] |
809 |
<!-- if we want just to select a basketgroup for a closed basket --> |
| 533 |
</td> |
810 |
[% END %] |
| 534 |
<td> |
811 |
|
| 535 |
<p> |
812 |
[% IF ( confirm_close ) %] |
| 536 |
[% IF ( books_loo.order_received ) %] <span class="order-received">(received)</span>[% END %] |
813 |
<div id="closebasket_needsconfirmation" class="dialog alert"> |
| 537 |
[% IF books_loo.title %] |
814 |
|
| 538 |
[% INCLUDE 'biblio-title.inc' biblio=books_loo link = 1 %] [% IF books_loo.author %] by [% books_loo.author | html %][% END %] |
815 |
<form action="/cgi-bin/koha/acqui/basket.pl"> |
| 539 |
[% ELSE %] |
816 |
<h1>Are you sure you want to close basket [% basketname | html %]?</h1> |
| 540 |
<em>Deleted bibliographic record, can't find title</em><br /> |
817 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
| 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 %]&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> |
818 |
<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 %] |
819 |
<label for="createbasketgroup">Attach this basket to a new basket group with the same name</label> |
|
|
820 |
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/> |
| 581 |
</p> |
821 |
</p> |
| 582 |
[% END %] |
822 |
[% END %] |
| 583 |
</td> |
823 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
| 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 ... %] |
824 |
<input type="hidden" value="close" name="op" /> |
| 585 |
[%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %] |
825 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 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> |
826 |
<input type="hidden" name="confirm" value="1" /> |
| 587 |
<td class="number [% IF books_loo.unitprice_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.unitprice_tax_excluded | $Price %]</td> |
827 |
<input type="hidden" name="basketgroupname" value="[% basketgroupname | html %]" /> |
| 588 |
<td class="number [% IF books_loo.ecost_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_excluded | $Price %]</td> |
828 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button> |
| 589 |
<td class="number [% IF books_loo.rrp_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_included | $Price %]</td> |
829 |
</form> |
| 590 |
<td class="number [% IF books_loo.unitprice_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.unitprice_tax_included | $Price %]</td> |
830 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 591 |
<td class="number [% IF books_loo.ecost_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_included | $Price %]</td> |
831 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 592 |
<td class="number [% IF books_loo.replacementprice.search(zero_regex) %]error[% END %]">[% books_loo.replacementprice | $Price %]</td> |
832 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button> |
| 593 |
<td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity | html %]</td> |
833 |
</form> |
| 594 |
<td class="number [% IF books_loo.total_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_excluded | $Price %]</td> |
834 |
</div> |
| 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 | html %]"> |
| 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 %] |
| 609 |
[% END %] |
| 610 |
[% IF ( active ) %] |
| 611 |
[% UNLESS ( closedate ) %] |
| 612 |
<td> |
| 613 |
<a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Modify</a> |
| 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> |
| 619 |
<td> |
| 620 |
[% IF ( books_loo.orderstatus != "complete") %] |
| 621 |
[% IF ( books_loo.left_holds_on_order ) %] |
| 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> |
| 623 |
[% ELSE %] |
| 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> |
| 625 |
[% END %] |
| 626 |
[% IF ( books_loo.can_del_bib ) %] |
| 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> |
| 628 |
[% ELSE %] |
| 629 |
<span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br> |
| 630 |
[% END %] |
| 631 |
[% IF ( books_loo.left_item ) %] |
| 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> |
| 633 |
[% END %] |
| 634 |
[% IF ( books_loo.left_biblio ) %] |
| 635 |
<strong title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios | html %] order(s) left</strong><br> |
| 636 |
[% END %] |
| 637 |
[% IF ( books_loo.left_subscription ) %] |
| 638 |
<strong title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions | html %] subscription(s) left</strong><br> |
| 639 |
[% END %] |
| 640 |
[% IF ( books_loo.left_holds ) %] |
| 641 |
<strong title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds | html %] hold(s) left</strong> |
| 642 |
[% END %] |
| 643 |
[% END %] |
| 644 |
</td> |
| 645 |
[% END %] |
| 646 |
[% END %] |
| 647 |
</tr> |
| 648 |
[% END %] |
835 |
[% END %] |
| 649 |
</tbody> |
|
|
| 650 |
</table> |
| 651 |
[% END %] |
| 652 |
[% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>[% END %] |
| 653 |
</div> <!-- /#acqui_basket_content --> |
| 654 |
|
836 |
|
| 655 |
[% IF (cancelledorders_loop) %] |
837 |
[% IF edi_confirm %] |
| 656 |
<div id="cancelledorders" class="page-section"> |
838 |
<div id="closebasket_needsconfirmation" class="dialog alert"> |
| 657 |
<h2>Cancelled orders</h2> |
839 |
<form action="/cgi-bin/koha/acqui/basket.pl"> |
| 658 |
<table id="cancelledorderst"> |
840 |
<h1>Are you sure you want to generate an EDIFACT order and close basket [% basketname | html %]?</h1> |
| 659 |
<thead> |
841 |
[% IF CAN_user_acquisition_group_manage %] |
| 660 |
<tr> |
842 |
<p> |
| 661 |
<th>No.</th> |
843 |
<label for="createbasketgroup">Attach this basket to a new basket group with the same name</label> |
| 662 |
<th>[% tp('noun', 'Order') | html %]</th> |
844 |
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/> |
| 663 |
<th class="tax_excluded">RRP tax exc.</th> |
845 |
</p> |
| 664 |
<th class="tax_excluded">ecost tax exc.</th> |
846 |
[% END %] |
| 665 |
<th class="tax_included">RRP tax inc.</th> |
847 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
| 666 |
<th class="tax_included">ecost tax inc.</th> |
848 |
<input type="hidden" value="ediorder" name="op" /> |
| 667 |
<th class="replacementprice">Replacement price</th> |
849 |
<input type="hidden" name="ean" value="[% ean | html %]" /> |
| 668 |
<th>Qty.</th> |
850 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 669 |
<th class="tax_excluded">Total tax exc. ([% currency | html %])</th> |
851 |
<input type="hidden" name="confirm" value="1" /> |
| 670 |
<th class="tax_included">Total tax inc. ([% currency | html %])</th> |
852 |
<input type="hidden" name="basketgroupname" value="[% basketgroupname | html %]" /> |
| 671 |
<th>GST %</th> |
853 |
<button type="submit" class="approve" accesskey="Y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button> |
| 672 |
<th>GST</th> |
854 |
</form> |
| 673 |
<th>Fund</th> |
855 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 674 |
</tr> |
856 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 675 |
</thead> |
857 |
<button type="submit" class="deny" accesskey="N"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button> |
| 676 |
<tbody> |
858 |
</form> |
| 677 |
[% FOREACH order IN cancelledorders_loop %] |
|
|
| 678 |
<tr style="color:grey"> |
| 679 |
<td> |
| 680 |
[% order.ordernumber | html %] |
| 681 |
</td> |
| 682 |
<td> |
| 683 |
<p> |
| 684 |
[% IF ( order.order_received ) %] <span class="order-received">(received)</span>[% END %] |
| 685 |
[% IF (order.title) %] |
| 686 |
[% order.title | html %][% IF order.author %] by [% order.author | html %][% END %] |
| 687 |
[% ELSE %] |
| 688 |
<em>Deleted bibliographic record, can't find title</em> |
| 689 |
[% END %] |
| 690 |
<br /> |
| 691 |
[% IF ( order.order_internalnote ) %] [% order.order_internalnote | html %][% END %] |
| 692 |
[% IF ( order.isbn ) %] - [% order.isbn | html %][% END %] |
| 693 |
[% IF ( order.issn ) %] - [% order.issn | html %][% END %] |
| 694 |
[% IF ( order.publishercode ) %], [% order.publishercode | html %][% END %] |
| 695 |
[% IF ( order.publicationyear ) %], [% order.publicationyear | html %] |
| 696 |
[% ELSIF ( order.copyrightdate ) %] [% order.copyrightdate | html %][% END %] |
| 697 |
[% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END %] |
| 698 |
[% IF ( order.cancellationreason ) %] |
| 699 |
<br /> |
| 700 |
Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) | html %] |
| 701 |
[% END %] |
| 702 |
</p> |
| 703 |
[% IF order.transferred_to %] |
| 704 |
[% basket = order.transferred_to.basket %] |
| 705 |
[% bookseller = order.transferred_to.bookseller %] |
| 706 |
[% timestamp = order.transferred_to.timestamp %] |
| 707 |
<p>Transferred to basket: |
| 708 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]"> [% basket.basketname | html %]</a> |
| 709 |
(<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | uri %]">[% bookseller.name | html %]</a>) |
| 710 |
on <span title="[% timestamp | $KohaDates with_hours = 1 %]"> |
| 711 |
[% timestamp | $KohaDates %] |
| 712 |
</span> |
| 713 |
</p> |
| 714 |
[% END %] |
| 715 |
</td> |
| 716 |
<td class="number"> |
| 717 |
[% order.rrp_tax_excluded | $Price %] |
| 718 |
[% IF ( order.uncertain ) %] |
| 719 |
<span>(Uncertain)</span> |
| 720 |
[% END %] |
| 721 |
</td> |
| 722 |
<td class="number">[% order.ecost_tax_excluded | $Price %]</td> |
| 723 |
<td class="number">[% order.rrp_tax_included | $Price %]</td> |
| 724 |
<td class="number">[% order.ecost_tax_included | $Price %]</td> |
| 725 |
<td class="number">[% order.replacementprice | $Price %]</td> |
| 726 |
<td class="number">[% order.quantity | html %]</td> |
| 727 |
<td class="number">[% order.total_tax_excluded | $Price %]</td> |
| 728 |
<td class="number">[% order.total_tax_included | $Price %]</td> |
| 729 |
<td class="number">[% order.tax_rate * 100 | html %]</td> |
| 730 |
<td class="number">[% order.tax_value | $Price %]</td> |
| 731 |
<td>[% order.budget_name | html %] |
| 732 |
</tr> |
| 733 |
[% END %] |
| 734 |
</tbody> |
| 735 |
</table> |
| 736 |
</div> <!-- /#cancelledorders --> |
| 737 |
[% END %] |
| 738 |
<br /> |
| 739 |
|
| 740 |
[% UNLESS ( closedate ) %] |
| 741 |
<!-- Modal --> |
| 742 |
<div id="addtoBasket" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true" data-basketno="[% basket.basketname | html %]"> |
| 743 |
<div class="modal-dialog" role="document"> |
| 744 |
<div class="modal-content"> |
| 745 |
<div class="modal-header"> |
| 746 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 747 |
<h4 class="modal-title" id="addtoBasketLabel">Add order to basket</h4> |
| 748 |
</div> |
| 749 |
<div class="modal-body"> |
| 750 |
[% IF active %] |
| 751 |
[% INCLUDE 'acquisitions-add-to-basket.inc' %] |
| 752 |
[% END %] |
| 753 |
</div> |
| 754 |
<div class="modal-footer"> |
| 755 |
<a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
| 756 |
</div> |
859 |
</div> |
| 757 |
</div><!-- /.modal-content --> |
860 |
[% END %] |
| 758 |
</div><!-- /.modal-dialog --> |
861 |
[% END %][%# IF (cannot_manage_basket) %] |
| 759 |
</div><!-- /.modal --> |
|
|
| 760 |
[% END %] |
| 761 |
|
| 762 |
[% END %] |
| 763 |
[% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket --> |
| 764 |
[% END %] |
| 765 |
[% IF ( confirm_close ) %] |
| 766 |
<div id="closebasket_needsconfirmation" class="dialog alert"> |
| 767 |
|
| 768 |
<form action="/cgi-bin/koha/acqui/basket.pl"> |
| 769 |
<h1>Are you sure you want to close basket [% basketname | html %]?</h1> |
| 770 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
| 771 |
<p> |
| 772 |
<label for="createbasketgroup">Attach this basket to a new basket group with the same name</label> |
| 773 |
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/> |
| 774 |
</p> |
| 775 |
[% END %] |
| 776 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
| 777 |
<input type="hidden" value="close" name="op" /> |
| 778 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 779 |
<input type="hidden" name="confirm" value="1" /> |
| 780 |
<input type="hidden" name="basketgroupname" value="[% basketgroupname | html %]" /> |
| 781 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button> |
| 782 |
</form> |
| 783 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 784 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 785 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button> |
| 786 |
</form> |
| 787 |
</div> |
| 788 |
[% END %] |
| 789 |
[% IF edi_confirm %] |
| 790 |
<div id="closebasket_needsconfirmation" class="dialog alert"> |
| 791 |
|
| 792 |
<form action="/cgi-bin/koha/acqui/basket.pl"> |
| 793 |
<h1>Are you sure you want to generate an EDIFACT order and close basket [% basketname | html %]?</h1> |
| 794 |
[% IF CAN_user_acquisition_group_manage %] |
| 795 |
<p> |
| 796 |
<label for="createbasketgroup">Attach this basket to a new basket group with the same name</label> |
| 797 |
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/> |
| 798 |
</p> |
| 799 |
[% END %] |
| 800 |
<input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" /> |
| 801 |
<input type="hidden" value="ediorder" name="op" /> |
| 802 |
<input type="hidden" name="ean" value="[% ean | html %]" /> |
| 803 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
| 804 |
<input type="hidden" name="confirm" value="1" /> |
| 805 |
<input type="hidden" name="basketgroupname" value="[% basketgroupname | html %]" /> |
| 806 |
<button type="submit" class="approve" accesskey="Y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button> |
| 807 |
</form> |
| 808 |
<form action="/cgi-bin/koha/acqui/basket.pl" method="get"> |
| 809 |
<input type="hidden" name="basketno" value="[% basketno | html %]" /> |
| 810 |
<button type="submit" class="deny" accesskey="N"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button> |
| 811 |
</form> |
| 812 |
</div> |
| 813 |
[% END %] |
| 814 |
[% END %][%# IF (cannot_manage_basket) %] |
| 815 |
|
| 816 |
</main> |
862 |
</main> |
| 817 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
863 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 818 |
|
864 |
|
|
Lines 825-877
Link Here
|
| 825 |
</div> <!-- /.row --> |
871 |
</div> <!-- /.row --> |
| 826 |
|
872 |
|
| 827 |
|
873 |
|
| 828 |
<!-- Modal for editing vendor and internal notes --> |
874 |
<!-- Modal for editing vendor and internal notes --> |
| 829 |
<div class="modal" id="noteEditor" tabindex="-1" role="dialog" aria-labelledby="noteEditorLabel"> |
875 |
<div class="modal" id="noteEditor" tabindex="-1" role="dialog" aria-labelledby="noteEditorLabel"> |
| 830 |
<div class="modal-dialog" role="document"> |
876 |
<div class="modal-dialog" role="document"> |
| 831 |
<form id="modify_order_notes" action="/cgi-bin/koha/acqui/modordernotes.pl" method="post"> |
877 |
<form id="modify_order_notes" action="/cgi-bin/koha/acqui/modordernotes.pl" method="post"> |
| 832 |
<div class="modal-content"> |
878 |
<div class="modal-content"> |
| 833 |
<div class="modal-header"> |
879 |
<div class="modal-header"> |
| 834 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
880 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 835 |
<h4 class="modal-title" id="noteEditorLabel">Order note</h4> |
881 |
<h4 class="modal-title" id="noteEditorLabel">Order note</h4> |
|
|
882 |
</div> |
| 883 |
<div class="modal-body"> |
| 884 |
<textarea id="ordernotes" name="ordernotes" rows="3" cols="30" class="focus">[% ordernotes | html %]</textarea> |
| 885 |
<input type="hidden" id="ordernumber" name="ordernumber" value="" /> |
| 886 |
<input type="hidden" name="op" value="save" /> |
| 887 |
<input type="hidden" id="type" name="type" value="" /> |
| 888 |
</div> |
| 889 |
<div class="modal-footer"> |
| 890 |
<button type="submit" class="btn btn-default">Save</button> |
| 891 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
| 892 |
</div> |
| 836 |
</div> |
893 |
</div> |
| 837 |
<div class="modal-body"> |
894 |
</form> |
| 838 |
<textarea id="ordernotes" name="ordernotes" rows="3" cols="30" class="focus">[% ordernotes | html %]</textarea> |
895 |
</div> |
| 839 |
<input type="hidden" id="ordernumber" name="ordernumber" value="" /> |
|
|
| 840 |
<input type="hidden" name="op" value="save" /> |
| 841 |
<input type="hidden" id="type" name="type" value="" /> |
| 842 |
</div> |
| 843 |
<div class="modal-footer"> |
| 844 |
<button type="submit" class="btn btn-default">Save</button> |
| 845 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
| 846 |
</div> |
| 847 |
</div> |
| 848 |
</form> |
| 849 |
</div> |
896 |
</div> |
| 850 |
</div> |
|
|
| 851 |
|
897 |
|
| 852 |
<!-- Modal for editing estimated delivery date --> |
898 |
<!-- Modal for editing estimated delivery date --> |
| 853 |
<div class="modal" id="dateEditor" tabindex="-1" role="dialog" aria-labelledby="dateEditorLabel"> |
899 |
<div class="modal" id="dateEditor" tabindex="-1" role="dialog" aria-labelledby="dateEditorLabel"> |
| 854 |
<div class="modal-dialog" role="document"> |
900 |
<div class="modal-dialog" role="document"> |
| 855 |
<form id="modify_estimated_delivery_date" action="/cgi-bin/koha/acqui/moddeliverydate.pl" method="post"> |
901 |
<form id="modify_estimated_delivery_date" action="/cgi-bin/koha/acqui/moddeliverydate.pl" method="post"> |
| 856 |
<div class="modal-content"> |
902 |
<div class="modal-content"> |
| 857 |
<div class="modal-header"> |
903 |
<div class="modal-header"> |
| 858 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
904 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 859 |
<h4 class="modal-title" id="dateEditorLabel">Estimated delivery date</h4> |
905 |
<h4 class="modal-title" id="dateEditorLabel">Estimated delivery date</h4> |
|
|
906 |
</div> |
| 907 |
<div class="modal-body"> |
| 908 |
<input type="text" id="estimated_delivery_date" size="10" name="estimated_delivery_date" class="flatpickr" value="[% books_loo.estimated_delivery_date | html %]"/> |
| 909 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 910 |
<input type="hidden" id="date_ordernumber" name="ordernumber" value="" /> |
| 911 |
<input type="hidden" name="op" value="save" /> |
| 912 |
</div> |
| 913 |
<div class="modal-footer"> |
| 914 |
<button type="submit" class="btn btn-default">Save</button> |
| 915 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
| 916 |
</div> |
| 860 |
</div> |
917 |
</div> |
| 861 |
<div class="modal-body"> |
918 |
</form> |
| 862 |
<input type="text" id="estimated_delivery_date" size="10" name="estimated_delivery_date" class="flatpickr" value="[% books_loo.estimated_delivery_date | html %]"/> |
919 |
</div> |
| 863 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
|
|
| 864 |
<input type="hidden" id="date_ordernumber" name="ordernumber" value="" /> |
| 865 |
<input type="hidden" name="op" value="save" /> |
| 866 |
</div> |
| 867 |
<div class="modal-footer"> |
| 868 |
<button type="submit" class="btn btn-default">Save</button> |
| 869 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
| 870 |
</div> |
| 871 |
</div> |
| 872 |
</form> |
| 873 |
</div> |
920 |
</div> |
| 874 |
</div> |
|
|
| 875 |
|
921 |
|
| 876 |
[% MACRO jsinclude BLOCK %] |
922 |
[% MACRO jsinclude BLOCK %] |
| 877 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
923 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
| 878 |
- |
|
|