Merge remote-tracking branch 'kc/new/bug_5868' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / parcels.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Receive shipment from vendor [% name %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 </head>
6 <body>
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'acquisitions-search.inc' %]
9
10 <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; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% supplierid %]">[% name %]</a> &rsaquo; Receive shipment from vendor [% name %]</div>
11
12 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
13    
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17         
18 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% supplierid %]">[% name %]</a></h1>
19
20 [% IF ( count ) %]
21 <p> [% count %] shipments</p>
22 <div id="resultlist">
23 <!-- Search Results Table -->
24
25 <table class="small">
26         <tr>
27             <th>Line</th>
28             <th>Date Received</th>
29             <th>Invoice Number</th>
30             <th>Item Count</th>
31             <th>Biblio count</th>
32             <th>Items expected</th>
33         </tr>
34 <!-- Actual Search Results -->
35 [% FOREACH searchresult IN searchresults %]
36     [% UNLESS ( loop.odd ) %]
37     <tr class="highlight">
38     [% ELSE %]
39     <tr>
40     [% END %]
41         <td>
42             [% searchresult.number %]
43         </td>
44         <td>
45             <a href="/cgi-bin/koha/acqui/parcel.pl?type=intra&amp;supplierid=[% searchresult.supplierid |url %]&amp;datereceived=[% searchresult.raw_datereceived |url %][% IF ( searchresult.code ) %]&amp;invoice=[% searchresult.code |url %][% END %]">
46                 [% searchresult.datereceived %]</a>
47         </td>
48         <td>
49             [% IF ( searchresult.code ) %][% searchresult.code %][% ELSE %]<acronym title="not available">n/a</acronym>[% END %]
50         </td>
51         <td>
52             [% searchresult.reccount %] 
53         </td>
54         <td>
55             [% searchresult.bibcount %]
56         </td>
57         <td>
58             [% searchresult.itemcount %]
59         </td>
60     </tr>
61 [% END %]
62 </table>
63
64 <div id="resultnumber">
65 <!-- Row of numbers corresponding to search result pages -->
66 [% IF ( displayprev ) %]
67     <a href="parcels.pl?supplierid=[% supplierid %]&amp;startfrom=[% prevstartfrom %][% IF ( datefrom ) %]&amp;datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&amp;dateto=[% dateto %][% END %][% IF ( code ) %]&amp;filter=[% code %][% END %][% IF ( orderby ) %]&amp;orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&amp;resultsperpage=[% resultsperpage %][% END %]&amp;type=intra">&lt;&lt; Previous</a>
68 [% END %]
69 [% FOREACH number IN numbers %]
70     [% IF ( number.highlight ) %]
71     <span class="current">[% number.number %]</span>
72     [% ELSE %]
73     <a href="parcels.pl?supplierid=[% number.supplierid %]&amp;startfrom=[% number.startfrom %][% IF ( number.datefrom ) %]&amp;datefrom=[% number.datefrom %][% END %][% IF ( number.dateto ) %]&amp;dateto=[% number.dateto %][% END %][% IF ( number.code ) %]&amp;filter=[% number.code %][% END %][% IF ( number.orderby ) %]&amp;orderby=[% number.orderby %][% END %][% IF ( number.resultsperpage ) %]&amp;resultsperpage=[% number.resultsperpage %][% END %]&amp;type=intra">[% number.number %]</a>
74     [% END %]
75 [% END %]
76 [% IF ( displaynext ) %]
77     <a href="parcels.pl?supplierid=[% supplierid %]&amp;startfrom=[% nextstartfrom %][% IF ( datefrom ) %]&amp;datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&amp;dateto=[% dateto %][% END %][% IF ( code ) %]&amp;filter=[% code %][% END %][% IF ( orderby ) %]&amp;orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&amp;resultsperpage=[% resultsperpage %][% END %]&amp;type=intra">Next &gt;&gt;</a>
78 [% END %]
79 </div>
80 </div>
81 [% END %]
82
83     <div id="parcels_new_parcel">
84         <form method="get" action="parcel.pl">
85     <fieldset class="rows">
86     <legend>Receive a new shipment</legend>
87        <ol> <li>
88             <label for="invoice">Vendor Invoice </label>
89             <input type="hidden" name="supplierid" value="[% supplierid %]" />
90             <input type="hidden" name="op" value="new" />
91                         <input type="text" size="20" id="invoice" name="invoice" />
92         </li>
93                 [% IF ( gst ) %]
94         <li>
95             <label for="gst">GST:</label>
96             <input type="text" size="20" id="gst" name="gst" />
97         </li>
98                 [% END %]
99       <!--  // Removing freight input until shipping can be proplerly handled .
100           <li>
101             <label for="freight">Shipping:</label>
102             <input type="text" size="20" id="freight" name="freight" />
103         </li> -->
104          <li><label for="datereceived">Shipment date: </label>
105             <input type="text" id="datereceived" name="datereceived"  maxlength="10" size="10"  value="[% datereceived_today %]" />
106             <img src="[% themelang %]/lib/calendar/cal.gif" id="datereceived_button" alt="Show Calendar" />
107       <script language="JavaScript" type="text/javascript">
108         Calendar.setup(
109           {
110             inputField : "datereceived",
111             ifFormat : "[% DHTMLcalendar_dateformat %]",
112             button : "datereceived_button"          }
113         );
114       </script>
115                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div> </li>
116                 </ol>
117     </fieldset>
118             <fieldset class="action"><input type="submit" class="button" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% supplierid %]">Cancel</a></fieldset>
119         </form>
120     </div>
121 </div>
122 </div>
123 <div class="yui-b">
124 [% IF ( count ) %]<form method="get" action="parcels.pl">
125     <fieldset class="brief">
126         <h4>Filter</h4>
127         <ol>
128             <li> <input type="hidden" name="supplierid" value="[% supplierid %]" /></li>
129             <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
130             <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br /> 
131                 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li>
132             <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
133                 <option value="aqorders.booksellerinvoicenumber">Invoice number</option>
134                 <option value="datereceived"> Date Received</option>
135                 <option value="datereceived desc"> Date Received reverse</option>
136                 <option value="aqorders.booksellerinvoicenumber desc"> Invoice number reverse</option>
137                 </select><br />
138                 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
139                 <option value="20">20</option>
140                 <option value="30">30</option>
141                 <option value="50">50</option>
142                 <option value="100">100</option>
143                 </select></li>
144         </ol>
145         <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?supplierid=[% supplierid %]">Clear</a></fieldset>
146         </fieldset>
147 </form>[% END %]
148 </div>
149 </div>
150 [% INCLUDE 'intranet-bottom.inc' %]