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 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
10 $(document).ready(function() {
11 [% IF (dateformat == 'metric') %]
12 dt_add_type_uk_date();
14 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
15 "sPaginationType": "four_button"
21 <body id="acq_parcels" class="acq">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'acquisitions-search.inc' %]
25 <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>
27 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
33 [% IF ( error_failed_to_create_invoice ) %]
34 <div id="error" class="dialog error">
35 <p>An error has occured. Invoice cannot be created.</p>
38 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
40 [% IF duplicate_invoices %]
41 <div id="parcels_duplicate_invoice" class="dialog alert">
42 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
44 <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
46 [% FOREACH invoice IN duplicate_invoices %]
48 <td>[% invoice.invoicenumber %]</td>
49 <td>[% invoice.shipmentdate | $KohaDates %]</td>
50 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid %]">Receive</a></td>
55 <form method="get" action="parcels.pl">
56 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
57 <input type="hidden" name="op" value="confirm" />
58 <input type="hidden" name="invoice" value="[% invoicenumber %]" />
59 <input type="hidden" name="shipmentdate" value="[% shipmentdate %]" />
60 <input type="hidden" name="shipmentcost" value="[% shipmentcost %]" />
61 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid %]" />
62 <input type="submit" class="button" value="Create new invoice anyway" />
69 <p> [% count %] shipments</p>
71 <!-- Search Results Table -->
73 <table class="small" id="parcelst">
77 <th>Date received</th>
78 <th>Invoice number</th>
81 <th>Items expected</th>
85 <!-- Actual Search Results -->
86 [% FOREACH searchresult IN searchresults %]
87 [% UNLESS ( loop.odd ) %]
88 <tr class="highlight">
93 [% searchresult.number %]
96 [% searchresult.datereceived %]
99 [% IF ( searchresult.code ) %]
100 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code %]</a>
102 <acronym title="not available">n/a</acronym>
106 [% searchresult.reccount %]
109 [% searchresult.bibcount %]
112 [% searchresult.itemcount %]
119 <div id="resultnumber">
120 <!-- Row of numbers corresponding to search result pages -->
121 [% IF ( displayprev ) %]
122 <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>
124 [% FOREACH number IN numbers %]
125 [% IF ( number.highlight ) %]
126 <span class="current">[% number.number %]</span>
128 <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>
131 [% IF ( displaynext ) %]
132 <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>
138 <div id="parcels_new_parcel">
139 <form method="get" action="parcels.pl">
140 <fieldset class="rows">
141 <legend>Receive a new shipment</legend>
143 <label for="invoice">Vendor invoice </label>
144 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
145 <input type="hidden" name="op" value="new" />
146 <input type="text" size="20" id="invoice" name="invoice" class="focus" />
150 <label for="gst">GST:</label>
151 <input type="text" size="20" id="gst" name="gst" />
154 <!-- // Removing freight input until shipping can be proplerly handled .
156 <label for="freight">Shipping:</label>
157 <input type="text" size="20" id="freight" name="freight" />
160 <label for="shipmentdate">Shipment date: </label>
161 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today %]" class="datepicker" />
162 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
165 <label for="shipmentcost">Shipment cost: </label>
166 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
169 <label for="shipmentcost_budgetid">Fund: </label>
170 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
171 <option value="">No fund</option>
172 [% FOREACH budget IN budgets %]
173 <option value="[% budget.budget_id %]">[% budget.budget_name %]</option>
179 <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>
185 [% IF ( count ) %]<form method="get" action="parcels.pl">
186 <fieldset class="brief">
189 <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
190 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
191 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br />
192 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li>
193 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
194 <option value="invoicenumber">Invoice number</option>
195 <option value="shipmentdate">Shipment date</option>
196 <option value="shipmentdate desc">Shipment date reverse</option>
197 <option value="invoicenumber desc">Invoice number reverse</option>
199 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
200 <option value="20">20</option>
201 <option value="30">30</option>
202 <option value="50">50</option>
203 <option value="100">100</option>
206 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
211 [% INCLUDE 'intranet-bottom.inc' %]