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