Adding link to the committed budget breakdown
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basket.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Shopping Basket (<!-- TMPL_VAR NAME="basketno" -->) for <!-- TMPL_VAR NAME="name" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_UNLESS name="closedate" -->
5 <script type="text/javascript">
6             function confirm_close() {
7                 var is_confirmed = confirm('Are you sure you want to close this basket?');
8                 if (is_confirmed) {
9                     window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=close&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplier=<!-- TMPL_VAR name="booksellerid" -->";
10                 }
11             }
12         </script>
13                 <!-- /TMPL_UNLESS -->
14 </head>
15 <body>
16 <!-- TMPL_INCLUDE NAME="header.inc" -->
17 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
18
19
20 <div id="doc3" class="yui-t2">
21    
22    <div id="bd">
23         <div id="yui-main">
24         <div class="yui-b"><div class="yui-g">
25
26     <h1><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Shopping Basket <!-- TMPL_VAR NAME="basketno" --> for <a href="supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1>
27     <div id="acqui_basket_summary">
28         <h2>Basket Details</h2>
29         <p><label>Basket number </label> <!-- TMPL_VAR NAME="basketno" -->&nbsp;</p>
30         <p><label>Managed by </label> <!-- TMPL_VAR NAME="authorisedbyname" -->&nbsp;</p>
31         <p><label>Open on </label> <!-- TMPL_VAR NAME="creationdate" -->&nbsp;</p>
32         <p><label>For </label> Supplier Id <!-- TMPL_VAR NAME="booksellerid" -->&nbsp;</p>
33         <p><label>Invoice number </label><!-- TMPL_VAR NAME="booksellerinvoicenumber" -->&nbsp;</p>
34         <!-- TMPL_IF name="closedate" --><p><label>Closed On: </label> <!-- TMPL_VAR name="closedate" --></p><!-- /TMPL_IF -->
35         <!-- TMPL_UNLESS name="closedate" -->
36         <p><a href="javascript:confirm_close()" class="button">Close this basket</a></p>
37         <!-- /TMPL_UNLESS -->
38     </div>
39     
40     <div id="acqui_basket_content">
41     <h2>Order Details</h2>
42     <!-- TMPL_IF name="books_loop" -->
43         <table>
44             <tr>
45                 <th>Order</th>
46                 <th><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->&amp;order=biblioitems.publishercode">Publisher</a></th>
47                 <th>Title</th>
48                 <th>RRP</th>
49                 <th>Est.</th>
50                 <th>Qty.</th>
51                 <th>Total</th>
52                 <th class="DoNotPrint">
53                     <a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->&amp;order=aqorderbreakdown.bookfundid,biblioitems.publishercode">Fund</a>
54                 </th>
55                 <!-- TMPL_IF name="active" -->
56                     <!-- TMPL_UNLESS name="closedate" -->
57                         <th>Modify</th>
58                         <th>Delete</th>
59                     <!-- /TMPL_UNLESS -->
60                 <!-- /TMPL_IF -->
61             </tr>
62             <!-- TMPL_LOOP NAME="books_loop" -->
63                 <!-- TMPL_IF NAME="highlight" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
64                     <td><!-- TMPL_VAR NAME="ordernumber" --></td>
65                     <td><!-- TMPL_VAR NAME="publishercode" --></td>
66                     <!-- TMPL_IF name="closedate" -->
67                         <td><p>
68                             <!-- TMPL_VAR NAME="title" --><br />
69                                 <!-- TMPL_VAR NAME="author" -->
70                                 <!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
71                                 <!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
72                             </p>
73                         </td>
74                     <!-- TMPL_ELSE -->
75                         <td>
76                             <p>
77                             <!-- TMPL_VAR NAME="title" --></p>
78                                 <p><!-- TMPL_VAR NAME="author" -->
79                                 <!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
80                                 <!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
81                             </p>
82                         </td>
83                     <!-- /TMPL_IF -->
84                     <td class="number"><!-- TMPL_VAR NAME="rrp" --></td>
85                     <td class="number"><!-- TMPL_VAR NAME="ecost" --></td>
86                     <td class="number"><!-- TMPL_VAR NAME="quantity" --></td>
87                     <td class="number"><!-- TMPL_VAR NAME="line_total" --></td>
88                     <td class="DoNotPrint"><!-- TMPL_VAR NAME="bookfundname" --></td>
89                     <!-- TMPL_IF name="active" -->
90                         <!-- TMPL_UNLESS name="closedate" -->
91                         <td>
92                             <a href="neworderempty.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a>
93                         </td>
94                         <td>
95                         <a href="addorder.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->&amp;quantity=0&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Delete</a>
96                         </td>
97                         <!-- /TMPL_UNLESS -->
98                     <!-- /TMPL_IF -->
99                 </tr>
100             <!-- /TMPL_LOOP -->
101             <tr>
102                 <td colspan="2" rowspan="3">
103                     <input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" />
104                     <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
105                 </td>
106                 <th>SubTotal</th>
107                 <th><!-- TMPL_VAR NAME="sub_total_est" --></th>
108                 <th><!-- TMPL_VAR NAME="sub_total" --></th>
109                 <th><!-- TMPL_VAR name="qty_total" --></th>
110                     <!-- TMPL_IF name="active" -->
111                         <!-- TMPL_IF name="closedate" -->
112                           <td colspan="2" rowspan="3">&nbsp;</td>
113                         <!-- TMPL_ELSE -->
114                           <td colspan="3" rowspan="3">&nbsp;</td>
115                         <!-- /TMPL_IF -->
116                     <!-- /TMPL_IF -->
117                 
118             </tr>
119             <tr>
120                 <th>GST</th>
121                 <th><!-- TMPL_VAR NAME="gist_est" --></th>
122                 <th><!-- TMPL_VAR NAME="gist" --></th>
123                 <th>&nbsp;</th>
124             </tr>
125             <tr>
126                 <th>TOTAL  (<!-- TMPL_VAR NAME="currency" -->)</th>
127                 <th><!-- TMPL_VAR NAME="grand_total_est" --></th>
128                 <th><!-- TMPL_VAR NAME="grand_total" --></th>
129                 <th>&nbsp;</th>
130             </tr>
131         </table>
132     <!-- TMPL_ELSE -->
133         <table>
134             <tr><td>Basket empty</td></tr>
135         </table>
136     <!-- /TMPL_IF -->
137     </div>
138     
139     <!-- TMPL_UNLESS name="closedate" -->
140     <div id="acqui_basket_add">
141         <h2>Add To Order</h2>
142         <form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
143             <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
144             <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
145             <ul><li><label for="q">From an existing record: </label><input id="q" type="text"  size="25"   name="q" />
146             <input type="submit" value="Search" /></li>
147             <li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">From a Suggestion</a></li>
148             <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">New Record</a></li>
149             </ul>
150         </form>
151     </div>
152     <!-- /TMPL_UNLESS -->
153
154 </div>
155 </div>
156 </div>
157
158 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
159 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->