4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › Receive shipment from vendor [% name %]</title>
6 [% Asset.css("css/datatables.css") %]
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 %]">[% name %]</a> › Receive shipment from vendor [% name %]</div>
16 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
22 [% IF ( error_failed_to_create_invoice ) %]
23 <div id="error" class="dialog alert">
24 <p>An error has occurred. Invoice cannot be created.</p>
27 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
29 [% IF duplicate_invoices %]
30 <div id="parcels_duplicate_invoice" class="dialog alert">
31 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
33 <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
35 [% FOREACH invoice IN duplicate_invoices %]
37 <td>[% invoice.invoicenumber %]</td>
38 <td>[% invoice.shipmentdate | $KohaDates %]</td>
39 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid %]">Receive</a></td>
44 <form method="get" action="parcels.pl">
45 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
46 <input type="hidden" name="op" value="confirm" />
47 <input type="hidden" name="invoice" value="[% invoicenumber %]" />
48 <input type="hidden" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" />
49 <input type="hidden" name="shipmentcost" value="[% shipmentcost %]" />
50 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid %]" />
51 <input type="submit" class="button" value="Create new invoice anyway" />
58 <p> [% count %] shipments</p>
60 <!-- Search Results Table -->
62 <table class="small" id="parcelst">
66 <th class="title-string">Date received</th>
67 <th>Invoice number</th>
70 <th>Items expected</th>
74 <!-- Actual Search Results -->
75 [% FOREACH searchresult IN searchresults %]
78 [% searchresult.number %]
81 <span title="[% searchresult.datereceived %]">[% searchresult.datereceived | $KohaDates %]</span>
84 [% IF ( searchresult.code ) %]
85 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code |html %]</a>
87 <abbr title="not available">n/a</abbr>
91 [% searchresult.reccount %]
94 [% searchresult.bibcount %]
97 [% searchresult.itemcount %]
104 <div id="resultnumber">
105 <!-- Row of numbers corresponding to search result pages -->
106 [% IF ( displayprev ) %]
107 <a href="parcels.pl?booksellerid=[% booksellerid %]&startfrom=[% prevstartfrom %][% IF ( datefrom ) %]&datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&dateto=[% dateto %][% END %][% IF ( code ) %]&filter=[% code %][% END %][% IF ( orderby ) %]&orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]&type=intra"><< Previous</a>
109 [% FOREACH number IN numbers %]
110 [% IF ( number.highlight ) %]
111 <span class="current">[% number.number %]</span>
113 <a href="parcels.pl?booksellerid=[% booksellerid %]&startfrom=[% number.startfrom %][% IF ( number.datefrom ) %]&datefrom=[% number.datefrom %][% END %][% IF ( number.dateto ) %]&dateto=[% number.dateto %][% END %][% IF ( number.code ) %]&filter=[% number.code %][% END %][% IF ( number.orderby ) %]&orderby=[% number.orderby %][% END %][% IF ( number.resultsperpage ) %]&resultsperpage=[% number.resultsperpage %][% END %]&type=intra">[% number.number %]</a>
116 [% IF ( displaynext ) %]
117 <a href="parcels.pl?booksellerid=[% booksellerid %]&startfrom=[% nextstartfrom %][% IF ( datefrom ) %]&datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&dateto=[% dateto %][% END %][% IF ( code ) %]&filter=[% code %][% END %][% IF ( orderby ) %]&orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]&type=intra">Next >></a>
123 <div id="parcels_new_parcel">
124 <form method="get" action="parcels.pl" class="validated">
125 <fieldset class="rows">
126 <legend>Receive a new shipment</legend>
128 <label for="invoice" class="required">Vendor invoice:</label>
129 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
130 <input type="hidden" name="op" value="new" />
131 <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
135 <label for="gst">GST:</label>
136 <input type="text" size="20" id="gst" name="gst" />
139 <!-- // Removing freight input until shipping can be proplerly handled .
141 <label for="freight">Shipping:</label>
142 <input type="text" size="20" id="freight" name="freight" />
145 <label for="shipmentdate">Shipment date: </label>
146 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | $KohaDates %]" class="datepicker" />
147 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
150 <label for="shipmentcost">Shipping cost: </label>
151 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
154 <label for="shipmentcost_budgetid">Shipping fund: </label>
155 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
156 <option value="">No fund</option>
157 [% FOREACH budget IN budgets %]
158 [% IF ( budget.b_active ) %]
159 <option value="[% budget.b_id %]">[% budget.b_txt %]</option>
161 <option value="[% budget.b_id %]" class="b_inactive">[% budget.b_txt %] (inactive)</option>
165 <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label>
166 <input type="checkbox" id="showallfunds" />
171 <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>
177 [% IF ( count ) %]<form method="get" action="parcels.pl">
178 <fieldset class="brief">
181 <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
182 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
183 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" class="datepicker" /><br />
184 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" class="datepicker" /></li>
185 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
186 <option value="invoicenumber">Invoice number</option>
187 <option value="shipmentdate">Shipment date</option>
188 <option value="shipmentdate desc">Shipment date reverse</option>
189 <option value="invoicenumber desc">Invoice number reverse</option>
191 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
192 <option value="20">20</option>
193 <option value="30">30</option>
194 <option value="50">50</option>
195 <option value="100">100</option>
198 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
204 [% MACRO jsinclude BLOCK %]
205 [% Asset.js("js/acquisitions-menu.js") %]
206 [% INCLUDE 'calendar.inc' %]
207 [% INCLUDE 'datatables.inc' %]
208 <script type="text/javascript">
209 $(document).ready(function() {
210 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
212 { "sType": "title-string", "aTargets" : [ "title-string" ] }
217 //keep a copy of all budgets before removing the inactives
218 var budgetId = $("#shipmentcost_budgetid");
219 var disabledBudgetsCopy = budgetId.html();
220 $('.b_inactive').remove();
222 $('#showallfunds').click(function() {
223 if ($(this).is(":checked")) {
224 budgetId.html(disabledBudgetsCopy); //Puts back all the funds
227 $('.b_inactive').remove();
234 [% INCLUDE 'intranet-bottom.inc' %]