fixing misplaced apostrophe
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / modules / acqui / neworderempty.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Panier de commande <!-- TMPL_VAR NAME="basketno" --> &rsaquo;vérification MARC :  <!-- TMPL_IF name="ordnum" -->Modifier les détails de la commande (ligne #<!-- TMPL_VAR NAME="ordnum" -->)<!-- TMPL_ELSE -->Nouvelle commande<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 //<![CDATA[
6 function update(f){
7 //collect values
8 quantity=f.quantity.value
9 if (quantity ==0) {
10     alert("Quantity must be >0");
11 }
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
17 //  rrp=f.rrp.value
18 //  ecost=f.ecost.value  //budgetted cost
19 //  GST=f.GST.value
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);
24 //do real stuff
25 rrp=listprice*exchangerate;
26 ecost=rrp*(100-discount)/100
27 GST=0;
28 if (gst_on){
29     rrp=rrp*(1+<!-- TMPL_VAR NAME="gstrate" -->);
30     GST=ecost*(<!-- TMPL_VAR NAME="gstrate" -->);
31 }
32
33 total=(ecost+GST)*quantity
34
35 f.rrp.value=rrp;
36 f.ecost.value=ecost;
37 f.total.value=total;
38 <!-- TMPL_IF NAME="GST"-->
39 f.GST.value=GST;
40 <!-- /TMPL_IF -->
41 return true;
42 }
43
44 function messenger(X,Y,etc){
45     win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
46     win.focus();
47     win.document.close();
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>");
52 }
53
54 function check(f) {
55 quantity=f.quantity.value
56 title=f.title.value
57 if (title == "") {
58     alert("Title can't be empty");
59     return false;
60 }
61 if (quantity ==0) {
62     alert("Quantity must be >0");
63     return false;
64 }
65     document.frusin.submit();
66 }
67 //]]>
68 </script>
69 </head>
70 <body>
71 <!-- TMPL_INCLUDE NAME="header.inc" -->
72 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
73
74 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Accueil</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">Panier <!-- TMPL_VAR NAME="basketno" --></a> &rsaquo; <!-- TMPL_IF name="ordnum" -->Modifier les détails de la commande (ligne #<!-- TMPL_VAR NAME="ordnum" -->)<!-- TMPL_ELSE -->Nouvelle commande<!-- /TMPL_IF --></div>
75
76 <div id="doc3" class="yui-t2">
77    
78    <div id="bd">
79         <div id="yui-main">
80         <div class="yui-b">
81         
82 <h1>
83     <!-- TMPL_IF name="ordnum" -->
84         Modifier les détails de la commande (ligne #<!-- TMPL_VAR NAME="ordnum" -->)
85     <!-- TMPL_ELSE -->
86         Nouvelle commande
87     <!-- /TMPL_IF -->
88         <!-- TMPL_IF name="suggestionid" -->(créé à partir de la suggestion #<!-- TMPL_VAR NAME="suggestionid" -->)<!-- /TMPL_IF -->
89 </h1>
90
91 <!-- TMPL_IF name="basketno" -->
92 <div id="basket-details">Contenu du panier
93     <p>Numéro de panier : <!-- TMPL_VAR NAME="basketno" --></p>
94     <p>Géré par <!-- TMPL_VAR NAME="authorisedbyname" --></p>
95     <p>Ouvert le <!-- TMPL_VAR NAME="creationdate" --></p>
96     <p>Pour le fournisseur <!-- TMPL_VAR NAME="booksellerid" --></p>
97     <p>Facture numéro : <!-- TMPL_VAR NAME="booksellerinvoicenumber" --></p>
98     <!-- TMPL_IF name="closedate" --><p>Fermé le : <!-- TMPL_VAR name="closedate" --></p><!-- /TMPL_IF -->
99 </div>
100 <!-- /TMPL_IF -->
101
102 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
103     <fieldset class="rows">
104         <legend>Détails du catalogue</legend>
105         <!-- TMPL_UNLESS name="existing" -->
106                 <input type="hidden" name="existing" value="no" />
107         <!-- /TMPL_UNLESS -->
108         <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->" />
109         <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
110         <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
111         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
112         <input type="hidden" name="biblioitemnumber" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
113         <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->" />
114         <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" />
115         <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->" />
116         <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->" />
117         <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->" />
118         <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->" />
119         <!-- TMPL_LOOP NAME="loop_currencies" -->
120             <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->" />
121         <!-- /TMPL_LOOP -->
122         <ol><li>
123             <!-- TMPL_IF name="biblio" -->
124                         <span class="label">Titre</span>
125                 <input type="hidden" size="20" id="title" name="title" value="<!-- TMPL_VAR NAME="title" -->" /><!-- TMPL_VAR NAME="title" -->
126             <!-- TMPL_ELSE -->
127             <label for="title" class="required">Titre</label>
128                 <input type="text" id="title" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
129             <!-- /TMPL_IF -->
130         </li>
131         <li>
132             <!-- TMPL_IF name="biblio" -->
133                         <span class="label">Auteur</label>
134                 <input type="hidden" size="20" name="author" id="author" value="<!-- TMPL_VAR NAME="author" -->" /><!-- TMPL_VAR NAME="author" -->
135             <!-- TMPL_ELSE -->
136             <label for="author">Auteur</label>
137                 <input type="text" id="author" size="20" name="author" id="author" value="<!-- TMPL_VAR NAME="author" -->" />
138             <!-- /TMPL_IF -->
139         </li>
140         <li>
141             <!-- TMPL_IF name="biblio" -->
142                         <span class="label">Editeur</label>
143                 <input type="hidden" size="20" name="publishercode" id="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" /><!-- TMPL_VAR NAME="publishercode" -->
144             <!-- TMPL_ELSE -->
145             <label for="publishercode"> Editeur</label>
146                 <input type="text" id="publishercode" size="20" name="publishercode" id="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->" />
147             <!-- /TMPL_IF -->
148         </li>
149         <li>
150             <!-- TMPL_IF name="biblio" -->
151                         <lspan class="label">Date de copyright</label>
152                 <input type="hidden" size="20" name="copyrightdate" id="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->" /><!-- TMPL_VAR NAME="copyrightdate" -->
153             <!-- TMPL_ELSE -->
154             <label for="copyrightdate">Date de copyright</label>
155                 <input type="text" id="copyrightdate" size="20" name="copyrightdate" id="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->" />
156             <!-- /TMPL_IF -->
157         </li>
158         <li>
159             <label for="format">Format</label>
160             <!-- TMPL_VAR NAME="CGIitemtype" -->
161         </li>
162         <li>
163             <!-- TMPL_IF name="biblio" -->
164                         <span class="label">ISBN</label>
165                 <input type="hidden" size="20" name="ISBN" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /><!-- TMPL_VAR NAME="isbn" -->
166             <!-- TMPL_ELSE -->
167             <label for="ISBN">ISBN</label>
168                 <input type="text" id="ISBN" size="20" name="ISBN" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" />
169             <!-- /TMPL_IF -->
170         </li>
171         <li>
172             <!-- TMPL_IF name="biblio" -->
173                         <span class="label">Collections</label>
174                 <input type="hidden" size="20" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /><!-- TMPL_VAR NAME="seriestitle" -->
175             <!-- TMPL_ELSE -->
176             <label for="series">Collections</label>
177                 <input type="text" id="series" size="20" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" />
178             <!-- /TMPL_IF -->
179         </li>
180         <li>
181             <label for="branch">Site</label>
182             <select name="branch" id="branch">
183             <!-- TMPL_LOOP name="branchloop" -->
184                 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
185                                 <!-- TMPL_ELSE -->
186                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
187                                 <!-- /TMPL_IF -->
188             <!-- /TMPL_LOOP -->
189             </select>
190         </li>
191     </fieldset>
192     <fieldset class="rows">
193         <legend>Détails de comptabilité</legend>
194             <li>
195                 <!-- TMPL_IF name="close" -->
196                         <span class="label">Quantité</label>
197                     <input type="hidden" size="20" id="quantity" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" /><!-- TMPL_VAR NAME="quantity" -->
198                 <!-- TMPL_ELSE -->
199                 <label for="quantity">Quantité</label>
200                     <input type="text" id="quantity" size="20" id="quantity" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);" />
201                 <!--/TMPL_IF-->
202             </li>
203             <li>
204                 <!-- TMPL_IF name="close" -->
205                         <span class="label">Ligne de crédit</label>
206                     <input type="hidden" size="20" name="bookfund" id="bookfund" value="<!-- TMPL_VAR NAME="bookfundid" -->" /><!-- TMPL_VAR NAME="bookfundname" -->
207                 <!-- TMPL_ELSE -->
208                 <label for="bookfund">Ligne de crédit</label>
209                     <!-- TMPL_VAR NAME="CGIbookfund" -->
210                 <!--/TMPL_IF-->
211             </li>
212             <li>
213                 <!-- TMPL_IF name="close" -->
214                         <span class="label">Prix fournisseur</label>
215                     <input type="hidden" size="20" name="list_price" id="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" /><!-- TMPL_VAR NAME="listprice" -->
216                 <!-- TMPL_ELSE -->
217                 <label for="list_price">Prix fournisseur</label>
218                     <input type="text" id="list_price" size="20" name="list_price" id="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)" />
219                 <!--/TMPL_IF-->
220             </li>
221             <li>
222                 <!-- TMPL_IF name="close" -->
223                         <span class="label">Coût de remplacement</label>
224                     <input type="hidden" size="20" name="rrp" id="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" /><!-- TMPL_VAR NAME="rrp" -->
225                 <!-- TMPL_ELSE -->
226                 <label for="rrp">Coût de remplacement </label>
227                     <input type="text" id="rrp" size="20" name="rrp" id="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" />
228                 <!--/TMPL_IF-->
229             </li>
230             <li>
231                 <!-- TMPL_IF name="close" -->
232                         <label for="ecost">Coût budgété</label>
233                     <input type="text" size="20" name="ecost" id="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" readonly="readonly"  />
234                 <!-- TMPL_ELSE -->
235                 <label for="ecost">Coût budgété</label>
236                     <input type="text" id="ecost" size="20" name="ecost" id="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" />
237                 <!--/TMPL_IF-->
238             </li>
239             <!-- TMPL_IF NAME="GST"-->
240             <li>
241                                 <!-- TMPL_IF name="close" -->
242                         <label for="GST">TVA budgetée</label>
243                 <input type="text" id="" size="20" name="GST" value="" id="GST" readonly="readonly" />
244                                 <!-- TMPL_ELSE -->
245                 <label for="GST">TVA budgetée</label>
246                 <input type="text" id="GST" size="20" name="GST" id="GST" value="" />
247                                 <!--/TMPL_IF-->
248             </li>
249             <!-- /TMPL_IF -->
250             <li>
251                 <!-- TMPL_IF name="close" -->
252                         <label for="total">Total</label>
253                                 <input type="text" id="total" size="20" name="total" value="<!-- TMPL_VAR name="total" -->" readonly="readonly" />
254                                 <!-- TMPL_ELSE -->
255                 <label for="total"><label for="">Total</label></label>
256                 <input type="text" id="total" size="20" name="total" value="<!-- TMPL_VAR name="total" -->" />
257                                 <!--/TMPL_IF-->
258             </li>
259             <li>
260                                 <!-- TMPL_IF name="close" -->
261                         <label for="cost">Coût réel</label>
262                 <input type="text" id="cost" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->" readonly="readonly" />
263                                 <!-- TMPL_ELSE -->
264                 <label for="cost">Coût réel</label>
265                 <input type="text" id="cost" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->" />
266                                 <!--/TMPL_IF-->
267             </li>
268             <li>
269                 <label for="invoice">Numéro de facture</label>
270                 <input type="text" id="invoice" size="20" name="invoice"  value="<!-- TMPL_VAR name="invoice" -->" /> (habituellement vide)
271             </li>
272             <li>
273                 <label for="notes">Notes</label>
274                 <input type="text" id="notes" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->" />
275             </li>
276             <li>Les deux champs suivants sont disponibles pour votre usage propre. Ils peuvent servir à des usages statistiques.
277                 <!-- TMPL_IF Name="CGIsort1" -->
278                     <!-- TMPL_VAR Name="CGIsort1" -->
279                 <!-- TMPL_ELSE -->
280                 <label for="sort1">Champ de tri 1</label>
281                     <input type="text" id="sort1" size="20" name="sort1" value="<!-- TMPL_VAR NAME="sort1" -->" />
282                 <!--/TMPL_IF -->
283             </li>
284             <li>
285                 <!-- TMPL_IF Name="CGIsort2" -->
286                     <!-- TMPL_VAR Name="CGIsort2" -->
287                 <!-- TMPL_ELSE -->
288                 <label for="sort2">Champ de tri 2</label>
289                     <input type="text" id="sort2" size="20" name="sort2" value="<!-- TMPL_VAR NAME="sort2" -->" />
290                 <!--/TMPL_IF -->
291             </li></ol>
292     </fieldset>
293     <p>
294         <input type="button" value="OK" onclick="check(this.form)" />
295     </p>
296 </form>
297 </div>
298 </div>
299 <div class="yui-b">
300 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
301 </div>
302 </div>
303 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->