5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › Receive shipment from vendor [% name | html %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_parcels" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
14 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
23 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
26 <a href="#" aria-current="page">
27 Receive shipment from vendor [% name | html %]
33 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
38 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
42 [% IF ( error_failed_to_create_invoice ) %]
43 <div id="error" class="dialog alert">
44 <p>An error has occurred. Invoice cannot be created.</p>
47 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a></h1>
49 [% IF duplicate_invoices %]
50 <div id="parcels_duplicate_invoice" class="dialog alert">
51 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
53 <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
55 [% FOREACH invoice IN duplicate_invoices %]
57 <td>[% invoice.invoicenumber | html %]</td>
58 <td>[% invoice.shipmentdate | $KohaDates %]</td>
59 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid | uri %]">Receive</a></td>
64 <form method="get" action="parcels.pl">
65 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
66 <input type="hidden" name="op" value="confirm" />
67 <input type="hidden" name="invoice" value="[% invoicenumber | html %]" />
68 <input type="hidden" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" />
69 <input type="hidden" name="shipmentcost" value="[% shipmentcost | html %]" />
70 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid | html %]" />
71 <input type="submit" class="button" value="Create new invoice anyway" />
78 <p> [% count | html %] shipments</p>
80 <!-- Search Results Table -->
82 <table class="small" id="parcelst">
86 <th>Date received</th>
87 <th>Invoice number</th>
90 <th>Items expected</th>
94 <!-- Actual Search Results -->
95 [% FOREACH searchresult IN searchresults %]
98 [% searchresult.number | html %]
100 <td data-order="[% searchresult.datereceived | html %]">
101 [% searchresult.datereceived | $KohaDates %]
104 [% IF ( searchresult.code ) %]
105 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid | uri %]">[% searchresult.code | html %]</a>
107 <abbr title="not available">n/a</abbr>
111 [% searchresult.reccount | html %]
114 [% searchresult.bibcount | html %]
117 [% searchresult.itemcount | html %]
124 <div id="resultnumber">
125 <!-- Row of numbers corresponding to search result pages -->
126 [% IF ( displayprev ) %]
127 <a href="parcels.pl?booksellerid=[% booksellerid | uri %]&startfrom=[% prevstartfrom | uri %][% IF ( datefrom ) %]&datefrom=[% datefrom | uri %][% END %][% IF ( dateto ) %]&dateto=[% dateto | uri %][% END %][% IF ( code ) %]&filter=[% code | uri %][% END %][% IF ( orderby ) %]&orderby=[% orderby | uri %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage | uri %][% END %]&type=intra"><< Previous</a>
129 [% FOREACH number IN numbers %]
130 [% IF ( number.highlight ) %]
131 <span class="current">[% number.number | html %]</span>
133 <a href="parcels.pl?booksellerid=[% booksellerid | uri %]&startfrom=[% number.startfrom | uri %][% IF ( number.datefrom ) %]&datefrom=[% number.datefrom | uri %][% END %][% IF ( number.dateto ) %]&dateto=[% number.dateto | uri %][% END %][% IF ( number.code ) %]&filter=[% number.code | uri %][% END %][% IF ( number.orderby ) %]&orderby=[% number.orderby | uri %][% END %][% IF ( number.resultsperpage ) %]&resultsperpage=[% number.resultsperpage | uri %][% END %]&type=intra">[% number.number | html %]</a>
136 [% IF ( displaynext ) %]
137 <a href="parcels.pl?booksellerid=[% booksellerid | uri %]&startfrom=[% nextstartfrom | uri %][% IF ( datefrom ) %]&datefrom=[% datefrom | uri %][% END %][% IF ( dateto ) %]&dateto=[% dateto | uri %][% END %][% IF ( code ) %]&filter=[% code | uri %][% END %][% IF ( orderby ) %]&orderby=[% orderby | uri %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage | uri %][% END %]&type=intra">Next >></a>
143 <div id="parcels_new_parcel">
144 <form method="get" action="parcels.pl" class="validated">
145 <fieldset class="rows">
146 <legend>Receive a new shipment</legend>
148 <label for="invoice" class="required">Vendor invoice:</label>
149 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
150 <input type="hidden" name="op" value="new" />
151 <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
155 <label for="gst">GST:</label>
156 <input type="text" size="20" id="gst" name="gst" />
159 <!-- // Removing freight input until shipping can be proplerly handled .
161 <label for="freight">Shipping:</label>
162 <input type="text" size="20" id="freight" name="freight" />
165 <label for="shipmentdate">Shipment date: </label>
166 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | $KohaDates %]" class="datepicker" />
167 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
170 <label for="shipmentcost">Shipping cost: </label>
171 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
174 <label for="shipmentcost_budgetid">Shipping fund: </label>
175 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
176 <option value="">No fund</option>
177 [% FOREACH budget IN budgets %]
178 [% IF ( budget.b_active ) %]
179 <option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option>
181 <option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option>
185 <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label>
186 <input type="checkbox" id="showallfunds" />
191 <fieldset class="action"><input type="submit" class="button" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">Cancel</a></fieldset>
195 </div> <!-- /.col-sm-10.col-sm-push-2 -->
198 <div class="col-sm-2 col-sm-pull-10">
200 <form method="get" action="parcels.pl">
201 <fieldset class="brief">
204 <li> <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /></li>
205 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter | html %]" id="filter" /></li>
206 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom | html %]" class="datepicker" /><br />
207 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto | html %]" class="datepicker" /></li>
208 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
209 <option value="invoicenumber">Invoice number</option>
210 <option value="shipmentdate">Shipment date</option>
211 <option value="shipmentdate desc">Shipment date reverse</option>
212 <option value="invoicenumber desc">Invoice number reverse</option>
214 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
215 <option value="20">20</option>
216 <option value="30">30</option>
217 <option value="50">50</option>
218 <option value="100">100</option>
221 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid | uri %]">Clear</a></fieldset>
225 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
227 </div> <!-- /.row -->
229 [% MACRO jsinclude BLOCK %]
230 [% Asset.js("js/acquisitions-menu.js") | $raw %]
231 [% INCLUDE 'calendar.inc' %]
232 [% INCLUDE 'datatables.inc' %]
234 $(document).ready(function() {
235 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
239 //keep a copy of all budgets before removing the inactives
240 var budgetId = $("#shipmentcost_budgetid");
241 var disabledBudgetsCopy = budgetId.html();
242 $('.b_inactive').remove();
244 $('#showallfunds').click(function() {
245 if ($(this).is(":checked")) {
246 budgetId.html(disabledBudgetsCopy); //Puts back all the funds
249 $('.b_inactive').remove();
256 [% INCLUDE 'intranet-bottom.inc' %]