1 <!-- TMPL_INCLUDE name="acquisitions-top.inc" -->
2 <script language="javascript" type="text/javascript">
7 quantity=f.quantity.value
9 alert("Quantity must be >0");
11 discount=f.discount.value
12 listinc=parseInt(f.listinc.value)
13 currency=f.currency.value
14 applygst=parseInt(f.applygst.value)
15 listprice=f.list_price.value
17 // ecost=f.ecost.value //budgetted cost
19 // total=f.total.value
20 //make useful constants out of the above
21 exchangerate=f.elements[currency].value //get exchange rate
22 gst_on=(!listinc && applygst);
24 rrp=listprice*exchangerate;
25 ecost=rrp*(100-discount)/100
28 rrp=rrp*(1+<!-- TMPL_VAR NAME="gstrate" -->);
29 GST=ecost*(<!-- TMPL_VAR NAME="gstrate" -->);
32 total=(ecost+GST)*quantity
43 function messenger(X,Y,etc){
44 win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
47 win.document.write("<body link='#333333' bgcolor='#ffffff' text='#000000'><font size='2'><p><br>");
48 win.document.write(etc);
49 win.document.write("<center><form><input type=button onclick='self.close()' value='Close'></form></center>");
50 win.document.write("</font></body></html>");
54 quantity=f.quantity.value
56 alert("Title can't be empty");
60 alert("Quantity must be >0");
63 document.frusin.submit();
70 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
71 <!-- TMPL_UNLESS name="existing" --><input type="hidden" name="existing" value="no"><!-- /TMPL_UNLESS -->
72 <!-- <!-- TMPL_VAR NAME="title" --> -->
73 <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->">
74 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
75 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
76 <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblio" -->">
77 <input type="hidden" name="bibitemnum" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
78 <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->">
79 <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->">
80 <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->">
81 <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->">
82 <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->">
83 <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->">
84 <!-- TMPL_LOOP NAME="loop_currencies" -->
85 <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->">
87 <a href="basket.pl?basket=<!-- TMPL_VAR NAME="basket" -->" class="button acquisition">View Basket</a>
88 <h1 class="acquisition">
89 <!-- TMPL_IF name="ordnum" -->
90 Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)
94 <!-- TMPL_IF name="suggestionid" -->(defined from suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
96 Shopping Basket For <!-- TMPL_VAR NAME="name" -->
98 <h2 class="acquisition">catalogue details</h2>
100 <label class="label100"><b>Title *</b></label>
101 <!-- TMPL_IF name="biblio" -->
102 <input type="hidden" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->"><!-- TMPL_VAR NAME="title" -->
104 <input type="text" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->">
108 <label class="label100">Author</label>
109 <!-- TMPL_IF name="biblio" -->
110 <input type="hidden" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->"><!-- TMPL_VAR NAME="author" -->
112 <input type="text" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->">
116 <label class="label100"> Publisher</label>
117 <!-- TMPL_IF name="biblio" -->
118 <input type="hidden" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->"><!-- TMPL_VAR NAME="publishercode" -->
120 <input type="text" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->">
124 <label class="label100">Copyright Date</label>
125 <!-- TMPL_IF name="biblio" -->
126 <input type="hidden" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->"><!-- TMPL_VAR NAME="copyrightdate" -->
128 <input type="text" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->">
132 <label class="label100">Format</label>
133 <!-- TMPL_VAR NAME="CGIitemtype" -->
136 <label class="label100">ISBN</label>
137 <!-- TMPL_IF name="biblio" -->
138 <input type="hidden" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->"><!-- TMPL_VAR NAME="isbn" -->
140 <input type="text" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->">
144 <label class="label100">Series</label>
145 <!-- TMPL_IF name="biblio" -->
146 <input type="hidden" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->"><!-- TMPL_VAR NAME="seriestitle" -->
148 <input type="text" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->">
152 <label class="label100">Branch</label>
153 <!-- TMPL_VAR NAME="CGIbranch" -->
157 <h2 class="acquisition">Accounting details</h2>
159 <label class="label100">Quantity</label>
160 <input type="text" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);">
163 <label class="label100">Bookfund</label>
164 <!-- TMPL_VAR NAME="CGIbookfund" -->
167 <label class="label100">Suppliers List Price</label>
168 <input type="text" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)">
171 <label class="label100">Replacement Cost </label>
172 <input type="text" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" onchange="update(this.form)">
175 <label class="label100">Budgeted Cost</label>
176 <input type="text" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" onchange="update(this.form)">
179 <label class="label100">Budgeted GST</label>
180 <input type="text" size="20" name="GST" value="" onchange="update(this.form)">
183 <label class="label100"><b>BUDGETED TOTAL</b></label>
184 <input type="text" size="20" name="total" value="" onchange="update(this.form)">
187 <label class="label100">Actual Cost</label>
188 <input type="text" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->">
191 <label class="label100">Invoice Number *</label>
192 <input type="text" size="20" name="invoice" value="<!-- TMPL_VAR name="invoice" -->">
194 <label class="label100">Notes</label>
195 <input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->">
197 <p>The 2 following fields are available for your own usage. They can be useful for stat purposes</p>
199 <label class="label100">Sort field 1</label>
200 <input type="text" size="20" name=sort1 value="<!-- TMPL_VAR NAME="sort1" -->">
203 <label class="label100">Sort field 2</label>
204 <input type="text" size="20" name=sort2 value="<!-- TMPL_VAR NAME="sort2" -->">
207 <input type="button" value="OK" class="button acquisition" onClick="check(this.form)">
212 <!-- TMPL_INCLUDE name="acquisitions-bottom.inc" -->