6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Acquisitions › Spent</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="acq_spent" class="acq">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'acquisitions-search.inc' %]
18 <nav aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27 <a href="#" aria-current="page">
28 Spent - [% fund_code | html %]
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 <h1>Fund: [% fund_code | html %]</h1>
45 <th class="anti-the">Title</th>
46 <th>[% tp('noun', 'Order') | html %]</th>
52 <th class="title-string">Date ordered</th>
53 <th class="title-string">Date received</th>
58 [% FOREACH order IN spent %]
61 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
62 [% order.title | html %]
66 [% order.ordernumber | html %]
69 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
72 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a>
75 [% FOREACH itemtype IN order.itemtypes %]
76 [% ItemTypes.GetDescription( itemtype ) | html %]
77 [% IF !loop.last() %] | [% END %]
81 [% order.quantityreceived | html %]
84 [% order.unitprice_tax_included | $Price %]
87 <span title="[% order.entrydate | html %]">[% order.entrydate | $KohaDates %]</span>
90 <span title="[% order.datereceived | html %]">[% order.datereceived | $KohaDates %]</span>
92 <td class="data cell">
93 [% order.rowtotal | $Price %]
99 [% IF shipmentcosts.size || ( adjustments && adjustments.count > 0 ) %]
101 <td colspan="9"> Sub total </td>
102 <td class="data"> [% subtotal | $Price %] </td>
105 [% IF shipmentcosts.size %]
106 [% FOREACH shipmentcost IN shipmentcosts %]
109 <td colspan="8">Shipping cost for invoice
110 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcost.invoiceid | uri %]">
111 [% shipmentcost.invoicenumber | html %]
114 <td class="data total">[% shipmentcost.shipmentcost | $Price %]</td>
118 [% IF ( adjustments && adjustments.count > 0 ) %]
119 [% FOREACH adjustment IN adjustments %]
122 <td colspan="8">Adjustment cost for invoice
123 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
124 [% adjustment.invoice.invoicenumber | html %]
127 <td class="data total">[% adjustment.adjustment | $Price %]</td>
132 <td colspan="9">TOTAL</td>
133 <td class="data total">[% total | $Price %]</td>
139 </div> <!-- /.col-sm-10.col-sm-push-2 -->
141 <div class="col-sm-2 col-sm-pull-10">
143 [% INCLUDE 'acquisitions-menu.inc' %]
145 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
146 </div> <!-- /.row -->
148 [% MACRO jsinclude BLOCK %]
149 [% Asset.js("js/acquisitions-menu.js") | $raw %]
150 [% INCLUDE 'datatables.inc' %]
152 $(document).ready(function() {
153 $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
155 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
156 { "sType": "title-string", "aTargets" : [ "title-string" ] }
158 "sPaginationType": "full"
164 [% INCLUDE 'intranet-bottom.inc' %]