4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › Invoice</title>
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% INCLUDE 'calendar.inc' %]
9 [% INCLUDE 'datatables.inc' %]
10 <script type="text/javascript">
12 function updateColumnsVisibility(visible) {
14 $("table .gste, .gsti").show();
16 [% IF ( invoiceincgst ) %]
17 $("table .gste").hide();
19 $("table .gsti").hide();
24 $(document).ready(function() {
25 $("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, {
31 [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
32 $("#invoice_files_table").dataTable($.extend(true, {}, dataTablesDefaults, {
34 { "aTargets": [ "title-string" ], "sType": "title-string" }
42 $("#show_all_details").click(function(){
43 updateColumnsVisibility($(this+":checked").val());
46 $("#show_all_details").attr('checked', false);
47 updateColumnsVisibility(false);
54 [% INCLUDE 'header.inc' %]
55 [% INCLUDE 'acquisitions-search.inc' %]
57 <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>
59 <div id="doc3" class="yui-t2">
65 <div class="dialog message">
66 <p>Invoice has been modified</p>
69 <h1>Invoice: [% invoicenumber %]</h1>
71 <p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
72 <form action="/cgi-bin/koha/acqui/invoice.pl" method="post">
73 <fieldset class="rows">
75 <li><label for="shipmentdate">Shipment date:</label>
76 <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" readonly="readonly" class="datepicker" /></li>
78 <li><label for="billingdate">Billing date:</label>
79 <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" readonly="readonly" class="datepicker" /></li>
81 <li><label for="shipmentcost">Shipping cost:</label>
82 <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
83 <li><label for="shipment_budget_id">Fund:</label>
84 <select id="shipment_budget_id" name="shipment_budget_id">
85 <option value="">No fund</option>
86 [% FOREACH budget IN budgets_loop %]
87 [% IF ( budget.selected ) %]
88 <option selected="selected" value="[% budget.budget_id %]">
90 <option value="[% budget.budget_id %]">
92 [% budget.budget_name %]
97 [% IF ( invoiceclosedate ) %]
98 <li><span class="label">Status:</span>
99 Closed on [% invoiceclosedate | $KohaDates %].</li>
101 <li><label for="reopen">Reopen: </label> <input type="checkbox" name="reopen" id="reopen" /></li>
103 <li><span class="label">Status:</span>
106 <li><label for="close">Close: </label> <input type="checkbox" name="close" id="close" />
110 <input type="hidden" name="op" value="mod" />
111 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
113 <fieldset class="action">
114 <input type="submit" value="Save" />
115 [% UNLESS orders_loop.size %]
116 <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]">Delete</a>
121 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
122 [% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %]
124 <h2>Invoice details</h2>
125 [% IF orders_loop.size %]
126 <label for="show_all_details">
127 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
135 <th class="gste">Actual cost tax exc.</th>
136 <th class="gsti">Actual cost tax inc.</th>
138 <th class="gste">Total tax exc. ([% currency %])</th>
139 <th class="gsti">Total tax inc. ([% currency %])</th>
146 [% FOREACH order IN orders_loop %]
149 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a>
150 [% IF ( order.author ) %]
151 <br /><em>by</em> [% order.author %]
153 [% IF ( order.publishercode ) %]
154 <br/>[% order.publishercode %]
155 [% IF order.publicationyear > 0 %]
156 - [% order.publicationyear %]
157 [% ELSIF ( order.copyrightdate > 0) %]
158 - [% order.copyrightdate %]
162 <td><p>[% order.branchcode %]</p></td>
163 <td class="number gste">[% order.actualcostgste %]</td>
164 <td class="number gsti">[% order.actualcostgsti %]</td>
165 <td class="number">[% order.quantity %]</td>
166 <td class="number gste">[% order.totalgste %]</td>
167 <td class="number gsti">[% order.totalgsti %]</td>
168 <td class="number">[% order.gstgsti %]</td>
169 <td class="number">[% order.gstvalue %]</td>
170 <td>[% order.budget_name %]</td>
175 [% FOR tf IN foot_loop %]
177 <th colspan='2'>Total (GST [% tf.gstgsti %] %)</th>
178 <th class="gste"/><th class="gsti"/>
179 <th>[% tf.quantity %]</th>
180 <th class="gste">[% tf.totalgste %]</th>
181 <th class="gsti">[% tf.totalgsti %]</th>
183 <th>[% tf.gstvalue %]</th>
188 <th colspan='2'>Total ([% currency %])</th>
189 <th class="gste"/><th class="gsti"/>
190 <th>[% total_quantity %]</th>
191 <th class="gste">[% total_gste %]</th>
192 <th class="gsti">[% total_gsti %]</th>
194 <th>[% total_gstvalue %]</th>
198 <th colspan="2">Total + Shipment cost ([% currency %])</th>
199 <th class="gste"></th>
200 <th class="gsti"></th>
201 <th>[% total_quantity %]</th>
202 <th class="gste">[% total_gste_shipment %]</th>
203 <th class="gsti">[% total_gsti_shipment %]</th>
205 <th>[% total_gstvalue %]</th>
211 <div class="dialog message"><p>No orders yet</p></div>
213 [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
215 <h2>Files attached to invoice</h2>
216 <table id="invoice_files_table">
226 [% FOREACH f IN files %]
228 <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>
229 <td>[% f.file_type | html %]</td>
230 <td>[% f.file_description | html %]</td>
231 <td class="title-string">
232 <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
242 [% INCLUDE 'acquisitions-menu.inc' %]
245 [% INCLUDE 'intranet-bottom.inc' %]