2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › Receive shipment from vendor [% name %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
8 [% INCLUDE 'datatables-strings.inc' %]
9 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
10 <script type="text/javascript">
12 $(document).ready(function() {
13 [% IF (dateformat == 'metric') %]
14 dt_add_type_uk_date();
16 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
17 "sPaginationType": "four_button"
23 <body id="acq_parcels" class="acq">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'acquisitions-search.inc' %]
27 <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>
29 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
35 [% IF ( error_failed_to_create_invoice ) %]
36 <div id="error" class="dialog error">
37 <p>An error has occured. Invoice cannot be created.</p>
40 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
42 [% IF duplicate_invoices %]
43 <div id="parcels_duplicate_invoice" class="dialog alert">
44 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
46 <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
48 [% FOREACH invoice IN duplicate_invoices %]
50 <td>[% invoice.invoicenumber %]</td>
51 <td>[% invoice.shipmentdate | $KohaDates %]</td>
52 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid %]">Receive</a></td>
57 <form method="get" action="parcels.pl">
58 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
59 <input type="hidden" name="op" value="confirm" />
60 <input type="hidden" name="invoice" value="[% invoicenumber %]" />
61 <input type="hidden" name="shipmentdate" value="[% shipmentdate %]" />
62 <input type="hidden" name="shipmentcost" value="[% shipmentcost %]" />
63 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid %]" />
64 <input type="submit" class="button" value="Create new invoice anyway" />
71 <p> [% count %] shipments</p>
73 <!-- Search Results Table -->
75 <table class="small" id="parcelst">
79 <th>Date received</th>
80 <th>Invoice number</th>
83 <th>Items expected</th>
87 <!-- Actual Search Results -->
88 [% FOREACH searchresult IN searchresults %]
89 [% UNLESS ( loop.odd ) %]
90 <tr class="highlight">
95 [% searchresult.number %]
98 [% searchresult.datereceived %]
101 [% IF ( searchresult.code ) %]
102 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code %]</a>
104 <acronym title="not available">n/a</acronym>
108 [% searchresult.reccount %]
111 [% searchresult.bibcount %]
114 [% searchresult.itemcount %]
121 <div id="resultnumber">
122 <!-- Row of numbers corresponding to search result pages -->
123 [% IF ( displayprev ) %]
124 <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>
126 [% FOREACH number IN numbers %]
127 [% IF ( number.highlight ) %]
128 <span class="current">[% number.number %]</span>
130 <a href="parcels.pl?booksellerid=[% number.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>
133 [% IF ( displaynext ) %]
134 <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>
140 <div id="parcels_new_parcel">
141 <form method="get" action="parcels.pl">
142 <fieldset class="rows">
143 <legend>Receive a new shipment</legend>
145 <label for="invoice">Vendor invoice </label>
146 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
147 <input type="hidden" name="op" value="new" />
148 <input type="text" size="20" id="invoice" name="invoice" />
152 <label for="gst">GST:</label>
153 <input type="text" size="20" id="gst" name="gst" />
156 <!-- // Removing freight input until shipping can be proplerly handled .
158 <label for="freight">Shipping:</label>
159 <input type="text" size="20" id="freight" name="freight" />
162 <label for="shipmentdate">Shipment date: </label>
163 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today %]" class="datepicker" />
164 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
167 <label for="shipmentcost">Shipment cost: </label>
168 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
171 <label for="shipmentcost_budgetid">Fund: </label>
172 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
173 <option value="">No fund</option>
174 [% FOREACH budget IN budgets %]
175 <option value="[% budget.budget_id %]">[% budget.budget_name %]</option>
181 <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>
187 [% IF ( count ) %]<form method="get" action="parcels.pl">
188 <fieldset class="brief">
191 <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
192 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
193 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br />
194 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li>
195 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
196 <option value="invoicenumber">Invoice number</option>
197 <option value="shipmentdate">Shipment date</option>
198 <option value="shipmentdate desc">Shipment date reverse</option>
199 <option value="invoicenumber desc">Invoice number reverse</option>
201 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
202 <option value="20">20</option>
203 <option value="30">30</option>
204 <option value="50">50</option>
205 <option value="100">100</option>
208 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
213 [% INCLUDE 'intranet-bottom.inc' %]