Merge remote-tracking branch 'origin/new/bug_7621'
[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 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11  $(document).ready(function() {
12     var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
13         "sPaginationType": "four_button"
14     } ) );
15  });
16  //]]>
17 </script>
18 </head>
19 <body id="acq_parcels" class="acq">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'acquisitions-search.inc' %]
22
23 <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?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; Receive shipment from vendor [% name %]</div>
24
25 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
26    
27    <div id="bd">
28         <div id="yui-main">
29         <div class="yui-b">
30
31 [% IF ( error_failed_to_create_invoice ) %]
32     <div id="error" class="dialog error">
33         <p>An error has occured. Invoice cannot be created.</p>
34     </div>
35 [% END %]
36 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
37
38 [% IF ( count ) %]
39 <p> [% count %] shipments</p>
40 <div id="resultlist">
41 <!-- Search Results Table -->
42
43 <table class="small" id="parcelst">
44     <thead>
45         <tr>
46             <th>Line</th>
47             <th>Date received</th>
48             <th>Invoice number</th>
49             <th>Item count</th>
50             <th>Biblio count</th>
51             <th>Items expected</th>
52         </tr>
53     </thead>
54     <tbody>
55     <!-- Actual Search Results -->
56     [% FOREACH searchresult IN searchresults %]
57         [% UNLESS ( loop.odd ) %]
58         <tr class="highlight">
59         [% ELSE %]
60         <tr>
61         [% END %]
62             <td>
63                 [% searchresult.number %]
64             </td>
65             <td>
66                 [% searchresult.datereceived %]
67             </td>
68             <td>
69                 [% IF ( searchresult.code ) %]
70                     <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code %]</a>
71                 [% ELSE %]
72                     <acronym title="not available">n/a</acronym>
73                 [% END %]
74             </td>
75             <td>
76                 [% searchresult.reccount %]
77             </td>
78             <td>
79                 [% searchresult.bibcount %]
80             </td>
81             <td>
82                 [% searchresult.itemcount %]
83             </td>
84         </tr>
85     [% END %]
86     </tbody>
87 </table>
88
89 <div id="resultnumber">
90 <!-- Row of numbers corresponding to search result pages -->
91 [% IF ( displayprev ) %]
92     <a href="parcels.pl?booksellerid=[% booksellerid %]&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>
93 [% END %]
94 [% FOREACH number IN numbers %]
95     [% IF ( number.highlight ) %]
96     <span class="current">[% number.number %]</span>
97     [% ELSE %]
98     <a href="parcels.pl?booksellerid=[% number.booksellerid %]&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>
99     [% END %]
100 [% END %]
101 [% IF ( displaynext ) %]
102     <a href="parcels.pl?booksellerid=[% booksellerid %]&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>
103 [% END %]
104 </div>
105 </div>
106 [% END %]
107
108     <div id="parcels_new_parcel">
109         <form method="get" action="parcels.pl">
110     <fieldset class="rows">
111     <legend>Receive a new shipment</legend>
112        <ol> <li>
113             <label for="invoice">Vendor invoice </label>
114             <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
115             <input type="hidden" name="op" value="new" />
116                         <input type="text" size="20" id="invoice" name="invoice" />
117         </li>
118                 [% IF ( gst ) %]
119         <li>
120             <label for="gst">GST:</label>
121             <input type="text" size="20" id="gst" name="gst" />
122         </li>
123                 [% END %]
124       <!--  // Removing freight input until shipping can be proplerly handled .
125           <li>
126             <label for="freight">Shipping:</label>
127             <input type="text" size="20" id="freight" name="freight" />
128         </li> -->
129          <li>
130             <label for="shipmentdate">Shipment date: </label>
131             <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today %]" class="datepicker" />
132             <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
133         </li>
134         <li>
135             <label for="shipmentcost">Shipment cost: </label>
136             <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
137         </li>
138         <li>
139             <label for="shipmentcost_budgetid">Budget: </label>
140             <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
141                 <option value="">No budget</option>
142                 [% FOREACH budget IN budgets %]
143                     <option value="[% budget.budget_id %]">[% budget.budget_name %]</option>
144                 [% END %]
145             </select>
146         </li>
147                 </ol>
148     </fieldset>
149             <fieldset class="action"><input type="submit" class="button" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a></fieldset>
150         </form>
151     </div>
152 </div>
153 </div>
154 <div class="yui-b">
155 [% IF ( count ) %]<form method="get" action="parcels.pl">
156     <fieldset class="brief">
157         <h4>Filter</h4>
158         <ol>
159             <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
160             <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
161             <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br /> 
162                 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li>
163             <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
164                 <option value="invoicenumber">Invoice number</option>
165                 <option value="shipmentdate">Shipment date</option>
166                 <option value="shipmentdate desc">Shipment date reverse</option>
167                 <option value="invoicenumber desc">Invoice number reverse</option>
168                 </select><br />
169                 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
170                 <option value="20">20</option>
171                 <option value="30">30</option>
172                 <option value="50">50</option>
173                 <option value="100">100</option>
174                 </select></li>
175         </ol>
176         <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
177         </fieldset>
178 </form>[% END %]
179 </div>
180 </div>
181 [% INCLUDE 'intranet-bottom.inc' %]