4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Reports › Orders by fund</title>
6 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="rep_orders_by_budget" class="rep">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
12 [% Asset.css("css/datatables.css") %]
13 <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>
15 <div id="doc3" class="yui-t2">
21 [% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name %]'</h1>
22 [% ELSE %]<h1>Orders by fund</h1>
25 [% IF ( get_orders ) %]
28 Orders found: [% total %]
34 [% IF ( ordersloop ) %]<table id="funds">
45 <th>Budgeted cost</th>
50 <th>Date received</th>
51 <th>Internal note</th>
56 [% FOREACH ordersloo IN ordersloop %]
57 [% UNLESS ( loop.odd ) %]<tr class="highlight">
60 <td>[% ordersloo.budget_name |html %]</td>
61 <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno %]"> [% ordersloo.basketno |html %]</a></td>
62 <td>[% ordersloo.basketname |html %]</td>
63 <td>[% ordersloo.authorisedbyname %]</td>
64 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]"> [% ordersloo.title |html %]</a></td>
65 <td>[% ordersloo.currency %]</td>
66 <td>[% ordersloo.listprice | $Price %]</td>
67 <td>[% ordersloo.rrp | $Price %]</td>
68 <td>[% ordersloo.ecost | $Price %]</td>
69 <td>[% ordersloo.quantity %]</td>
70 <td>[% ordersloo.total_rrp | $Price %]</td>
71 <td>[% ordersloo.total_ecost | $Price %]</td>
72 <td>[% ordersloo.entrydate %]</td>
73 <td>[% ordersloo.datereceived %]</td>
74 <td>[% ordersloo.order_internalnote |html %]</td>
75 <td>[% ordersloo.order_vendornote |html %]</td>
79 <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>
83 <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
84 <fieldset class="rows">
85 <legend>Filters</legend>
86 <ol><li><label for="budgetfilter">Fund: </label>
87 <select name="budgetfilter" id="budgetfilter">
88 <option value="">All funds</option>
89 <option value="activebudgets">All active funds</option>
90 [% FOREACH budgetsloo IN budgetsloop %]
91 [% IF ( budgetsloo.selected ) %]
92 <option value="[% budgetsloo.value %]" selected="selected">
94 [% bdgclass=budgetsloo.active? "": "b_inactive" %]
95 <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
97 [% budgetsloo.description %] [% IF !budgetsloo.active %](inactive)[% END %]
101 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
102 <input type="checkbox" id="showbudgets" />
106 <fieldset class="rows">
107 <legend>Output</legend>
108 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
109 <li><label for="outputfile">To a file:</label>
110 <input type="radio" name="output" value="file" id="outputfile" />
111 <label class="inline" for="basename">Named: </label>
112 <input type="text" name="basename" id="basename" value="Export" />
113 <label class="inline" for="MIME">Into an application </label>
114 <select id='MIME' name='MIME' size='1'>
115 [% FOREACH outputFormatloo IN outputFormatloop %]
116 <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
119 <select id='sep' name='sep' size='1'>
120 [% FOREACH delimiterloo IN delimiterloop %]
121 [% IF delimiterloo == delimiterPreference %]
122 <option value="[% delimiterloo %]">[% delimiterloo %]</option>
125 [% FOREACH delimiterloo IN delimiterloop %]
126 [% IF delimiterloo != delimiterPreference %]
127 <option value="[% delimiterloo %]">[% delimiterloo %]</option>
134 <fieldset class="action">
135 <input type="submit" value="Submit" />
136 <input type="hidden" name="get_orders" value="1" /></fieldset>
144 [% INCLUDE 'reports-menu.inc' %]
148 [% MACRO jsinclude BLOCK %]
149 [% INCLUDE 'datatables.inc' %]
150 <script type="text/javascript">
151 $(document).ready( function () {
152 $('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"}));
154 showallbudgets = $('#budgetfilter').html();
155 $('#budgetfilter .b_inactive').remove();
157 $('#showbudgets').click(function(){
158 if ($(this).is(":checked")) {
159 $('#budgetfilter').html(showallbudgets);
161 $('#budgetfilter .b_inactive').remove();
169 [% INCLUDE 'intranet-bottom.inc' %]