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 var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
13 { "sType": "title-string", "aTargets" : [ "title-string" ] }
18 //keep a copy of all budgets before removing the inactives
19 var budgetId = $("#shipmentcost_budgetid");
20 var disabledBudgetsCopy = budgetId.html();
21 $('.b_inactive').remove();
23 $('#showallfunds').click(function() {
24 if ($(this).is(":checked")) {
25 budgetId.html(disabledBudgetsCopy); //Puts back all the funds
28 $('.b_inactive').remove();
35 <body id="acq_parcels" class="acq">
36 [% INCLUDE 'header.inc' %]
37 [% INCLUDE 'acquisitions-search.inc' %]
39 <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>
41 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
47 [% IF ( error_failed_to_create_invoice ) %]
48 <div id="error" class="dialog alert">
49 <p>An error has occurred. Invoice cannot be created.</p>
52 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
54 [% IF duplicate_invoices %]
55 <div id="parcels_duplicate_invoice" class="dialog alert">
56 <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
58 <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
60 [% FOREACH invoice IN duplicate_invoices %]
62 <td>[% invoice.invoicenumber %]</td>
63 <td>[% invoice.shipmentdate | $KohaDates %]</td>
64 <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid %]">Receive</a></td>
69 <form method="get" action="parcels.pl">
70 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
71 <input type="hidden" name="op" value="confirm" />
72 <input type="hidden" name="invoice" value="[% invoicenumber %]" />
73 <input type="hidden" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" />
74 <input type="hidden" name="shipmentcost" value="[% shipmentcost %]" />
75 <input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid %]" />
76 <input type="submit" class="button" value="Create new invoice anyway" />
83 <p> [% count %] shipments</p>
85 <!-- Search Results Table -->
87 <table class="small" id="parcelst">
91 <th class="title-string">Date received</th>
92 <th>Invoice number</th>
95 <th>Items expected</th>
99 <!-- Actual Search Results -->
100 [% FOREACH searchresult IN searchresults %]
103 [% searchresult.number %]
106 <span title="[% searchresult.datereceived %]">[% searchresult.datereceived | $KohaDates %]</span>
109 [% IF ( searchresult.code ) %]
110 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code %]</a>
112 <abbr title="not available">n/a</abbr>
116 [% searchresult.reccount %]
119 [% searchresult.bibcount %]
122 [% searchresult.itemcount %]
129 <div id="resultnumber">
130 <!-- Row of numbers corresponding to search result pages -->
131 [% IF ( displayprev ) %]
132 <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>
134 [% FOREACH number IN numbers %]
135 [% IF ( number.highlight ) %]
136 <span class="current">[% number.number %]</span>
138 <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>
141 [% IF ( displaynext ) %]
142 <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>
148 <div id="parcels_new_parcel">
149 <form method="get" action="parcels.pl" class="validated">
150 <fieldset class="rows">
151 <legend>Receive a new shipment</legend>
153 <label for="invoice" class="required">Vendor invoice:</label>
154 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
155 <input type="hidden" name="op" value="new" />
156 <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
160 <label for="gst">GST:</label>
161 <input type="text" size="20" id="gst" name="gst" />
164 <!-- // Removing freight input until shipping can be proplerly handled .
166 <label for="freight">Shipping:</label>
167 <input type="text" size="20" id="freight" name="freight" />
170 <label for="shipmentdate">Shipment date: </label>
171 <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | $KohaDates %]" class="datepicker" />
172 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
175 <label for="shipmentcost">Shipping cost: </label>
176 <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
179 <label for="shipmentcost_budgetid">Shipping fund: </label>
180 <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
181 <option value="">No fund</option>
182 [% FOREACH budget IN budgets %]
183 [% IF ( budget.b_active ) %]
184 <option value="[% budget.b_id %]">[% budget.b_txt %]</option>
186 <option value="[% budget.b_id %]" class="b_inactive">[% budget.b_txt %] (inactive)</option>
190 <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label>
191 <input type="checkbox" id="showallfunds" />
196 <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>
202 [% IF ( count ) %]<form method="get" action="parcels.pl">
203 <fieldset class="brief">
206 <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
207 <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
208 <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" class="datepicker" /><br />
209 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" class="datepicker" /></li>
210 <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
211 <option value="invoicenumber">Invoice number</option>
212 <option value="shipmentdate">Shipment date</option>
213 <option value="shipmentdate desc">Shipment date reverse</option>
214 <option value="invoicenumber desc">Invoice number reverse</option>
216 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
217 <option value="20">20</option>
218 <option value="30">30</option>
219 <option value="50">50</option>
220 <option value="100">100</option>
223 <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
228 [% INCLUDE 'intranet-bottom.inc' %]