2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Reports › Orders by fund</title>
4 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="rep_orders_by_budget" class="rep">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'cat-search.inc' %]
10 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
11 [% INCLUDE 'datatables.inc' %]
12 <script type="text/javascript">
13 $(document).ready( function () {
14 $('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"}));
16 showallbudgets = $('#budgetfilter').html();
17 $('#budgetfilter .b_inactive').remove();
19 $('#showbudgets').click(function(){
20 if ($(this).is(":checked"))
21 $('#budgetfilter').html(showallbudgets);
23 $('#budgetfilter .b_inactive').remove();
27 <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>
29 <div id="doc3" class="yui-t2">
35 [% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name %]'</h1>
36 [% ELSE %]<h1>Orders by fund</h1>
39 [% IF ( get_orders ) %]
42 Orders found: [% total %]
48 [% IF ( ordersloop ) %]<table id="funds">
59 <th>Budgeted cost</th>
64 <th>Date deceived</th>
65 <th>Internal note</th>
70 [% FOREACH ordersloo IN ordersloop %]
71 [% UNLESS ( loop.odd ) %]<tr class="highlight">
74 <td>[% ordersloo.budget_name |html %]</td>
75 <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno %]"> [% ordersloo.basketno |html %]</a></td>
76 <td>[% ordersloo.basketname |html %]</td>
77 <td>[% ordersloo.authorisedbyname %]</td>
78 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]"> [% ordersloo.title |html %]</a></td>
79 <td>[% ordersloo.currency %]</td>
80 <td>[% ordersloo.listprice | $Price %]</td>
81 <td>[% ordersloo.rrp | $Price %]</td>
82 <td>[% ordersloo.ecost | $Price %]</td>
83 <td>[% ordersloo.quantity %]</td>
84 <td>[% ordersloo.total_rrp | $Price %]</td>
85 <td>[% ordersloo.total_ecost | $Price %]</td>
86 <td>[% ordersloo.entrydate %]</td>
87 <td>[% ordersloo.datereceived %]</td>
88 <td>[% ordersloo.order_internalnote |html %]</td>
89 <td>[% ordersloo.order_vendornote |html %]</td>
93 <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></tr></tfoot>
97 <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
98 <fieldset class="rows">
99 <legend>Filters</legend>
100 <ol><li><label for="budgetfilter">Fund: </label>
101 <select name="budgetfilter" id="budgetfilter">
102 <option value="">All funds</option>
103 <option value="activebudgets">All active funds</option>
104 [% FOREACH budgetsloo IN budgetsloop %]
105 [% IF ( budgetsloo.selected ) %]
106 <option value="[% budgetsloo.value %]" selected="selected">
108 [% bdgclass=budgetsloo.active? "": "b_inactive" %]
109 <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
111 [% budgetsloo.description %] [% IF !budgetsloo.active %](inactive)[% END %]
115 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
116 <input type="checkbox" id="showbudgets" />
120 <fieldset class="rows">
121 <legend>Output</legend>
122 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
123 <li><label for="outputfile">To a file:</label>
124 <input type="radio" name="output" value="file" id="outputfile" />
125 <label class="inline" for="basename">Named: </label>
126 <input type="text" name="basename" id="basename" value="Export" />
127 <label class="inline" for="MIME">Into an application </label>
128 <select id='MIME' name='MIME' size='1'>
129 [% FOREACH outputFormatloo IN outputFormatloop %]
130 <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
133 <select id='sep' name='sep' size='1'>
134 [% FOREACH delimiterloo IN delimiterloop %]
135 [% IF delimiterloo == delimiterPreference %]
136 <option value="[% delimiterloo %]">[% delimiterloo %]</option>
139 [% FOREACH delimiterloo IN delimiterloop %]
140 [% IF delimiterloo != delimiterPreference %]
141 <option value="[% delimiterloo %]">[% delimiterloo %]</option>
148 <fieldset class="action">
149 <input type="submit" value="Submit" />
150 <input type="hidden" name="get_orders" value="1" /></fieldset>
158 [% INCLUDE 'reports-menu.inc' %]
161 [% INCLUDE 'intranet-bottom.inc' %]