1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Acquisitions › Shopping Basket <!-- TMPL_VAR NAME="basketno" --> › <!-- TMPL_IF name="ordnum" -->Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)<!-- TMPL_ELSE -->New order<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
8 quantity=f.quantity.value
10 alert("Quantity must be >0");
12 discount=f.discount.value
13 listinc=parseInt(f.listinc.value)
14 currency=f.currency.value
15 applygst=parseInt(f.applygst.value)
16 listprice=f.list_price.value
18 // ecost=f.ecost.value //budgetted cost
20 // total=f.total.value
21 //make useful constants out of the above
22 exchangerate=f.elements[currency].value //get exchange rate
23 gst_on=(!listinc && applygst);
25 rrp=listprice*exchangerate;
26 ecost=rrp*(100-discount)/100
29 rrp=rrp*(1+<!-- TMPL_VAR NAME="gstrate" -->);
30 GST=ecost*(<!-- TMPL_VAR NAME="gstrate" -->);
33 total=(ecost+GST)*quantity
38 <!-- TMPL_IF NAME="GST"-->
44 function messenger(X,Y,etc){
45 win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
48 win.document.write("<body link='#333333' bgcolor='#ffffff' text='#000000'><font size='2'><p><br />");
49 win.document.write(etc);
50 win.document.write("<center><form><input type=button onclick='self.close()' value='Close'></form></center>");
51 win.document.write("</font></body></html>");
55 quantity=f.quantity.value
58 alert("Title can't be empty");
62 alert("Quantity must be >0");
65 document.frusin.submit();
71 <!-- TMPL_INCLUDE NAME="header.inc" -->
72 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
74 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">Shopping Basket <!-- TMPL_VAR NAME="basketno" --></a> › <!-- TMPL_IF name="ordnum" -->Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)<!-- TMPL_ELSE -->New order<!-- /TMPL_IF --></div>
76 <div id="doc3" class="yui-t2">
84 <!-- TMPL_IF name="ordnum" -->
85 Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)
89 <!-- TMPL_IF name="suggestionid" -->(defined from suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
92 <!-- TMPL_IF name="basketno" -->
93 <div id="basket-details">Basket Details
94 <p>Basket Number: <!-- TMPL_VAR NAME="basketno" --></p>
95 <p>Managed By: <!-- TMPL_VAR NAME="authorisedbyname" --></p>
96 <p>Open On: <!-- TMPL_VAR NAME="creationdate" --></p>
97 <p>ForSupplier Id: <!-- TMPL_VAR NAME="booksellerid" --></p>
98 <p>Invoice Number: <!-- TMPL_VAR NAME="booksellerinvoicenumber" --></p>
99 <!-- TMPL_IF name="closedate" --><p>Closed On: <!-- TMPL_VAR name="closedate" --></p><!-- /TMPL_IF -->
103 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
105 <legend>Catalogue details</legend>
106 <!-- TMPL_UNLESS name="existing" -->
107 <input type="hidden" name="existing" value="no" />
108 <!-- /TMPL_UNLESS -->
109 <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->" />
110 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
111 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
112 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
113 <input type="hidden" name="biblioitemnumber" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
114 <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->" />
115 <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" />
116 <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->" />
117 <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->" />
118 <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->" />
119 <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->" />
120 <!-- TMPL_LOOP NAME="loop_currencies" -->
121 <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->" />
124 <!-- TMPL_IF name="biblio" -->
125 <strong>Title</strong>
126 <input type="hidden" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->" /><!-- TMPL_VAR NAME="title" -->
128 <label for="title" class="required">Title</label>
129 <input type="text" id="title" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
133 <!-- TMPL_IF name="biblio" -->
134 <strong>Author</strong>
135 <input type="hidden" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->" /><!-- TMPL_VAR NAME="author" -->
137 <label for="author">Author</label>
138 <input type="text" id="author" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->" />
142 <!-- TMPL_IF name="biblio" -->
143 <strong>Publisher</strong>
144 <input type="hidden" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" /><!-- TMPL_VAR NAME="publishercode" -->
146 <label for="publishercode"> Publisher</label>
147 <input type="text" id="publishercode" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" />
151 <!-- TMPL_IF name="biblio" -->
152 <strong>Copyright Date</strong>
153 <input type="hidden" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->" /><!-- TMPL_VAR NAME="copyrightdate" -->
155 <label for="copyrightdate">Copyright Date</label>
156 <input type="text" id="copyrightdate" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->" />
160 <label for="format">Format</label>
161 <!-- TMPL_VAR NAME="CGIitemtype" -->
164 <!-- TMPL_IF name="biblio" -->
165 <strong>ISBN</strong>
166 <input type="hidden" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /><!-- TMPL_VAR NAME="isbn" -->
168 <label for="ISBN">ISBN</label>
169 <input type="text" id="ISBN" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" />
173 <!-- TMPL_IF name="biblio" -->
174 <strong>Series</strong>
175 <input type="hidden" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /><!-- TMPL_VAR NAME="seriestitle" -->
177 <label for="series">Series</label>
178 <input type="text" id="series" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" />
182 <label for="branch">Branch</label>
183 <select name="branch" id="branch">
184 <!-- TMPL_LOOP name="branchloop" -->
185 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
187 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
194 <legend>Accounting details</legend>
196 <!-- TMPL_IF name="close" -->
197 <strong>Quantity</strong>
198 <input type="hidden" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" /><!-- TMPL_VAR NAME="quantity" -->
200 <label for="quantity">Quantity</label>
201 <input type="text" id="quantity" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);" />
205 <!-- TMPL_IF name="close" -->
206 <strong>Bookfund</strong>
207 <input type="hidden" size="20" name="bookfund" value="<!-- TMPL_VAR NAME="bookfundid" -->" /><!-- TMPL_VAR NAME="bookfundname" -->
209 <label for="bookfund">Bookfund</label>
210 <!-- TMPL_VAR NAME="CGIbookfund" -->
214 <!-- TMPL_IF name="close" -->
215 <strong>Supplier price</strong>
216 <input type="hidden" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" /><!-- TMPL_VAR NAME="listprice" -->
218 <label for="list_price">Supplier price</label>
219 <input type="text" id="list_price" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)" />
223 <!-- TMPL_IF name="close" -->
224 <strong>Replacement Cost</strong>
225 <input type="hidden" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" /><!-- TMPL_VAR NAME="rrp" -->
227 <label for="rrp">Replacement Cost </label>
228 <input type="text" id="rrp" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" />
232 <!-- TMPL_IF name="close" -->
233 <strong>Budgeted Cost</strong>
234 <input type="text" id="" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" readonly="readonly" />
236 <label for="ecost">Budgeted Cost</label>
237 <input type="text" id="ecost" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" />
240 <!-- TMPL_IF NAME="GST"-->
242 <!-- TMPL_IF name="close" -->
243 <strong>Budgeted GST</strong>
244 <input type="text" id="" size="20" name="GST" value="" readonly="readonly" />
246 <label for="GST">Budgeted GST</label>
247 <input type="text" id="GST" size="20" name="GST" value="" />
252 <!-- TMPL_IF name="close" -->
253 <strong>Total</strong>
254 <input type="text" id="" size="20" name="total" value="<!-- TMPL_VAR name="total" -->" readonly="readonly" />
256 <label for="total"><strong>Total</strong></label>
257 <input type="text" id="total" size="20" name="total" value="<!-- TMPL_VAR name="total" -->" />
261 <!-- TMPL_IF name="close" -->
262 <strong>Actual Cost</strong>
263 <input type="text" id="" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->" readonly="readonly" />
265 <label for="cost">Actual Cost</label>
266 <input type="text" id="cost" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->" />
270 <label for="invoice">Invoice Number</label>
271 <input type="text" id="invoice" size="20" name="invoice" value="<!-- TMPL_VAR name="invoice" -->" />(usually empty)
274 <label for="notes">Notes</label>
275 <input type="text" id="notes" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->" />
277 <p>The 2 following fields are available for your own usage. They can be useful for stat purposes</p>
279 <!-- TMPL_IF Name="CGIsort1" -->
280 <!-- TMPL_VAR Name="CGIsort1" -->
282 <label for="sort1">Sort field 1</label>
283 <input type="text" id="sort1" size="20" name="sort1" value="<!-- TMPL_VAR NAME="sort1" -->" />
287 <!-- TMPL_IF Name="CGIsort2" -->
288 <!-- TMPL_VAR Name="CGIsort2" -->
290 <label for="sort2">Sort field 2</label>
291 <input type="text" id="sort2" size="20" name="sort2" value="<!-- TMPL_VAR NAME="sort2" -->" />
296 <input type="button" value="OK" onclick="check(this.form)" />
302 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
305 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->