6 [%# USE the plugin and define some macros %]
7 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha › Acquisitions › Spent</title>
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="acq_spent" class="acq">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'acquisitions-search.inc' %]
18 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › Spent - [% fund_code | html %]</div>
20 <div class="main container-fluid">
22 <div class="col-sm-10 col-sm-push-2">
25 <h1>Fund: [% fund_code | html %]</h1>
31 <th class="anti-the">Title</th>
32 <th>[% tp('noun', 'Order') | html %]</th>
38 <th class="title-string">Date ordered</th>
39 <th class="title-string">Date received</th>
44 [% FOREACH order IN spent %]
47 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
48 [% order.title | html %]
52 [% order.ordernumber | html %]
55 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
58 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a>
61 [% FOREACH itemtype IN order.itemtypes %]
62 [% ItemTypes.GetDescription( itemtype ) | html %]
63 [% IF !loop.last() %] | [% END %]
67 [% order.quantityreceived | html %]
70 [% order.unitprice_tax_included | $Price %]
73 <span title="[% order.entrydate | html %]">[% order.entrydate | $KohaDates %]</span>
76 <span title="[% order.datereceived | html %]">[% order.datereceived | $KohaDates %]</span>
78 <td class="data cell">
79 [% order.rowtotal | $Price %]
85 [% IF shipmentcosts.size || ( adjustments && adjustments.count > 0 ) %]
87 <td colspan="9"> Sub total </td>
88 <td class="data"> [% subtotal | $Price %] </td>
91 [% IF shipmentcosts.size %]
92 [% FOREACH shipmentcost IN shipmentcosts %]
95 <td colspan="8">Shipping cost for invoice
96 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcost.invoiceid | uri %]">
97 [% shipmentcost.invoicenumber | html %]
100 <td class="data total">[% shipmentcost.shipmentcost | $Price %]</td>
104 [% IF ( adjustments && adjustments.count > 0 ) %]
105 [% FOREACH adjustment IN adjustments %]
108 <td colspan="8">Adjustment cost for invoice
109 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
110 [% adjustment.invoice.invoicenumber | html %]
113 <td class="data total">[% adjustment.adjustment | $Price %]</td>
118 <td colspan="9">TOTAL</td>
119 <td class="data total">[% total | $Price %]</td>
125 </div> <!-- /.col-sm-10.col-sm-push-2 -->
127 <div class="col-sm-2 col-sm-pull-10">
129 [% INCLUDE 'acquisitions-menu.inc' %]
131 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
132 </div> <!-- /.row -->
134 [% MACRO jsinclude BLOCK %]
135 [% Asset.js("js/acquisitions-menu.js") | $raw %]
136 [% INCLUDE 'datatables.inc' %]
138 $(document).ready(function() {
139 $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
141 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
142 { "sType": "title-string", "aTargets" : [ "title-string" ] }
144 "sPaginationType": "full"
150 [% INCLUDE 'intranet-bottom.inc' %]