1 <!-- TMPL_INCLUDE name="acquisitions-top.inc" -->
2 <script language="javascript" type="text/javascript">
7 quantity=f.quantity.value
8 discount=f.discount.value
9 listinc=parseInt(f.listinc.value)
10 currency=f.currency.value
11 applygst=parseInt(f.applygst.value)
12 listprice=f.list_price.value
14 // ecost=f.ecost.value //budgetted cost
16 // total=f.total.value
17 //make useful constants out of the above
18 exchangerate=f.elements[currency].value //get exchange rate
19 gst_on=(!listinc && applygst);
21 rrp=listprice*exchangerate;
22 ecost=rrp*(100-discount)/100
25 rrp=rrp*(1+<!-- TMPL_VAR NAME="gstrate" -->);
26 GST=ecost*(<!-- TMPL_VAR NAME="gstrate" -->);
29 total=(ecost+GST)*quantity
40 function messenger(X,Y,etc){
41 win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
44 win.document.write("<body link='#333333' bgcolor='#ffffff' text='#000000'><font size='2'><p><br>");
45 win.document.write(etc);
46 win.document.write("<center><form><input type=button onclick='self.close()' value='Close'></form></center>");
47 win.document.write("</font></body></html>");
53 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
54 <!-- TMPL_UNLESS name="existing" --><input type="hidden" name="existing" value="no"><!-- /TMPL_UNLESS -->
55 <!-- <!-- TMPL_VAR NAME="title" --> -->
56 <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->">
57 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
58 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
59 <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblio" -->">
60 <input type="hidden" name="bibitemnum" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
61 <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->">
62 <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->">
63 <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->">
64 <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->">
65 <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->">
66 <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->">
67 <!-- TMPL_LOOP NAME="loop_currencies" -->
68 <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->">
70 <a href="basket.pl?basket=<!-- TMPL_VAR NAME="basket" -->" class="button acquisition">View Basket</a>
71 <h1 class="acquisition">
72 <!-- TMPL_IF name="ordnum" -->
73 Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)
77 <!-- TMPL_IF name="suggestionid" -->(defined from suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
79 Shopping Basket For <!-- TMPL_VAR NAME="name" -->
81 <h2 class="acquisition">catalogue details</h2>
83 <label class="label100"><b>Title *</b></label>
84 <input type="text" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->">
87 <label class="label100">Author</label>
88 <input type="text" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->" >
91 <label class="label100"> Publisher</label>
92 <input type="text" size="30" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" >
95 <label class="label100">Copyright Date</label>
96 <input type="text" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->">
99 <label class="label100">Format</label>
100 <!-- TMPL_VAR NAME="CGIitemtype" -->
103 <label class="label100">ISBN</label>
104 <input type="text" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->">
107 <label class="label100">Series</label>
108 <input type="text" size="20" name="Series" value="<!-- TMPL_VAR NAME="seriestitle" -->">
111 <label class="label100">Branch</label>
112 <!-- TMPL_VAR NAME="CGIbranch" -->
116 <h2 class="acquisition">Accounting details</h2>
118 <label class="label100">Quantity</label>
119 <input type="text" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);">
122 <label class="label100">Bookfund</label>
123 <!-- TMPL_VAR NAME="CGIbookfund" -->
126 <label class="label100">Suppliers List Price</label>
127 <input type="text" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)">
130 <label class="label100">Replacement Cost </label>
131 <input type="text" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" onchange="update(this.form)">
134 <label class="label100">Budgeted Cost</label>
135 <input type="text" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" onchange="update(this.form)">
138 <label class="label100">Budgeted GST</label>
139 <input type="text" size="20" name="GST" value="" onchange="update(this.form)">
142 <label class="label100"><b>BUDGETED TOTAL</b></label>
143 <input type="text" size="20" name="total" value="" onchange="update(this.form)">
146 <label class="label100">Actual Cost</label>
147 <input type="text" size="20" name="cost">
150 <label class="label100">Invoice Number *</label>
151 <input type="text" size="20" name="invoice" >
153 <label class="label100">Notes</label>
154 <input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->">
156 <p>The 2 following fields are available for your own usage. They can be useful for stat purposes</p>
158 <label class="label100">Sort field 1</label>
159 <input type="text" size="20" name=sort1 value="<!-- TMPL_VAR NAME="sort1" -->">
162 <label class="label100">Sort field 2</label>
163 <input type="text" size="20" name=sort2 value="<!-- TMPL_VAR NAME="sort2" -->">
166 <input type="submit" value="OK" class="button acquisition">
171 <!-- TMPL_INCLUDE name="acquisitions-bottom.inc" -->