3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Reports › Orders by fund</title>
5 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="rep_orders_by_budget" class="rep">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
11 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( get_orders ) %] › <a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a> › Results[% ELSE %] › Orders by fund[% END %]</div>
14 <div id="doc3" class="yui-t2">
20 [% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name %]'</h1>
21 [% ELSE %]<h1>Orders by fund</h1>
24 [% IF ( get_orders ) %]
27 Orders found: [% total %]
33 [% IF ( ordersloop ) %]<table id="funds">
44 <th>Budgeted cost</th>
49 <th>Date received</th>
50 <th>Internal note</th>
55 [% FOREACH ordersloo IN ordersloop %]
56 [% UNLESS ( loop.odd ) %]<tr class="highlight">
59 <td>[% ordersloo.budget_name |html %]</td>
60 <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno %]"> [% ordersloo.basketno |html %]</a></td>
61 <td>[% ordersloo.basketname |html %]</td>
62 <td>[% ordersloo.authorisedbyname %]</td>
63 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]"> [% ordersloo.title |html %]</a></td>
64 <td>[% ordersloo.currency %]</td>
65 <td>[% ordersloo.listprice | $Price %]</td>
66 <td>[% ordersloo.rrp | $Price %]</td>
67 <td>[% ordersloo.ecost | $Price %]</td>
68 <td>[% ordersloo.quantity %]</td>
69 <td>[% ordersloo.total_rrp | $Price %]</td>
70 <td>[% ordersloo.total_ecost | $Price %]</td>
71 <td>[% ordersloo.entrydate %]</td>
72 <td>[% ordersloo.datereceived %]</td>
73 <td>[% ordersloo.order_internalnote |html %]</td>
74 <td>[% ordersloo.order_vendornote |html %]</td>
78 <tfoot><tr><th>TOTAL</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th>[% total_quantity %]</th><th>[% total_rrp | $Price %]</th><th>[% total_ecost | $Price %]</th><th></th><th></th><th></th><th></th></tr></tfoot>
82 <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
83 <fieldset class="rows">
84 <legend>Filters</legend>
85 <ol><li><label for="budgetfilter">Fund: </label>
86 <select name="budgetfilter" id="budgetfilter">
87 <option value="">All funds</option>
88 <option value="activebudgets">All active funds</option>
89 [% FOREACH budgetsloo IN budgetsloop %]
90 [% IF ( budgetsloo.selected ) %]
91 <option value="[% budgetsloo.value %]" selected="selected">
93 [% bdgclass=budgetsloo.active? "": "b_inactive" %]
94 <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
96 [% budgetsloo.description %] [% IF !budgetsloo.active %](inactive)[% END %]
100 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
101 <input type="checkbox" id="showbudgets" />
105 <fieldset class="rows">
106 <legend>Output</legend>
107 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
108 <li><label for="outputfile">To a file:</label>
109 <input type="radio" name="output" value="file" id="outputfile" />
110 <label class="inline" for="basename">Named: </label>
111 <input type="text" name="basename" id="basename" value="Export" />
112 <label class="inline" for="MIME">Into an application </label>
113 <select id='MIME' name='MIME' size='1'>
114 [% FOREACH outputFormatloo IN outputFormatloop %]
115 <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
118 <select id='sep' name='sep' size='1'>
119 [% FOREACH delimiterloo IN delimiterloop %]
120 [% IF delimiterloo == delimiterPreference %]
121 <option value="[% delimiterloo %]">[% delimiterloo %]</option>
124 [% FOREACH delimiterloo IN delimiterloop %]
125 [% IF delimiterloo != delimiterPreference %]
126 <option value="[% delimiterloo %]">[% delimiterloo %]</option>
133 <fieldset class="action">
134 <input type="submit" value="Submit" />
135 <input type="hidden" name="get_orders" value="1" /></fieldset>
143 [% INCLUDE 'reports-menu.inc' %]
147 [% MACRO jsinclude BLOCK %]
148 [% INCLUDE 'datatables.inc' %]
149 <script type="text/javascript">
150 $(document).ready( function () {
151 $('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"}));
153 showallbudgets = $('#budgetfilter').html();
154 $('#budgetfilter .b_inactive').remove();
156 $('#showbudgets').click(function(){
157 if ($(this).is(":checked")) {
158 $('#budgetfilter').html(showallbudgets);
160 $('#budgetfilter .b_inactive').remove();
168 [% INCLUDE 'intranet-bottom.inc' %]