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 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% name | html %]</a> › Receive shipment from vendor [% name | html %]</div>
16 <div class="main container-fluid">
19 <div class="col-sm-10 col-sm-push-2">
21 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
25 [% IF ( error_failed_to_create_invoice ) %]
26 <div id="error" class="dialog alert">
27 <p>An error has occurred. Invoice cannot be created.</p>
30 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a></h1>
32 [% IF duplicate_invoices %]
33 <div id="parcels_duplicate_invoice" class="dialog alert">
34 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
36 <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
38 [% FOREACH invoice IN duplicate_invoices %]
40 <td>[% invoice.invoicenumber | html %]</td>
41 <td>[% invoice.shipmentdate | $KohaDates %]</td>
42 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid | uri %]">Receive</a></td>
47 <form method="get" action="parcels.pl">
48 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
49 <input type="hidden" name="op" value="confirm" />
50 <input type="hidden" name="invoice" value="[% invoicenumber | html %]" />
51 <input type="hidden" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" />
52 <input type="hidden" name="shipmentcost" value="[% shipmentcost | html %]" />
53 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid | html %]" />
54 <input type="submit" class="button" value="Create new invoice anyway" />
61 <p> [% count | html %] shipments</p>
63 <!-- Search Results Table -->
65 <table class="small" id="parcelst">
69 <th class="title-string">Date received</th>
70 <th>Invoice number</th>
73 <th>Items expected</th>
77 <!-- Actual Search Results -->
78 [% FOREACH searchresult IN searchresults %]
81 [% searchresult.number | html %]
84 <span title="[% searchresult.datereceived | html %]">[% searchresult.datereceived | $KohaDates %]</span>
87 [% IF ( searchresult.code ) %]
88 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid | uri %]">[% searchresult.code | html %]</a>
90 <abbr title="not available">n/a</abbr>
94 [% searchresult.reccount | html %]
97 [% searchresult.bibcount | html %]
100 [% searchresult.itemcount | html %]
107 <div id="resultnumber">
108 <!-- Row of numbers corresponding to search result pages -->
109 [% IF ( displayprev ) %]
110 <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>
112 [% FOREACH number IN numbers %]
113 [% IF ( number.highlight ) %]
114 <span class="current">[% number.number | html %]</span>
116 <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>
119 [% IF ( displaynext ) %]
120 <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>
126 <div id="parcels_new_parcel">
127 <form method="get" action="parcels.pl" class="validated">
128 <fieldset class="rows">
129 <legend>Receive a new shipment</legend>
131 <label for="invoice" class="required">Vendor invoice:</label>
132 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
133 <input type="hidden" name="op" value="new" />
134 <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
138 <label for="gst">GST:</label>
139 <input type="text" size="20" id="gst" name="gst" />
142 <!-- // Removing freight input until shipping can be proplerly handled .
144 <label for="freight">Shipping:</label>
145 <input type="text" size="20" id="freight" name="freight" />
148 <label for="shipmentdate">Shipment date: </label>
149 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | $KohaDates %]" class="datepicker" />
150 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
153 <label for="shipmentcost">Shipping cost: </label>
154 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
157 <label for="shipmentcost_budgetid">Shipping fund: </label>
158 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
159 <option value="">No fund</option>
160 [% FOREACH budget IN budgets %]
161 [% IF ( budget.b_active ) %]
162 <option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option>
164 <option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option>
168 <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label>
169 <input type="checkbox" id="showallfunds" />
174 <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>
178 </div> <!-- /.col-sm-10.col-sm-push-2 -->
181 <div class="col-sm-2 col-sm-pull-10">
183 <form method="get" action="parcels.pl">
184 <fieldset class="brief">
187 <li> <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /></li>
188 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter | html %]" id="filter" /></li>
189 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom | html %]" class="datepicker" /><br />
190 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto | html %]" class="datepicker" /></li>
191 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
192 <option value="invoicenumber">Invoice number</option>
193 <option value="shipmentdate">Shipment date</option>
194 <option value="shipmentdate desc">Shipment date reverse</option>
195 <option value="invoicenumber desc">Invoice number reverse</option>
197 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
198 <option value="20">20</option>
199 <option value="30">30</option>
200 <option value="50">50</option>
201 <option value="100">100</option>
204 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid | uri %]">Clear</a></fieldset>
208 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
210 </div> <!-- /.row -->
212 [% MACRO jsinclude BLOCK %]
213 [% Asset.js("js/acquisitions-menu.js") | $raw %]
214 [% INCLUDE 'calendar.inc' %]
215 [% INCLUDE 'datatables.inc' %]
217 $(document).ready(function() {
218 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
220 { "sType": "title-string", "aTargets" : [ "title-string" ] }
225 //keep a copy of all budgets before removing the inactives
226 var budgetId = $("#shipmentcost_budgetid");
227 var disabledBudgetsCopy = budgetId.html();
228 $('.b_inactive').remove();
230 $('#showallfunds').click(function() {
231 if ($(this).is(":checked")) {
232 budgetId.html(disabledBudgetsCopy); //Puts back all the funds
235 $('.b_inactive').remove();
242 [% INCLUDE 'intranet-bottom.inc' %]