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;
55 title=f.quantity.value;
57 alert("Title can't be empty");
61 alert("Quantity must be >0");
64 document.frusin.submit();
71 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
72 <!-- TMPL_UNLESS name="existing" --><input type="hidden" name="existing" value="no"><!-- /TMPL_UNLESS -->
73 <!-- <!-- TMPL_VAR NAME="title" --> -->
74 <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->">
75 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
76 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
77 <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblio" -->">
78 <input type="hidden" name="bibitemnum" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
79 <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->">
80 <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->">
81 <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->">
82 <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->">
83 <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->">
84 <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->">
85 <!-- TMPL_LOOP NAME="loop_currencies" -->
86 <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->">
88 <a href="basket.pl?basket=<!-- TMPL_VAR NAME="basket" -->" class="button acquisition">View Basket</a>
89 <h1 class="acquisition">
90 <!-- TMPL_IF name="ordnum" -->
91 Modify order details (line #<!-- TMPL_VAR NAME="ordnum" -->)
95 <!-- TMPL_IF name="suggestionid" -->(defined from suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
97 Shopping Basket For <!-- TMPL_VAR NAME="name" -->
99 <h2 class="acquisition">catalogue details</h2>
101 <label class="label100"><b>Title *</b></label>
102 <!-- TMPL_IF name="biblio" -->
103 <input type="hidden" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->"><!-- TMPL_VAR NAME="title" -->
105 <input type="text" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->">
109 <label class="label100">Author</label>
110 <!-- TMPL_IF name="biblio" -->
111 <input type="hidden" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->"><!-- TMPL_VAR NAME="author" -->
113 <input type="text" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->">
117 <label class="label100"> Publisher</label>
118 <!-- TMPL_IF name="biblio" -->
119 <input type="hidden" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->"><!-- TMPL_VAR NAME="publishercode" -->
121 <input type="text" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->">
125 <label class="label100">Copyright Date</label>
126 <!-- TMPL_IF name="biblio" -->
127 <input type="hidden" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->"><!-- TMPL_VAR NAME="copyrightdate" -->
129 <input type="text" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->">
133 <label class="label100">Format</label>
134 <!-- TMPL_VAR NAME="CGIitemtype" -->
137 <label class="label100">ISBN</label>
138 <!-- TMPL_IF name="biblio" -->
139 <input type="hidden" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->"><!-- TMPL_VAR NAME="isbn" -->
141 <input type="text" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->">
145 <label class="label100">Series</label>
146 <!-- TMPL_IF name="biblio" -->
147 <input type="hidden" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->"><!-- TMPL_VAR NAME="seriestitle" -->
149 <input type="text" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->">
153 <label class="label100">Branch</label>
154 <!-- TMPL_VAR NAME="CGIbranch" -->
158 <h2 class="acquisition">Accounting details</h2>
160 <label class="label100">Quantity</label>
161 <input type="text" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);">
164 <label class="label100">Bookfund</label>
165 <!-- TMPL_VAR NAME="CGIbookfund" -->
168 <label class="label100">Suppliers List Price</label>
169 <input type="text" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)">
172 <label class="label100">Replacement Cost </label>
173 <input type="text" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" onchange="update(this.form)">
176 <label class="label100">Budgeted Cost</label>
177 <input type="text" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" onchange="update(this.form)">
180 <label class="label100">Budgeted GST</label>
181 <input type="text" size="20" name="GST" value="" onchange="update(this.form)">
184 <label class="label100"><b>BUDGETED TOTAL</b></label>
185 <input type="text" size="20" name="total" value="" onchange="update(this.form)">
188 <label class="label100">Actual Cost</label>
189 <input type="text" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->">
192 <label class="label100">Invoice Number *</label>
193 <input type="text" size="20" name="invoice" value="<!-- TMPL_VAR name="invoice" -->">
195 <label class="label100">Notes</label>
196 <input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->">
198 <p>The 2 following fields are available for your own usage. They can be useful for stat purposes</p>
200 <label class="label100">Sort field 1</label>
201 <input type="text" size="20" name=sort1 value="<!-- TMPL_VAR NAME="sort1" -->">
204 <label class="label100">Sort field 2</label>
205 <input type="text" size="20" name=sort2 value="<!-- TMPL_VAR NAME="sort2" -->">
208 <input type="button" value="OK" class="button acquisition" onClick="check(this.form)">
213 <!-- TMPL_INCLUDE name="acquisitions-bottom.inc" -->