1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › Receive shipment from vendor [% name %]</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
11 $(document).ready(function() {
12 [% IF (dateformat == 'metric') %]
13 dt_add_type_uk_date();
15 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
16 "sPaginationType": "four_button"
22 <body id="acq_parcels" class="acq">
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'acquisitions-search.inc' %]
26 <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>
28 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
34 [% IF ( error_failed_to_create_invoice ) %]
35 <div id="error" class="dialog error">
36 <p>An error has occured. Invoice cannot be created.</p>
39 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
42 <p> [% count %] shipments</p>
44 <!-- Search Results Table -->
46 <table class="small" id="parcelst">
50 <th>Date received</th>
51 <th>Invoice number</th>
54 <th>Items expected</th>
58 <!-- Actual Search Results -->
59 [% FOREACH searchresult IN searchresults %]
60 [% UNLESS ( loop.odd ) %]
61 <tr class="highlight">
66 [% searchresult.number %]
69 [% searchresult.datereceived %]
72 [% IF ( searchresult.code ) %]
73 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code %]</a>
75 <acronym title="not available">n/a</acronym>
79 [% searchresult.reccount %]
82 [% searchresult.bibcount %]
85 [% searchresult.itemcount %]
92 <div id="resultnumber">
93 <!-- Row of numbers corresponding to search result pages -->
94 [% IF ( displayprev ) %]
95 <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>
97 [% FOREACH number IN numbers %]
98 [% IF ( number.highlight ) %]
99 <span class="current">[% number.number %]</span>
101 <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>
104 [% IF ( displaynext ) %]
105 <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>
111 <div id="parcels_new_parcel">
112 <form method="get" action="parcels.pl">
113 <fieldset class="rows">
114 <legend>Receive a new shipment</legend>
116 <label for="invoice">Vendor invoice </label>
117 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
118 <input type="hidden" name="op" value="new" />
119 <input type="text" size="20" id="invoice" name="invoice" />
123 <label for="gst">GST:</label>
124 <input type="text" size="20" id="gst" name="gst" />
127 <!-- // Removing freight input until shipping can be proplerly handled .
129 <label for="freight">Shipping:</label>
130 <input type="text" size="20" id="freight" name="freight" />
133 <label for="shipmentdate">Shipment date: </label>
134 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today %]" class="datepicker" />
135 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
138 <label for="shipmentcost">Shipment cost: </label>
139 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
142 <label for="shipmentcost_budgetid">Fund: </label>
143 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
144 <option value="">No fund</option>
145 [% FOREACH budget IN budgets %]
146 <option value="[% budget.budget_id %]">[% budget.budget_name %]</option>
152 <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>
158 [% IF ( count ) %]<form method="get" action="parcels.pl">
159 <fieldset class="brief">
162 <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
163 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
164 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br />
165 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li>
166 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
167 <option value="invoicenumber">Invoice number</option>
168 <option value="shipmentdate">Shipment date</option>
169 <option value="shipmentdate desc">Shipment date reverse</option>
170 <option value="invoicenumber desc">Invoice number reverse</option>
172 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
173 <option value="20">20</option>
174 <option value="30">30</option>
175 <option value="50">50</option>
176 <option value="100">100</option>
179 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
184 [% INCLUDE 'intranet-bottom.inc' %]