Browse Source
* acquisition rewritte : create a aqbasket table to deal with "bookseller order header". * add "close basket" feature : a closed basket can't be modified * suggestion feature : manage suggestions in acquisition (after suggestion filled in OPAC)3.0.x
tipaul
20 years ago
8 changed files with 315 additions and 140 deletions
@ -1,62 +1,81 @@ |
|||
<!-- TMPL_INCLUDE name="acquisitions-top.inc" --> |
|||
|
|||
<div id="mainbloc"> |
|||
<h1 class="acquisition">Shopping Basket <b><!-- TMPL_VAR name="basket" --> </b>for <a href=supplier.pl?id=<!-- TMPL_VAR name="booksellerid" -->></a> <!-- TMPL_VAR name="name" --></h1><br /> |
|||
Our Reference: <b><!-- TMPL_VAR name="entrydate" --></b>, #<b><!-- TMPL_VAR name="basket" --></b> authorised by <b><!-- TMPL_VAR name="loggedinusername" --></b><br /> |
|||
<p> |
|||
<table> |
|||
<tr valign=top bgcolor="#ffdf61"> |
|||
<th class="acquisition" width="5%">Order</th> |
|||
<th class="acquisition" width="10%">Publisher</th> |
|||
<th class="acquisition" width="10%">Isbn</th> |
|||
<th class="acquisition" width="30%">Title</th> |
|||
<th class="acquisition" width="20%">Author</th> |
|||
<th class="acquisition" width="5%">$ rrp</th> |
|||
<th class="acquisition" width="7%">$est</th> |
|||
<th class="acquisition" width="7%">Qty</th> |
|||
<th class="acquisition" width="7%">Total</th> |
|||
</tr> |
|||
<!-- TMPL_LOOP name="books_loop" --> |
|||
<tr valign=top bgcolor="<!-- TMPL_VAR name="color" -->"> |
|||
<td><!-- TMPL_VAR name="ordernumber" --></td> |
|||
<td><!-- TMPL_VAR name="publishercode" --></td> |
|||
<td><!-- TMPL_VAR name="isbn" --></td> |
|||
<td><a href="newbiblio.pl?ordnum=<!-- TMPL_VAR name="ordernumber" -->&id=<!-- TMPL_VAR name="booksellerid" -->&basket=<!-- TMPL_VAR name="basket" -->"><!-- TMPL_VAR name="title" --></a></td> |
|||
<td><!-- TMPL_VAR name="author" --></td> |
|||
<td><!-- TMPL_VAR name="rrp" --></td> |
|||
<td><!-- TMPL_VAR name="ecost" --></td> |
|||
<td><!-- TMPL_VAR name="quantity" --></td> |
|||
<td><!-- TMPL_VAR name="line_total" --></td> |
|||
<h1 class="acquisition"><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->shopping Basket <b><!-- TMPL_VAR name="basketno" --> </b>for <a href=supplier.pl?id=<!-- TMPL_VAR name="booksellerid" -->><!-- TMPL_VAR name="name" --></a></h1><br /> |
|||
<div id="bloc25"> |
|||
<h2 class="acquisition">Basket info</h2> |
|||
<p><label class="label100">Basket number<label> <!-- TMPL_VAR name="basketno" --></p> |
|||
<p><label class="label100">Managed by<label><!-- TMPL_VAR name="authorisedbyname" --></p> |
|||
<p><label class="label100">open on<label> <!-- TMPL_VAR name="creationdate" --></p> |
|||
<p><label class="label100">for<label> <!-- TMPL_VAR name="booksellerid" --></p> |
|||
<p><label class="label100">Invoice number </label><!-- TMPL_VAR name="booksellerinvoicenumber" --></p> |
|||
<a href="/cgi-bin/koha/acqui/order.pl?op=close&basket=<!-- TMPL_VAR name="basketno" -->" class="button acquisition">Close</a> |
|||
</div> |
|||
<div id="bloc100"> |
|||
<h2 class="acquisition">Order</h2> |
|||
<!-- TMPL_IF name="books_loop" --> |
|||
<table> |
|||
<tr valign=top bgcolor="#ffdf61"> |
|||
<th class="acquisition" width="5%">Order</th> |
|||
<th class="acquisition" width="10%">Publisher</th> |
|||
<th class="acquisition" width="10%">Isbn</th> |
|||
<th class="acquisition" width="30%">Title</th> |
|||
<th class="acquisition" width="20%">Author</th> |
|||
<th class="acquisition" width="5%">$ rrp</th> |
|||
<th class="acquisition" width="7%">$est</th> |
|||
<th class="acquisition" width="7%">Qty</th> |
|||
<th class="acquisition" width="7%">Total</th> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
<input type=hidden name=number value=<!-- TMPL_VAR name="count" -->> |
|||
<input type=hidden name=basketno value="<!-- TMPL_VAR name="basket" -->"> |
|||
<tr> |
|||
<td colspan=6 rowspan=3> |
|||
|
|||
</td> |
|||
<td><b>SubTotal</b></td> |
|||
<td><!-- TMPL_VAR name="currency" --><!-- TMPL_VAR name="sub_total" --></td> |
|||
</tr> |
|||
<tr> |
|||
<td><b>GST</b></td> |
|||
<td><!-- TMPL_VAR name="currency" --><!-- TMPL_VAR name="gist" --></td> |
|||
</tr> |
|||
<tr> |
|||
<td><b>TOTAL</b></td> |
|||
<td><!-- TMPL_VAR name="currency" --><!-- TMPL_VAR name="grand_total" --></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan=9> |
|||
<FORM ACTION="/cgi-bin/koha/acqui/newbasket2.pl" method=post> |
|||
<input type=hidden name=id value="<!-- TMPL_VAR name="id" -->"> |
|||
<input type=hidden name=basket value="<!-- TMPL_VAR name="basket" -->"> |
|||
<b> Add order : enter keyword or title: </b><INPUT TYPE="text" SIZE="25" NAME="search"> |
|||
</form> |
|||
</td> |
|||
</tr> |
|||
|
|||
</table> |
|||
</CENTER> |
|||
<!-- TMPL_LOOP name="books_loop" --> |
|||
<tr valign=top bgcolor="<!-- TMPL_VAR name="color" -->"> |
|||
<td><!-- TMPL_VAR name="ordernumber" --></td> |
|||
<td><!-- TMPL_VAR name="publishercode" --></td> |
|||
<td><!-- TMPL_VAR name="isbn" --></td> |
|||
<td><a href="newbiblio.pl?ordnum=<!-- TMPL_VAR name="ordernumber" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->&basketno=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR name="title" --></a></td> |
|||
<td><!-- TMPL_VAR name="author" --></td> |
|||
<td><!-- TMPL_VAR name="rrp" --></td> |
|||
<td><!-- TMPL_VAR name="ecost" --></td> |
|||
<td><!-- TMPL_VAR name="quantity" --></td> |
|||
<td><!-- TMPL_VAR name="line_total" --></td> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
<input type=hidden name=number value=<!-- TMPL_VAR name="count" -->> |
|||
<input type=hidden name=basketno value="<!-- TMPL_VAR name="basketno" -->"> |
|||
<tr> |
|||
<td colspan=6 rowspan=3> |
|||
|
|||
</td> |
|||
<td><b>SubTotal</b></td> |
|||
<td><!-- TMPL_VAR name="currency" --><!-- TMPL_VAR name="sub_total" --></td> |
|||
</tr> |
|||
<tr> |
|||
<td><b>GST</b></td> |
|||
<td><!-- TMPL_VAR name="currency" --><!-- TMPL_VAR name="gist" --></td> |
|||
</tr> |
|||
<tr> |
|||
<td><b>TOTAL</b></td> |
|||
<td><!-- TMPL_VAR name="currency" --><!-- TMPL_VAR name="grand_total" --></td> |
|||
</tr> |
|||
</table> |
|||
<!-- TMPL_ELSE --> |
|||
<p>Basket empty</p> |
|||
<!-- /TMPL_IF --> |
|||
</div> |
|||
<div id="bloc25"> |
|||
<h2 class="acquisition">Add order line</h2> |
|||
<form action="/cgi-bin/koha/acqui/newbasket2.pl" method=post> |
|||
<input type=hidden name=booksellerid value="<!-- TMPL_VAR name="booksellerid" -->"> |
|||
<input type=hidden name=basketno value="<!-- TMPL_VAR name="basketno" -->"> |
|||
<p>from an existing biblio: </b><input type="text" size="25" name="search"><input type="submit" class="button acquisition" value="Search"></p> |
|||
<p>or |
|||
<a href="/cgi-bin/koha/acqui/suggestion-select.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&basketno=<!-- TMPL_VAR name="basketno" -->" class="button acquisition"> |
|||
from a suggestion |
|||
</a> |
|||
<a href="/cgi-bin/koha/acqui/newbiblio.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&basketno=<!-- TMPL_VAR name="basketno" -->" class="button acquisition"> |
|||
New biblio |
|||
</a> |
|||
</p> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
<!-- TMPL_INCLUDE name="acquisitions-bottom.inc" --> |
|||
|
@ -1,53 +1,64 @@ |
|||
<!-- TMPL_INCLUDE name="acquisitions-top.inc" --> |
|||
<div id="mainbloc"> |
|||
<h1 class="acquisition">Supplier Search Results</h1> |
|||
<div id="bloc100"> |
|||
<h2 class="acquisition">You searched on <b>supplier <!-- TMPL_VAR name="supplier" -->,</b> <!-- TMPL_VAR name="count" --> results found</h2> |
|||
<table> |
|||
<tr> |
|||
<th class="acquisition">Order</th> |
|||
<th class="acquisition">Receive</th> |
|||
<th class="acquisition">Company</th> |
|||
<th class="acquisition"> |
|||
<table class="noborder"> |
|||
<tr> |
|||
<th class="acquisition">Basket</th> |
|||
<th class="acquisition">Items</th> |
|||
<th class="acquisition">Staff</th> |
|||
<th class="acquisition">Date</th> |
|||
</tr> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
|
|||
<!-- TMPL_LOOP name="loop_suppliers" --> |
|||
<tr valign=top bgcolor=<!-- TMPL_VAR name="color" -->> |
|||
<td> |
|||
<!-- TMPL_IF name="active" --> |
|||
<a href="basket.pl?id=<!-- TMPL_VAR name=id -->"><img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/mail_send.png" title="Add order" ALT="Add" BORDER=0 ></a> |
|||
<!-- TMPL_ELSE --> |
|||
Inactive |
|||
<!-- /TMPL_IF --> |
|||
</td> |
|||
<td> |
|||
<a href="recieveorder.pl?id=<!-- TMPL_VAR name=id -->"><img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/mail_get.png" title="receive" ALT="Add" BORDER=0 ></a> |
|||
</td> |
|||
<td><a href="supplier.pl?id=<!-- TMPL_VAR name=id -->"><!-- TMPL_VAR name="name" --></a></td> |
|||
<td> |
|||
<table width="100%" cellspacing=0 cellpadding=5 border=0> |
|||
<!-- TMPL_LOOP name="loop_basket" --> |
|||
<h1 class="acquisition">Supplier Search Results</h1> |
|||
<div id="bloc100"> |
|||
<h2 class="acquisition">You searched on <b>supplier <!-- TMPL_VAR name="supplier" -->,</b> <!-- TMPL_VAR name="count" --> results found</h2> |
|||
<table> |
|||
<tr> |
|||
<th class="acquisition">Order</th> |
|||
<th class="acquisition">Receive</th> |
|||
<th class="acquisition">Supplier</th> |
|||
<th class="acquisition"> |
|||
|
|||
</th> |
|||
</tr> |
|||
|
|||
<!-- TMPL_LOOP name="loop_suppliers" --> |
|||
<!-- TMPL_IF name="even" --> |
|||
<tr bgcolor="#EEEEEE"> |
|||
<!-- TMPL_ELSE --> |
|||
<tr> |
|||
<!-- /TMPL_IF --> |
|||
<td> |
|||
<!-- TMPL_IF name="active" --> |
|||
<a href="basket.pl?supplierid=<!-- TMPL_VAR name=supplierid -->"><img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/mail_send.png" title="Add order" ALT="Add" BORDER=0 ></a> |
|||
<!-- TMPL_ELSE --> |
|||
Inactive |
|||
<!-- /TMPL_IF --> |
|||
</td> |
|||
<td> |
|||
<a href="recieveorder.pl?supplierid=<!-- TMPL_VAR name=supplierid -->"><img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/mail_get.png" title="receive" ALT="Add" BORDER=0 ></a> |
|||
</td> |
|||
<td><a href="supplier.pl?supplierid=<!-- TMPL_VAR name=supplierid -->"><!-- TMPL_VAR name="name" --></a></td> |
|||
<td> |
|||
<table> |
|||
<tr> |
|||
<td width="15%"><a href="/cgi-bin/koha/acqui/basket.pl?basket=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR name="basketno" --></a></td> |
|||
<td width="15%"><TMPl_VAR name="total"></td> |
|||
<td width="40%"><!-- TMPL_VAR name="authorisedby" --></td> |
|||
<td width="30%"><!-- TMPL_VAR name="entrydate" --></td> |
|||
<th class="acquisition">Basket</th> |
|||
<th class="acquisition">Items</th> |
|||
<th class="acquisition">Created by</th> |
|||
<th class="acquisition">Date</th> |
|||
<th class="acquisition"> </th> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
</table> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
</table> |
|||
</CENTER> |
|||
<br> |
|||
<a class="button acquisition" href="supplier.pl?id=0">Add supplier</a> |
|||
<!-- TMPL_LOOP name="loop_basket" --> |
|||
<tr> |
|||
<td><!-- TMPL_VAR name="basketno" --></a></td> |
|||
<td><TMPl_VAR name="total"></td> |
|||
<td><!-- TMPL_VAR name="authorisedby" --></td> |
|||
<td><!-- TMPL_VAR name="creationdate" --></td> |
|||
<td> |
|||
<!-- TMPL_IF name="closedate" --> |
|||
closed on <!-- TMPL_VAR name="closedate" --> |
|||
<!-- TMPL_ELSE --> |
|||
<a href="/cgi-bin/koha/acqui/basket.pl?basket=<!-- TMPL_VAR name="basketno" -->" class="button acquisition">modify</a> |
|||
<!-- /TMPL_IF --> |
|||
</td> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
</table> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
</table> |
|||
</div> |
|||
<a class="button acquisition" href="supplier.pl?supplerid=0">Add supplier</a> |
|||
</div> |
|||
<!-- TMPL_INCLUDE name="acquisitions-bottom.inc" --> |
|||
|
@ -0,0 +1,61 @@ |
|||
<!-- TMPL_INCLUDE NAME="acquisitions-top.inc" --> |
|||
<div id="mainbloc"> |
|||
|
|||
<!-- TMPL_IF name="op_else" --> |
|||
<h1 class="acquisition">Suggestions</h1> |
|||
<table> |
|||
<tr> |
|||
<th class="acquisition">Suggestion</th> |
|||
<th class="acquisition">Suggested by</th> |
|||
<th class="acquisition">Accepted by</th> |
|||
<th class="acquisition"> </th> |
|||
</tr> |
|||
<tr> |
|||
<form> |
|||
<th class="acquisition"> |
|||
<p>Filter on : |
|||
title: <input type="text" name="title" value="<!-- TMPL_VAR name="title"-->"> |
|||
author: <input type="text" name="author" value="<!-- TMPL_VAR name="author" -->"> |
|||
publisher: <input type="text" name="publishercode" value="<!-- TMPL_VAR name="publishercode"-->"> |
|||
</th> |
|||
<th class="acquisition"> |
|||
|
|||
</th> |
|||
<th class="acquisition"> |
|||
|
|||
</th> |
|||
<th class="acquisition"> |
|||
<input type="submit" class="button acquisition" value="Set Filter"> |
|||
</th> |
|||
</form> |
|||
</tr> |
|||
<!-- TMPL_LOOP NAME="suggestions_loop" --> |
|||
<tr> |
|||
<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->> |
|||
<p><!-- TMPL_VAR NAME="title" --> - <!-- TMPL_VAR NAME="author" --></p> |
|||
<p> |
|||
<!-- TMPL_IF name="copyrightdate" -->copy. year:<!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF --> |
|||
<!-- TMPL_IF name="volumedesc" -->volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF --> |
|||
<!-- TMPL_IF name="isbn" -->ISBN :<i><!-- TMPL_VAR name="isbn" --></i> <!-- /TMPL_IF --> |
|||
<!-- TMPL_IF name="publishercode" --><br/>published by:<!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF --> |
|||
<!-- TMPL_IF name="publicationyear" --> in <i><!-- TMPL_VAR name="publicationyear" --></i> <!-- /TMPL_IF --> |
|||
<!-- TMPL_IF name="place" --> at <i><!-- TMPL_VAR name="place" --></i> <!-- /TMPL_IF --> |
|||
<!-- TMPL_IF name="note" --><p><i>(<!-- TMPL_VAR name="note" -->)</i></p> <!-- /TMPL_IF --> |
|||
</td> |
|||
<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->> |
|||
<!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamesuggestedby" --> |
|||
</td> |
|||
<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->> |
|||
<!-- TMPL_VAR name="usermanagedby" --><!-- TMPL_IF name="firstnamemanagedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamemanagedby" --> |
|||
</td> |
|||
<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->> |
|||
<a href="newbiblio.pl??id=<!-- TMPL_VAR name="supplierid" -->&basket=<!-- TMPL_VAR name="basket" -->&suggestionid=<!-- TMPL_VAR name="suggestionid" -->" class="button acquisition">Order</a> |
|||
</td> |
|||
</tr> |
|||
<!-- /TMPL_LOOP --> |
|||
</table> |
|||
<form> |
|||
|
|||
<!-- /TMPL_IF --> |
|||
</div> |
|||
<!-- TMPL_INCLUDE NAME="acquisitions-bottom.inc" --> |
Loading…
Reference in new issue