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 .gste, .gsti").show();
17 [% IF ( invoiceincgst ) %]
18 $("table .gste").hide();
20 $("table .gsti").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">
77 <fieldset class="rows">
79 <li><label for="shipmentdate">Shipment date:</label>
80 <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" class="datepicker" /></li>
82 <li><label for="billingdate">Billing date:</label>
83 <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" class="datepicker" /></li>
85 <li><label for="shipmentcost">Shipping cost:</label>
86 <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
87 <li><label for="shipment_budget_id">Shipping fund:</label>
88 <select id="shipment_budget_id" name="shipment_budget_id">
89 <option value="">No fund</option>
90 [% FOREACH budget IN budgets_loop %]
91 [% IF ( budget.selected ) %]
92 <option selected="selected" value="[% budget.budget_id %]">
94 <option value="[% budget.budget_id %]">
96 [% budget.budget_name %]
101 [% IF ( invoiceclosedate ) %]
102 <li><span class="label">Status:</span>
103 Closed on [% invoiceclosedate | $KohaDates %].</li>
105 <li><label for="reopen">Reopen: </label> <input type="checkbox" name="reopen" id="reopen" /></li>
107 <li><span class="label">Status:</span>
110 <li><label for="close">Close: </label> <input type="checkbox" name="close" id="close" />
114 <input type="hidden" name="op" value="mod" />
115 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
117 <fieldset class="action">
118 <input type="submit" value="Save" />
119 [% UNLESS orders_loop.size %]
120 <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]">Delete</a>
125 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
126 [% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %]
128 <h2>Invoice details</h2>
129 [% IF orders_loop.size %]
130 <label for="show_all_details">
131 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
137 <th class="anti-the">Summary</th>
139 <th class="gste">Actual cost tax exc.</th>
140 <th class="gsti">Actual cost tax inc.</th>
142 <th class="gste">Total tax exc. ([% currency.symbol %])</th>
143 <th class="gsti">Total tax inc. ([% currency.symbol %])</th>
150 [% FOREACH order IN orders_loop %]
153 [% IF order.biblionumber %]
154 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a>
155 [% IF ( order.author ) %]
156 <br /><em>by</em> [% order.author %]
159 <em>Deleted bibliographic record, can't find title</em>
161 [% IF ( order.publishercode ) %]
162 <br/>[% order.publishercode %]
163 [% IF order.publicationyear > 0 %]
164 - [% order.publicationyear %]
165 [% ELSIF ( order.copyrightdate > 0) %]
166 - [% order.copyrightdate %]
170 <td><p>[% order.branchcode %]</p></td>
171 <td class="number gste">[% order.unitpricegste | $Price %]</td>
172 <td class="number gsti">[% order.unitpricegsti | $Price %]</td>
173 <td class="number">[% order.quantity %]</td>
174 <td class="number gste">[% order.totalgste | $Price %]</td>
175 <td class="number gsti">[% order.totalgsti | $Price %]</td>
176 <td class="number">[% order.gstrate * 100 | $Price %]</td>
177 <td class="number">[% order.gstvalue | $Price %]</td>
178 <td>[% order.budget_name %]</td>
183 [% FOR tf IN foot_loop %]
185 <th colspan='2'>Total (GST [% tf.gstrate * 100 | $Price %] %)</th>
186 <th class="gste"/><th class="gsti"/>
187 <th>[% tf.quantity %]</th>
188 <th class="gste">[% tf.totalgste | $Price %]</th>
189 <th class="gsti">[% tf.totalgsti | $Price %]</th>
191 <th>[% tf.gstvalue | $Price %]</th>
196 <th colspan='2'>Total ([% currency.symbol %])</th>
197 <th class="gste"/><th class="gsti"/>
198 <th>[% total_quantity %]</th>
199 <th class="gste">[% total_gste | $Price %]</th>
200 <th class="gsti">[% total_gsti | $Price %]</th>
202 <th>[% total_gstvalue | $Price %]</th>
206 <th colspan="2">Total + Shipment cost ([% currency.symbol %])</th>
207 <th class="gste"></th>
208 <th class="gsti"></th>
209 <th>[% total_quantity %]</th>
210 <th class="gste">[% total_gste_shipment | $Price %]</th>
211 <th class="gsti">[% total_gsti_shipment | $Price %]</th>
213 <th>[% total_gstvalue | $Price %]</th>
219 <div class="dialog message"><p>No orders yet</p></div>
221 [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
223 <h2>Files attached to invoice</h2>
224 <table id="invoice_files_table">
234 [% FOREACH f IN files %]
236 <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>
237 <td>[% f.file_type | html %]</td>
238 <td>[% f.file_description | html %]</td>
239 <td class="title-string">
240 <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
250 [% INCLUDE 'acquisitions-menu.inc' %]
253 [% INCLUDE 'intranet-bottom.inc' %]