1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Shopping Basket For: <!-- TMPL_VAR name="bookselname" --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
6 <script language="javascript" type="text/javascript">
10 quantity=f.quantity.value
12 alert("Quantity must be >0");
14 discount=f.discount.value
15 listinc=parseInt(f.listinc.value)
16 currency=f.currency.value
17 applygst=parseInt(f.applygst.value)
18 listprice=f.list_price.value
20 // ecost=f.ecost.value //budgetted cost
22 // total=f.total.value
23 //make useful constants out of the above
24 exchangerate=f.elements[currency].value //get exchange rate
28 listprice=listprice*100/(100+f.gstrate.value)
30 rrp=listprice*exchangerate;
31 ecost=rrp*(100-discount)/100
34 // rrp=rrp*(1+f.gstrate.value/100);
35 GST=ecost*(f.gstrate.value)/100;
38 total=(ecost+GST)*quantity
42 f.unitprice.value=ecost+GST
50 function messenger(X,Y,etc){
51 win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
54 win.document.write("<body link='#333333' bgcolor='#ffffff' text='#000000'><font size='2'><p><br>");
55 win.document.write(etc);
56 win.document.write("<center><form><input type=button onclick='self.close()' value='Close'></form></center>");
57 win.document.write("</font></body></html>");
61 quantity=f.quantity.value;
63 biblio=f.biblionumber.value;
64 invoice=f.purchaseordernumber.value;
65 suggestionid="<!--TMPL_VAR NAME="suggestionid"-->";
67 alert("Title can't be empty- Have you created the biblio?");
70 if (biblio == "" && suggestionid=="") {
71 alert("A biblio is not created- please create the biblio first?");
75 alert("Quantity must be >0");
79 document.frusin.submit();
81 function AddBiblio() {
82 window.open("/cgi-bin/koha/cataloguing/addbiblio.pl?fromserials=1&popup=1&suggestionid=<!--TMPL_VAR NAME="suggestionid"-->","AddBiblio",'width=700,height=400,toolbar=no,scrollbars=yes,status=yes');
87 <!-- TMPL_IF name="ordnum" -->
88 Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)
92 <!-- TMPL_IF name="suggestionid" -->(defined from suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
94 <div id="acqui_basket_summary">
95 <h2>Basket Details</h2>
97 <tr><th>Basket Number:</th><td><!-- TMPL_VAR NAME="basketno" --></td></tr>
98 <tr><th>Managed By:</th><td><!-- TMPL_VAR NAME="authorisedbyname" --></td></tr>
99 <tr><th>Open On:</th><td><!-- TMPL_VAR NAME="creationdate" --></td></tr>
100 <tr><th>For:</th><td>Supplier Id <!-- TMPL_VAR NAME="booksellerid" --></td></tr>
101 <tr><th>Invoice Number:</th><td><!-- TMPL_VAR NAME="booksellerinvoicenumber" --></td></tr>
102 <tr><th>Purchase Order Number:</th><td><!-- TMPL_VAR NAME="purchaseordernumber" --></td></tr>
103 <!-- TMPL_IF name="closedate" --><tr><th>Closed On:</th><td> <!-- TMPL_VAR name="closedate" --></td></tr><!-- /TMPL_IF -->
107 <div id="acqui_newbiblio_edit_catalogue">
108 <h2>catalogue details</h2>
109 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
110 <!-- TMPL_UNLESS name="existing" -->
111 <input type="hidden" name="existing" value="no" >
112 <!-- /TMPL_UNLESS -->
113 <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->" />
114 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
115 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
116 <input type="hidden" name="biblionumber" id="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
117 <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->" />
118 <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->" />
119 <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->" />
120 <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->" />
121 <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->" />
122 <!-- TMPL_LOOP NAME="loop_currencies" -->
123 <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->" />
127 <label><b>Title *</b></label>
129 <input type="text" size="20" name="title" id="title" value="<!-- TMPL_VAR NAME="title" -->" READONLY/>Auto filled
131 <!-- TMPL_IF name="biblionumber" -->
133 <label>Author</label>
134 <input type="hidden" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->" /><!-- TMPL_VAR NAME="author" -->
137 <label> Publisher</label>
138 <input type="hidden" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" /><!-- TMPL_VAR NAME="publishercode" -->
141 <label>Copyright Date</label>
142 <input type="hidden" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->" /><!-- TMPL_VAR NAME="copyrightdate" -->
146 <label>Format</label>
147 <!-- TMPL_VAR NAME="itemtype" -->
151 <input type="hidden" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /><!-- TMPL_VAR NAME="isbn" -->
155 <label>Series</label>
156 <input type="hidden" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /><!-- TMPL_VAR NAME="seriestitle" -->
159 <!--TMPL_UNLESS NAME="suggestionid"--><p><a href="#" onClick="AddBiblio()">First Create a Biblio for this order</a></p><!--/TMPL_UNLESS-->
162 <h2>Accounting details</h2>
164 <label>Branch</label>
165 <select name="branch">
166 <!-- TMPL_LOOP name="branchloop" -->
167 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
172 <label>Quantity</label>
174 <input type="text" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);" <!-- TMPL_IF name="close" -->readonly<!--/TMPL_IF--/>
178 <label>Bookfund</label>
179 <!-- TMPL_IF name="close" -->
180 <input type="hidden" size="20" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" /><!-- TMPL_VAR NAME="bookfundname" -->
182 <!-- TMPL_VAR NAME="CGIbookfund" -->
185 Note: All figures are in local currency, except the suppliers list price which is indicated.Currency conversion is done automatically
186 <!-- TMPL_IF NAME="gstreg" -->
188 <label> Applicable Tax rate</label>
189 <input type="text" size="20" name="gstrate" value="<!--TMPL_VAR NAME="gstrate"-->" onchange="update(this.form)" />%
193 <label>Suppliers List Price</label>
195 <input type="text" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)" <!-- TMPL_IF name="close" -->readonly<!--/TMPL_IF-->/><!-- TMPL_VAR NAME="currency" -->
199 <label>Replacement Cost </label>
200 <input type="text" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" <!-- TMPL_IF name="close" -->readonly<!--/TMPL_IF--> />
204 <label>Discount Applied</label>
205 <input type="text" size="20" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" onchange="update(this.form)" <!-- TMPL_IF name="close" -->readonly <!--/TMPL_IF--> />%
208 <label>Budgeted Cost</label>
209 <input type="text" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" <!-- TMPL_IF name="close" -->readonly <!--/TMPL_IF--> />
211 <!--TMPL_IF NAME="gstreg"-->
213 <label>Budgeted GST</label>
214 <input type="text" size="20" name="GST" value="<!-- TMPL_VAR NAME="gst" -->" <!-- TMPL_IF name="close" -->readonly <!--/TMPL_IF--> />
218 <label><b>BUDGETED TOTAL</b></label>
219 <input type="text" size="20" name="total" value="<!-- TMPL_VAR name="total"-->" <!-- TMPL_IF name="close" -->readonly <!--/TMPL_IF--> />
222 <label>Unit Cost</label>
223 <input type="text" size="20" name="unitprice" value="<!-- TMPL_VAR name="unitprice"-->" <!-- TMPL_IF name="close" -->readonly <!--/TMPL_IF--> /><!--TMPL_IF NAME="gstreg"-->includes any applicable tax less any discount<!--/TMPL_IF-->
226 <label>Purchase Order No </label>
227 <input type="text" size="20" name="purchaseordernumber" value="<!-- TMPL_VAR name="purchaseordernumber" -->" <!-- TMPL_IF name="close" -->readonly <!--/TMPL_IF--> /> (using recommended!)
231 <input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->" />
233 <p>The 2 following fields are available for your own usage. They can be useful for stat purposes</p>
235 <label>Sort field 1</label>
236 <!-- TMPL_IF Name="CGIsort1" -->
237 <!-- TMPL_VAR Name="CGIsort1" -->
239 <input type="text" size="20" name="sort1" value="<!-- TMPL_VAR NAME="sort1" -->" />
243 <label>Sort field 2</label>
244 <!-- TMPL_IF Name="CGIsort2" -->
245 <!-- TMPL_VAR Name="CGIsort2" -->
247 <input type="text" size="20" name="sort2" value="<!-- TMPL_VAR NAME="sort2" -->" />
251 <input type="button" value="OK" onclick="check(this.form)" />
254 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->