|
Lines 16-22
Link Here
|
| 16 |
[% Asset.js("lib/yui/container/container_core-min.js") %] |
16 |
[% Asset.js("lib/yui/container/container_core-min.js") %] |
| 17 |
[% Asset.js("lib/yui/menu/menu-min.js") %] |
17 |
[% Asset.js("lib/yui/menu/menu-min.js") %] |
| 18 |
[% Asset.js("js/basketgroup.js") %] |
18 |
[% Asset.js("js/basketgroup.js") %] |
| 19 |
[% IF ( grouping ) %] |
|
|
| 20 |
[% Asset.js("lib/yui/yahoo-dom-event/yahoo-dom-event.js") %] |
19 |
[% Asset.js("lib/yui/yahoo-dom-event/yahoo-dom-event.js") %] |
| 21 |
[% Asset.js("lib/yui/animation/animation-min.js") %] |
20 |
[% Asset.js("lib/yui/animation/animation-min.js") %] |
| 22 |
[% Asset.js("lib/yui/dragdrop/dragdrop-min.js") %] |
21 |
[% Asset.js("lib/yui/dragdrop/dragdrop-min.js") %] |
|
Lines 92-98
fieldset.various li {
Link Here
|
| 92 |
} |
91 |
} |
| 93 |
|
92 |
|
| 94 |
</style> |
93 |
</style> |
| 95 |
[% END %] |
|
|
| 96 |
<script type="text/javascript"> |
94 |
<script type="text/javascript"> |
| 97 |
//<![CDATA[ |
95 |
//<![CDATA[ |
| 98 |
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true); |
96 |
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true); |
|
Lines 155-458
function submitForm(form) {
Link Here
|
| 155 |
[% INCLUDE 'acquisitions-search.inc' %] |
153 |
[% INCLUDE 'acquisitions-search.inc' %] |
| 156 |
|
154 |
|
| 157 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
155 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › |
| 158 |
[% IF ( grouping ) %] |
156 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> |
| 159 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket groups</a> › Add basket group for [% booksellername |html %] |
157 |
› |
| 160 |
[% ELSE %] |
158 |
<a href="/cgi-bin/koha/acqui/basketgroups.pl?booksellerid=[% booksellerid %]">Basket groups</a> |
| 161 |
[% IF (booksellerid) %] |
159 |
› |
| 162 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › |
160 |
Add basket group for [% booksellername |html %] |
| 163 |
[% END %] |
|
|
| 164 |
Basket groups |
| 165 |
[% END %] |
| 166 |
</div> |
161 |
</div> |
| 167 |
|
162 |
|
| 168 |
<div id="doc3" class="yui-t2"> |
163 |
<div id="doc3" class="yui-t2"> |
| 169 |
<div id="bd"> |
164 |
<div id="bd"> |
| 170 |
<div id="yui-main"> |
165 |
<div id="yui-main"> |
| 171 |
<div class="yui-b"> |
166 |
<div class="yui-b"> |
| 172 |
[% IF ( grouping ) %] |
167 |
[% IF (closedbg) %] |
| 173 |
[% IF (closedbg) %] |
168 |
<div id="toolbar" class="btn-toolbar"> |
| 174 |
<div id="toolbar" class="btn-toolbar"> |
169 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div> |
| 175 |
<div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div> |
170 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div> |
| 176 |
<div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div> |
171 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> |
| 177 |
<div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> |
172 |
<div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> |
| 178 |
<div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> |
173 |
</div> |
|
|
174 |
[% END %] |
| 175 |
[% IF (name && closedbg) %] |
| 176 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
| 177 |
[% ELSIF (name) %] |
| 178 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
| 179 |
[% ELSE %] |
| 180 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
| 181 |
[% END %] |
| 182 |
<div id="basketgroupcolumns" class="yui-g"> |
| 183 |
[% UNLESS (closedbg) %] |
| 184 |
<div class="yui-u"> |
| 185 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
| 186 |
<div id="groups"> |
| 187 |
<fieldset class="brief"> |
| 188 |
<div class="workarea_alt" > |
| 189 |
<h3>Ungrouped baskets</h3> |
| 190 |
<ul id="ungrouped" class="draglist_alt"> |
| 191 |
[% IF ( baskets ) %] |
| 192 |
[% FOREACH basket IN baskets %] |
| 193 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
| 194 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
| 195 |
[% IF ( basket.basketname ) %] |
| 196 |
[% basket.basketname %] |
| 197 |
[% ELSE %] |
| 198 |
No name, basketnumber: [% basket.basketno %] |
| 199 |
[% END %] |
| 200 |
</a>, <br /> |
| 201 |
Total: [% basket.total %] |
| 202 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
| 203 |
</li> |
| 204 |
[% END %] |
| 205 |
[% END %] |
| 206 |
</ul> |
| 207 |
</div> |
| 208 |
</fieldset> |
| 209 |
</div> |
| 210 |
</form> |
| 179 |
</div> |
211 |
</div> |
| 180 |
[% END %] |
212 |
[% END %] |
| 181 |
[% IF (name && closedbg) %] |
213 |
<div class="yui-u first"> |
| 182 |
<h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
214 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
| 183 |
[% ELSIF (name) %] |
215 |
<fieldset id="various" class="brief"> |
| 184 |
<h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
216 |
<ol> |
| 185 |
[% ELSE %] |
217 |
[% UNLESS (closedbg) %] |
| 186 |
<h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
218 |
<li> |
| 187 |
[% END %] |
219 |
<label for="basketgroupname">Basket group name:</label> |
| 188 |
<div id="basketgroupcolumns" class="yui-g"> |
220 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
| 189 |
[% UNLESS (closedbg) %] |
221 |
</li> |
| 190 |
<div class="yui-u"> |
222 |
[% ELSE %] |
| 191 |
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups"> |
223 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
| 192 |
<div id="groups"> |
224 |
[% END %] |
| 193 |
<fieldset class="brief"> |
225 |
<li> |
| 194 |
<div class="workarea_alt" > |
|
|
| 195 |
<h3>Ungrouped baskets</h3> |
| 196 |
<ul id="ungrouped" class="draglist_alt"> |
| 197 |
[% IF ( baskets ) %] |
| 198 |
[% FOREACH basket IN baskets %] |
| 199 |
<li class="ungrouped" id="b-[% basket.basketno %]" > |
| 200 |
<a href="basket.pl?basketno=[% basket.basketno %]"> |
| 201 |
[% IF ( basket.basketname ) %] |
| 202 |
[% basket.basketname %] |
| 203 |
[% ELSE %] |
| 204 |
No name, basketnumber: [% basket.basketno %] |
| 205 |
[% END %] |
| 206 |
</a>, <br /> |
| 207 |
Total: [% basket.total %] |
| 208 |
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" /> |
| 209 |
</li> |
| 210 |
[% END %] |
| 211 |
[% END %] |
| 212 |
</ul> |
| 213 |
</div> |
| 214 |
</fieldset> |
| 215 |
</div> |
| 216 |
</form> |
| 217 |
</div> |
| 218 |
[% END %] |
| 219 |
<div class="yui-u first"> |
| 220 |
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)"> |
| 221 |
<fieldset id="various" class="brief"> |
| 222 |
<ol> |
| 223 |
[% UNLESS (closedbg) %] |
226 |
[% UNLESS (closedbg) %] |
| 224 |
<li> |
227 |
<label for="billingplace">Billing place:</label> |
| 225 |
<label for="basketgroupname">Basket group name:</label> |
228 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
| 226 |
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" /> |
229 |
<option value="">--</option> |
| 227 |
</li> |
230 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %] |
|
|
231 |
</select> |
| 228 |
[% ELSE %] |
232 |
[% ELSE %] |
| 229 |
<input type="hidden" name="basketgroupname" id="basketgroupname" value="[% name %]" /> |
233 |
<span class="label">Billing place:</span> |
|
|
234 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %] |
| 230 |
[% END %] |
235 |
[% END %] |
|
|
236 |
</li> |
| 237 |
[% UNLESS (closedbg) %] |
| 231 |
<li> |
238 |
<li> |
| 232 |
[% UNLESS (closedbg) %] |
239 |
<label for="deliveryplace">Delivery place:</label> |
| 233 |
<label for="billingplace">Billing place:</label> |
240 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
| 234 |
<select name="billingplace" id="billingplace" style="width:13em;"> |
241 |
<option value="">--</option> |
| 235 |
<option value="">--</option> |
242 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %] |
| 236 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %] |
243 |
<select> |
| 237 |
</select> |
|
|
| 238 |
[% ELSE %] |
| 239 |
<span class="label">Billing place:</span> |
| 240 |
<input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %] |
| 241 |
[% END %] |
| 242 |
</li> |
244 |
</li> |
| 243 |
[% UNLESS (closedbg) %] |
245 |
<li><p>or</p></li> |
| 244 |
<li> |
246 |
<li> |
| 245 |
<label for="deliveryplace">Delivery place:</label> |
247 |
<label for="freedeliveryplace">Delivery place:</label> |
| 246 |
<select name="deliveryplace" id="deliveryplace" style="width:13em;"> |
248 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
| 247 |
<option value="">--</option> |
249 |
</li> |
| 248 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %] |
250 |
[% ELSE %] |
| 249 |
<select> |
|
|
| 250 |
</li> |
| 251 |
<li><p>or</p></li> |
| 252 |
<li> |
| 253 |
<label for="freedeliveryplace">Delivery place:</label> |
| 254 |
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea> |
| 255 |
</li> |
| 256 |
[% ELSE %] |
| 257 |
<li> |
| 258 |
<span class="label">Delivery place:</span> |
| 259 |
[% IF (freedeliveryplace) %] |
| 260 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
| 261 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
| 262 |
[% ELSE %] |
| 263 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %] |
| 264 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
| 265 |
[% END %] |
| 266 |
</li> |
| 267 |
[% END %] |
| 268 |
<li> |
251 |
<li> |
| 269 |
[% UNLESS (closedbg) %] |
252 |
<span class="label">Delivery place:</span> |
| 270 |
<label for="deliverycomment">Delivery comment:</label> |
253 |
[% IF (freedeliveryplace) %] |
| 271 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
254 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %] |
|
|
255 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="" /> |
| 272 |
[% ELSE %] |
256 |
[% ELSE %] |
| 273 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
257 |
<input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %] |
| 274 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
258 |
<input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" /> |
| 275 |
[% END %] |
259 |
[% END %] |
| 276 |
</li> |
260 |
</li> |
| 277 |
<li> |
261 |
[% END %] |
| 278 |
<span class="label">Baskets in this group:</span> |
262 |
<li> |
| 279 |
[% UNLESS (closedbg) %] |
263 |
[% UNLESS (closedbg) %] |
| 280 |
<ul class="draglist" id="bg"> |
264 |
<label for="deliverycomment">Delivery comment:</label> |
| 281 |
[% ELSE %] |
265 |
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea> |
| 282 |
<ul> |
266 |
[% ELSE %] |
| 283 |
[% END %] |
267 |
<span class="label">Delivery comment:</span>[% deliverycomment %] |
| 284 |
[% FOREACH selectedbasket IN selectedbaskets %] |
268 |
<input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" /> |
| 285 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
269 |
[% END %] |
| 286 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
|
|
| 287 |
[% IF ( selectedbasket.basketname ) %] |
| 288 |
[% selectedbasket.basketname %] |
| 289 |
[% ELSE %] |
| 290 |
No name, basketnumber: [% selectedbasket.basketno %] |
| 291 |
[% END %] |
| 292 |
</a>, <br /> |
| 293 |
Total: [% selectedbasket.total %] |
| 294 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
| 295 |
</li> |
| 296 |
[% END %] |
| 297 |
</ul> |
| 298 |
</li> |
270 |
</li> |
|
|
271 |
<li> |
| 272 |
<span class="label">Baskets in this group:</span> |
| 299 |
[% UNLESS (closedbg) %] |
273 |
[% UNLESS (closedbg) %] |
| 300 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
274 |
<ul class="draglist" id="bg"> |
| 301 |
[% ELSE %] |
275 |
[% ELSE %] |
| 302 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
276 |
<ul> |
| 303 |
[% END %] |
277 |
[% END %] |
| 304 |
</ol> |
278 |
[% FOREACH selectedbasket IN selectedbaskets %] |
| 305 |
</fieldset> |
279 |
<li class="grouped" id="b-[% selectedbasket.basketno %]" > |
| 306 |
[% UNLESS (closedbg) %] |
280 |
<a href="basket.pl?basketno=[% selectedbasket.basketno %]"> |
| 307 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
281 |
[% IF ( selectedbasket.basketname ) %] |
| 308 |
[% IF ( basketgroupid ) %] |
282 |
[% selectedbasket.basketname %] |
| 309 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
283 |
[% ELSE %] |
|
|
284 |
No name, basketnumber: [% selectedbasket.basketno %] |
| 285 |
[% END %] |
| 286 |
</a>, <br /> |
| 287 |
Total: [% selectedbasket.total %] |
| 288 |
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" /> |
| 289 |
</li> |
| 290 |
[% END %] |
| 291 |
</ul> |
| 292 |
</li> |
| 293 |
[% UNLESS (closedbg) %] |
| 294 |
<li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li> |
| 295 |
[% ELSE %] |
| 296 |
<input type="hidden" id="closedbg" name="closedbg" value ="1"/> |
| 310 |
[% END %] |
297 |
[% END %] |
| 311 |
<input type="hidden" name="op" value="attachbasket" /> |
298 |
</ol> |
| 312 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
299 |
</fieldset> |
| 313 |
</fieldset> |
300 |
[% UNLESS (closedbg) %] |
| 314 |
[% END %] |
301 |
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
| 315 |
</form> |
302 |
[% IF ( basketgroupid ) %] |
| 316 |
</div> |
303 |
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" /> |
|
|
304 |
[% END %] |
| 305 |
<input type="hidden" name="op" value="attachbasket" /> |
| 306 |
<input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a> |
| 307 |
</fieldset> |
| 308 |
[% END %] |
| 309 |
</form> |
| 317 |
</div> |
310 |
</div> |
| 318 |
[% ELSE %] |
311 |
</div> |
| 319 |
[% IF booksellerid %] |
|
|
| 320 |
<div id="toolbar" class="btn-toolbar"> |
| 321 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div> |
| 322 |
</div> |
| 323 |
[% END %] |
| 324 |
|
| 325 |
[% FOREACH bookseller IN booksellers %] |
| 326 |
[% IF bookseller.basketgroups.size > 0 %] |
| 327 |
<h1>Basket groups for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name |html %]</a></h1> |
| 328 |
<div class="basket_groups toptabs"> |
| 329 |
<ul class="ui-tabs-nav"> |
| 330 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened[% bookseller.id %]">Open</a></li> |
| 331 |
[% ELSE%]<li><a href="#opened[% bookseller.id %]">Open</a></li>[% END %] |
| 332 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed[% bookseller.id %]">Closed</a></li> |
| 333 |
[% ELSE %]<li><a href="#closed[% bookseller.id %]">Closed</a></li>[% END %] |
| 334 |
</ul> |
| 335 |
<div id="opened[% bookseller.id %]"> |
| 336 |
<table id="basket_group_opened"> |
| 337 |
<thead> |
| 338 |
<tr> |
| 339 |
<th>Search name</th> |
| 340 |
<th>Search no.</th> |
| 341 |
<th>Search billing place</th> |
| 342 |
<th>Search delivery place</th> |
| 343 |
<th>Search no. of baskets</th> |
| 344 |
<th>Search no. of ordered titles</th> |
| 345 |
<th>Search no. of received titles</th> |
| 346 |
<th></th> |
| 347 |
</tr> |
| 348 |
<tr> |
| 349 |
<th>Name</th> |
| 350 |
<th>No.</th> |
| 351 |
<th>Billing place</th> |
| 352 |
<th>Delivery place</th> |
| 353 |
<th>No. of baskets</th> |
| 354 |
<th>No. of ordered titles</th> |
| 355 |
<th>No. of received titles</th> |
| 356 |
<th>Action</th> |
| 357 |
</tr> |
| 358 |
</thead> |
| 359 |
<tbody> |
| 360 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
| 361 |
[% UNLESS ( basketgroup.closed ) %] |
| 362 |
<tr> |
| 363 |
<td> |
| 364 |
[% IF ( basketgroup.name ) %] |
| 365 |
[% basketgroup.name %] |
| 366 |
[% ELSE %] |
| 367 |
Basket group no. [% basketgroup.id %] |
| 368 |
[% END %] |
| 369 |
</td> |
| 370 |
<td>[% basketgroup.id %]</td> |
| 371 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
| 372 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
| 373 |
<td>[% basketgroup.basketsqty %]</td> |
| 374 |
<td>[% basketgroup.ordered_titles_count %]</td> |
| 375 |
<td>[% basketgroup.received_titles_count %]</td> |
| 376 |
<td> |
| 377 |
<input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" /> |
| 378 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
| 379 |
[% UNLESS basketgroup.basketsqty %] |
| 380 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
| 381 |
[% END %] |
| 382 |
</td> |
| 383 |
</tr> |
| 384 |
[% END %] |
| 385 |
[% END %] |
| 386 |
</tbody> |
| 387 |
</table> |
| 388 |
</div> |
| 389 |
<div id="closed[% bookseller.id %]"> |
| 390 |
<table class="basket_group_closed"> |
| 391 |
<thead> |
| 392 |
<tr> |
| 393 |
<th>Search name</th> |
| 394 |
<th>Search no.</th> |
| 395 |
<th>Search date closed</th> |
| 396 |
<th>Search billing place</th> |
| 397 |
<th>Search delivery place</th> |
| 398 |
<th>Search no. of baskets</th> |
| 399 |
<th>Search no. of ordered titles</th> |
| 400 |
<th>Search no. of received titles</th> |
| 401 |
<th></th> |
| 402 |
</tr> |
| 403 |
<tr> |
| 404 |
<th>Name</th> |
| 405 |
<th>No.</th> |
| 406 |
<th>Date closed</th> |
| 407 |
<th>Billing place</th> |
| 408 |
<th>Delivery place</th> |
| 409 |
<th>No. of baskets</th> |
| 410 |
<th>No. of ordered titles</th> |
| 411 |
<th>No. of received titles</th> |
| 412 |
<th>Action</th> |
| 413 |
</tr> |
| 414 |
</thead> |
| 415 |
<tbody> |
| 416 |
[% FOREACH basketgroup IN bookseller.basketgroups %] |
| 417 |
[% IF ( basketgroup.closed ) %] |
| 418 |
<tr> |
| 419 |
<td> |
| 420 |
[% IF ( basketgroup.name ) %] |
| 421 |
[% basketgroup.name %] |
| 422 |
[% ELSE %] |
| 423 |
Basket group no. [% basketgroup.id %] |
| 424 |
[% END %] |
| 425 |
</td> |
| 426 |
<td>[% basketgroup.id %]</td> |
| 427 |
<td>[% basketgroup.closeddate |$KohaDates %]</td> |
| 428 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
| 429 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName(basketgroup.deliveryplace) %][% END %]</td> |
| 430 |
<td>[% basketgroup.basketsqty %]</td> |
| 431 |
<td>[% basketgroup.ordered_titles_count %]</td> |
| 432 |
<td>[% basketgroup.received_titles_count %]</td> |
| 433 |
<td> |
| 434 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form> |
| 435 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
| 436 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as PDF" /></form> |
| 437 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
| 438 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
| 439 |
</td> |
| 440 |
</tr> |
| 441 |
[% END %] |
| 442 |
[% END %] |
| 443 |
</tbody> |
| 444 |
</table> |
| 445 |
</div> |
| 446 |
</div> |
| 447 |
[% END %] |
| 448 |
[% END %] |
| 449 |
[% END %] |
| 450 |
</div> |
312 |
</div> |
| 451 |
</div> |
313 |
</div> |
| 452 |
<div class="yui-b"> |
314 |
<div class="yui-b"> |
| 453 |
[% IF ( booksellerid ) %] |
315 |
[% INCLUDE 'vendor-menu.inc' %] |
| 454 |
[% INCLUDE 'vendor-menu.inc' %] |
|
|
| 455 |
[% END %] |
| 456 |
[% INCLUDE 'acquisitions-menu.inc' %] |
316 |
[% INCLUDE 'acquisitions-menu.inc' %] |
| 457 |
</div> |
317 |
</div> |
| 458 |
</div> |
318 |
</div> |