5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › Invoice</title>
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% INCLUDE 'calendar.inc' %]
10 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript">
13 function updateColumnsVisibility(visible) {
15 $("table .tax_excluded, .tax_included").show();
17 [% IF ( invoiceincgst ) %]
18 $("table .tax_excluded").hide();
20 $("table .tax_included").hide();
25 $(document).ready(function() {
26 $("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, {
32 { "sType": "anti-the", "aTargets": [ "anti-the" ] }
35 [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
36 $("#invoice_files_table").dataTable($.extend(true, {}, dataTablesDefaults, {
38 { "aTargets": [ "title-string" ], "sType": "title-string" }
46 $("#show_all_details").click(function(){
47 updateColumnsVisibility( $(this).is(":checked") );
50 $("#show_all_details").prop('checked', false);
51 updateColumnsVisibility(false);
57 <body id="acq_invoice" class="acq">
58 [% INCLUDE 'header.inc' %]
59 [% INCLUDE 'acquisitions-search.inc' %]
61 <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/invoices.pl">Invoices</a> › <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% invoicenumber %]</a></div>
63 <div id="doc3" class="yui-t2">
69 <div class="dialog message">
70 <p>Invoice has been modified</p>
73 <h1>Invoice: [% invoicenumber %]</h1>
75 <p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
76 <form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated">
77 <fieldset class="rows">
80 <label for="shipmentdate">Invoice number:</label>
81 <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" class="required" required="required"/>
82 <span class="required">Required</span>
85 <li><label for="shipmentdate">Shipment date:</label>
86 <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" class="datepicker" /></li>
88 <li><label for="billingdate">Billing date:</label>
89 <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" class="datepicker" /></li>
91 <li><label for="shipmentcost">Shipping cost:</label>
92 <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
93 <li><label for="shipment_budget_id">Shipping fund:</label>
94 <select id="shipment_budget_id" name="shipment_budget_id">
95 <option value="">No fund</option>
96 [% FOREACH budget IN budgets_loop %]
97 [% IF ( budget.selected ) %]
98 <option selected="selected" value="[% budget.budget_id %]">
100 <option value="[% budget.budget_id %]">
102 [% budget.budget_name %]
107 [% IF ( invoiceclosedate ) %]
108 <li><span class="label">Status:</span>
109 Closed on [% invoiceclosedate | $KohaDates %].</li>
111 <li><label for="reopen">Reopen: </label> <input type="checkbox" name="reopen" id="reopen" /></li>
113 <li><span class="label">Status:</span>
116 <li><label for="close">Close: </label> <input type="checkbox" name="close" id="close" />
120 <input type="hidden" name="op" value="mod" />
121 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
123 <fieldset class="action">
124 <input type="submit" value="Save" />
125 [% UNLESS orders_loop.size %]
126 <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]">Delete</a>
131 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
132 [% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %]
134 <h2>Invoice details</h2>
135 [% IF orders_loop.size %]
136 <label for="show_all_details">
137 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
143 <th class="anti-the">Summary</th>
145 <th class="tax_excluded">Actual cost tax exc.</th>
146 <th class="tax_included">Actual cost tax inc.</th>
148 <th class="tax_excluded">Total tax exc. ([% currency.symbol %])</th>
149 <th class="tax_included">Total tax inc. ([% currency.symbol %])</th>
156 [% FOREACH order IN orders_loop %]
159 [% IF order.biblionumber %]
160 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a>
161 [% IF ( order.author ) %]
162 <br /><em>by</em> [% order.author %]
165 <em>Deleted bibliographic record, can't find title</em>
167 [% IF ( order.publishercode ) %]
168 <br/>[% order.publishercode %]
169 [% IF order.publicationyear > 0 %]
170 - [% order.publicationyear %]
171 [% ELSIF ( order.copyrightdate > 0) %]
172 - [% order.copyrightdate %]
176 <td><p>[% order.branchcode %]</p></td>
177 <td class="number tax_excluded">[% order.unitprice_tax_excluded | $Price %]</td>
178 <td class="number tax_included">[% order.unitprice_tax_included | $Price %]</td>
179 <td class="number">[% order.quantity %]</td>
180 <td class="number tax_excluded">[% order.total_tax_excluded | $Price %]</td>
181 <td class="number tax_included">[% order.total_tax_included | $Price %]</td>
182 <td class="number">[% order.tax_rate * 100 | $Price %]</td>
183 <td class="number">[% order.tax_value | $Price %]</td>
184 <td>[% order.budget_name %]</td>
189 [% FOR tf IN foot_loop %]
191 <th colspan='3'>Total (GST [% tf.tax_rate * 100 | $Price %] %)</th>
192 <th class="tax_excluded"/><th class="tax_included"/>
193 <th>[% tf.quantity %]</th>
194 <th class="tax_excluded">[% tf.total_tax_excluded | $Price %]</th>
195 <th class="tax_included">[% tf.total_tax_included | $Price %]</th>
197 <th>[% tf.tax_value | $Price %]</th>
202 <th colspan='2'>Total ([% currency.symbol %])</th>
203 <th class="tax_excluded"/><th class="tax_included"/>
204 <th>[% total_quantity %]</th>
205 <th class="tax_excluded">[% total_tax_excluded | $Price %]</th>
206 <th class="tax_included">[% total_tax_included | $Price %]</th>
208 <th>[% total_tax_value | $Price %]</th>
212 <th colspan="2">Total + Shipment cost ([% currency.symbol %])</th>
213 <th class="tax_excluded"></th>
214 <th class="tax_included"></th>
215 <th>[% total_quantity %]</th>
216 <th class="tax_excluded">[% total_tax_excluded_shipment | $Price %]</th>
217 <th class="tax_included">[% total_tax_included_shipment | $Price %]</th>
219 <th>[% total_tax_value | $Price %]</th>
225 <div class="dialog message"><p>No orders yet</p></div>
227 [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
229 <h2>Files attached to invoice</h2>
230 <table id="invoice_files_table">
240 [% FOREACH f IN files %]
242 <td><a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]&op=download&view=1&file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
243 <td>[% f.file_type | html %]</td>
244 <td>[% f.file_description | html %]</td>
245 <td class="title-string">
246 <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
256 [% INCLUDE 'acquisitions-menu.inc' %]
259 [% INCLUDE 'intranet-bottom.inc' %]