3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Acquisitions › Invoice</title>
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'calendar.inc' %]
8 [% INCLUDE 'datatables.inc' %]
9 <script type="text/javascript">
11 function updateColumnsVisibility(visible) {
13 $("table .gste, .gsti").show();
15 [% IF ( invoiceincgst ) %]
16 $("table .gste").hide();
18 $("table .gsti").hide();
23 $(document).ready(function() {
24 $("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, {
31 $("#show_all_details").click(function(){
32 updateColumnsVisibility($(this+":checked").val());
35 $("#show_all_details").attr('checked', false);
36 updateColumnsVisibility(false);
43 [% INCLUDE 'header.inc' %]
44 [% INCLUDE 'acquisitions-search.inc' %]
46 <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>
48 <div id="doc3" class="yui-t2">
54 <div class="dialog message">
55 <p>Invoice has been modified</p>
58 <h1>Invoice: [% invoicenumber %]</h1>
60 <p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
61 <form action="/cgi-bin/koha/acqui/invoice.pl" method="post">
62 <fieldset class="rows">
64 <li><label for="shipmentdate">Shipment date:</label>
65 <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" readonly="readonly" class="datepicker" /></li>
67 <li><label for="billingdate">Billing date:</label>
68 <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" readonly="readonly" class="datepicker" /></li>
70 <li><label for="shipmentcost">Shipping cost:</label>
71 <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
72 <li><label for="shipment_budget_id">Fund:</label>
73 <select id="shipment_budget_id" name="shipment_budget_id">
74 <option value="">No fund</option>
75 [% FOREACH budget IN budgets_loop %]
76 [% IF ( budget.selected ) %]
77 <option selected="selected" value="[% budget.budget_id %]">
79 <option value="[% budget.budget_id %]">
81 [% budget.budget_name %]
86 [% IF ( invoiceclosedate ) %]
87 <li><span class="label">Status:</span>
88 Closed on [% invoiceclosedate | $KohaDates %].</li>
90 <li><label for="reopen">Reopen: </label> <input type="checkbox" name="reopen" id="reopen" /></li>
92 <li><span class="label">Status:</span>
95 <li><label for="close">Close: </label> <input type="checkbox" name="close" id="close" />
99 <input type="hidden" name="op" value="mod" />
100 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
102 <fieldset class="action">
103 <input type="submit" value="Save" />
104 [% UNLESS orders_loop.size %]
105 <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]">Delete</a>
110 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
112 <h2>Invoice details</h2>
113 [% IF orders_loop.size %]
114 <label for="show_all_details">
115 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
124 <th class="gste">Actual cost tax exc.</th>
125 <th class="gsti">Actual cost tax inc.</th>
127 <th class="gste">Total tax exc. ([% currency %])</th>
128 <th class="gsti">Total tax inc. ([% currency %])</th>
135 [% FOREACH order IN orders_loop %]
137 <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a>
138 [% IF ( order.author ) %]
139 <br /><em>by</em> [% order.author %]
143 [% IF ( order.publishercode ) %]
144 <p>[% order.publishercode %]
145 [% IF ( order.publicationyear ) %]
146 - [% order.publicationyear %]
151 <td><p>[% order.branchcode %]</p></td>
152 <td class="number gste">[% order.actualcostgste %]</td>
153 <td class="number gsti">[% order.actualcostgsti %]</td>
154 <td class="number">[% order.quantity %]</td>
155 <td class="number gste">[% order.totalgste %]</td>
156 <td class="number gsti">[% order.totalgsti %]</td>
157 <td class="number">[% order.gstgsti %]</td>
158 <td class="number">[% order.gstvalue %]</td>
159 <td>[% order.budget_name %]</td>
164 [% FOR tf IN foot_loop %]
166 <th colspan='3'>Total (GST [% tf.gstgsti %] %)</th>
167 <th class="gste"/><th class="gsti"/>
168 <th>[% tf.quantity %]</th>
169 <th class="gste">[% tf.totalgste %]</th>
170 <th class="gsti">[% tf.totalgsti %]</th>
172 <th>[% tf.gstvalue %]</th>
177 <th colspan='3'>Total ([% currency %])</th>
178 <th class="gste"/><th class="gsti"/>
179 <th>[% total_quantity %]</th>
180 <th class="gste">[% total_gste %]</th>
181 <th class="gsti">[% total_gsti %]</th>
183 <th>[% total_gstvalue %]</th>
187 <th colspan="3">Total + Shipment cost ([% currency %])</th>
188 <th class="gste"></th>
189 <th class="gsti"></th>
190 <th>[% total_quantity %]</th>
191 <th class="gste">[% total_gste_shipment %]</th>
192 <th class="gsti">[% total_gsti_shipment %]</th>
194 <th>[% total_gstvalue %]</th>
200 <div class="dialog message"><p>No orders yet</p></div>
205 [% INCLUDE 'acquisitions-menu.inc' %]
208 [% INCLUDE 'intranet-bottom.inc' %]