5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Receive shipment from vendor [% name | html %] › Acquisitions › Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_parcels" class="acq">
11 [% WRAPPER 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
15 [% WRAPPER 'sub-header.inc' %]
16 [% WRAPPER breadcrumbs %]
17 [% WRAPPER breadcrumb_item %]
18 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
20 [% WRAPPER breadcrumb_item %]
21 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
23 [% WRAPPER breadcrumb_item bc_active= 1 %]
24 <span>Receive shipment from vendor [% name | html %]</span>
26 [% END #/ WRAPPER breadcrumbs %]
27 [% END #/ WRAPPER sub-header.inc %]
29 <div class="main container-fluid">
32 <div class="col-sm-10 col-sm-push-2">
34 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
37 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a></h1>
39 [% IF ( error_failed_to_create_invoice ) %]
40 <div id="error" class="dialog alert">
41 <p>An error has occurred. Invoice cannot be created.</p>
45 [% IF duplicate_invoices %]
46 <div id="parcels_duplicate_invoice" class="dialog alert">
47 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
49 <thead><tr><th>Invoice number</th><th>Shipment date</th><th></th></tr></thead>
51 [% FOREACH invoice IN duplicate_invoices %]
53 <td>[% invoice.invoicenumber | html %]</td>
54 <td>[% invoice.shipmentdate | $KohaDates %]</td>
55 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid | uri %]">Receive</a></td>
60 <form method="get" action="parcels.pl">
61 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
62 <input type="hidden" name="op" value="confirm" />
63 <input type="hidden" name="invoice" value="[% invoicenumber | html %]" />
64 <input type="hidden" name="shipmentdate" value="[% shipmentdate | $KohaDates dateformat => 'iso' %]" />
65 <input type="hidden" name="shipmentcost" value="[% shipmentcost | html %]" />
66 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid | html %]" />
67 <input type="submit" class="btn btn-primary" value="Create new invoice anyway" />
74 <p> [% count | html %] shipments</p>
75 <div id="resultlist" class="page-section">
76 <!-- Search Results Table -->
78 <table class="small" id="parcelst">
82 <th>Date received</th>
83 <th>Invoice number</th>
86 <th>Items expected</th>
90 <!-- Actual Search Results -->
91 [% FOREACH searchresult IN searchresults %]
94 [% searchresult.number | html %]
96 <td data-order="[% searchresult.datereceived | html %]">
97 [% searchresult.datereceived | $KohaDates %]
100 [% IF ( searchresult.code ) %]
101 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid | uri %]">[% searchresult.code | html %]</a>
103 <abbr title="not available">n/a</abbr>
107 [% searchresult.reccount | html %]
110 [% searchresult.bibcount | html %]
113 [% searchresult.itemcount | html %]
120 <div id="resultnumber">
121 <!-- Row of numbers corresponding to search result pages -->
122 [% IF ( displayprev ) %]
123 <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>
125 [% FOREACH number IN numbers %]
126 [% IF ( number.highlight ) %]
127 <span class="current">[% number.number | html %]</span>
129 <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>
132 [% IF ( displaynext ) %]
133 <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>
139 <div id="parcels_new_parcel">
140 <form method="get" action="parcels.pl" class="validated">
141 <fieldset class="rows">
142 <legend>Receive a new shipment</legend>
144 <label for="invoice" class="required">Vendor invoice:</label>
145 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
146 <input type="hidden" name="op" value="new" />
147 <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
151 <label for="gst">GST:</label>
152 <input type="text" size="20" id="gst" name="gst" />
155 <!-- // Removing freight input until shipping can be proplerly handled .
157 <label for="freight">Shipping:</label>
158 <input type="text" size="20" id="freight" name="freight" />
161 <label for="shipmentdate">Shipment date: </label>
162 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | html %]" class="flatpickr" />
163 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
166 <label for="shipmentcost">Shipping cost: </label>
167 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
170 <label for="shipmentcost_budgetid">Shipping fund: </label>
171 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
172 <option value="">No fund</option>
173 [% FOREACH budget IN budgets %]
174 [% IF ( budget.b_active ) %]
175 <option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option>
177 <option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option>
181 <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label>
182 <input type="checkbox" id="showallfunds" />
187 [% IF available_additional_fields %]
188 [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %]
190 <fieldset class="action"><input type="submit" class="btn btn-default" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">Cancel</a></fieldset>
194 </div> <!-- /.col-sm-10.col-sm-push-2 -->
197 <div class="col-sm-2 col-sm-pull-10">
199 <form method="get" action="parcels.pl">
200 <fieldset class="brief">
203 <li> <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /></li>
204 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter | html %]" id="filter" /></li>
206 <label for="datefrom">From:</label>
207 <input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom | html %]" class="flatpickr" />
208 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
211 <label for="dateto">To:</label>
212 <input type="text" size="9" id="dateto" name="dateto" value="[% dateto | html %]" class="flatpickr" />
213 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
215 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
216 <option value="invoicenumber">Invoice number</option>
217 <option value="shipmentdate">Shipment date</option>
218 <option value="shipmentdate desc">Shipment date reverse</option>
219 <option value="invoicenumber desc">Invoice number reverse</option>
221 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
222 <option value="20">20</option>
223 <option value="30">30</option>
224 <option value="50">50</option>
225 <option value="100">100</option>
228 <fieldset class="action"><input type="submit" class="btn btn-default" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid | uri %]">Clear</a></fieldset>
232 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
234 </div> <!-- /.row -->
236 [% MACRO jsinclude BLOCK %]
237 [% Asset.js("js/acquisitions-menu.js") | $raw %]
238 [% INCLUDE 'calendar.inc' %]
239 [% INCLUDE 'datatables.inc' %]
241 $(document).ready(function() {
242 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
246 //keep a copy of all budgets before removing the inactives
247 var budgetId = $("#shipmentcost_budgetid");
248 var disabledBudgetsCopy = budgetId.html();
249 $('.b_inactive').remove();
251 $('#showallfunds').click(function() {
252 if ($(this).is(":checked")) {
253 budgetId.html(disabledBudgetsCopy); //Puts back all the funds
256 $('.b_inactive').remove();
263 [% INCLUDE 'intranet-bottom.inc' %]