4 [% USE TablesSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Reports › Orders by fund</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="rep_orders_by_budget" class="rep">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
14 <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>
16 <div class="main container-fluid">
18 <div class="col-sm-10 col-sm-push-2">
22 [% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name | html %]'</h1>
23 [% ELSE %]<h1>Orders by fund</h1>
26 [% IF ( get_orders ) %]
28 [% IF ( ordersloop ) %]<table id="funds">
39 <th>Budgeted cost</th>
44 <th>Date received</th>
45 <th>Internal note</th>
50 [% FOREACH ordersloo IN ordersloop %]
51 [% UNLESS ( loop.odd ) %]<tr class="highlight">
54 <td>[% ordersloo.budget_name | html %]</td>
55 <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno | uri %]"> [% ordersloo.basketno | html %]</a></td>
56 <td>[% ordersloo.basketname | html %]</td>
57 <td>[% ordersloo.authorisedbyname | html %]</td>
58 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber | uri %]"> [% ordersloo.title | html %]</a></td>
59 <td>[% ordersloo.currency | html %]</td>
60 <td>[% ordersloo.listprice | $Price %]</td>
61 <td>[% ordersloo.rrp | $Price %]</td>
62 <td>[% ordersloo.ecost | $Price %]</td>
63 <td>[% ordersloo.quantity | html %]</td>
64 <td>[% ordersloo.total_rrp | $Price %]</td>
65 <td>[% ordersloo.total_ecost | $Price %]</td>
66 <td>[% ordersloo.entrydate | html %]</td>
67 <td>[% ordersloo.datereceived | html %]</td>
68 <td>[% ordersloo.order_internalnote | html %]</td>
69 <td>[% ordersloo.order_vendornote | html %]</td>
73 <tfoot><tr><th>TOTAL</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th>[% total_quantity | html %]</th><th>[% total_rrp | $Price %]</th><th>[% total_ecost | $Price %]</th><th></th><th></th><th></th><th></th></tr></tfoot>
77 <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
78 <fieldset class="rows">
79 <legend>Filters</legend>
80 <ol><li><label for="budgetfilter">Fund: </label>
81 <select name="budgetfilter" id="budgetfilter">
82 <option value="">All funds</option>
83 <option value="activebudgets">All active funds</option>
84 [% FOREACH budgetsloo IN budgetsloop %]
85 [% IF ( budgetsloo.selected ) %]
86 <option value="[% budgetsloo.value | html %]" selected="selected">
88 [% bdgclass=budgetsloo.active? "": "b_inactive" | html %]
89 <option class="[% bdgclass | html %]" value="[% budgetsloo.value | html %]">
91 [% budgetsloo.description | html %] [% IF !budgetsloo.active %](inactive)[% END %]
95 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
96 <input type="checkbox" id="showbudgets" />
100 <fieldset class="rows">
101 <legend>Output</legend>
102 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
103 <li><label for="outputfile">To a file:</label>
104 <input type="radio" name="output" value="file" id="outputfile" />
105 <label class="inline" for="basename">Named: </label>
106 <input type="text" name="basename" id="basename" value="Export" />
107 <label class="inline" for="MIME">Into an application </label>
108 <select id='MIME' name='MIME' size='1'>
109 [% FOREACH outputFormatloo IN outputFormatloop %]
110 <option value="[% outputFormatloo | html %]">[% outputFormatloo | html %]</option>
113 <select id='sep' name='sep' size='1'>
114 [% FOREACH delimiterloo IN delimiterloop %]
115 [% IF delimiterloo == delimiterPreference %]
116 <option value="[% delimiterloo | html %]">[% delimiterloo | html %]</option>
119 [% FOREACH delimiterloo IN delimiterloop %]
120 [% IF delimiterloo != delimiterPreference %]
121 <option value="[% delimiterloo | html %]">[% delimiterloo | html %]</option>
128 <fieldset class="action">
129 <input type="submit" value="Submit" />
130 <input type="hidden" name="get_orders" value="1" /></fieldset>
136 </div> <!-- /.col-sm-10.col-sm-push-2 -->
138 <div class="col-sm-2 col-sm-pull-10">
140 [% INCLUDE 'reports-menu.inc' %]
142 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
143 </div> <!-- /.row -->
145 [% MACRO jsinclude BLOCK %]
146 [% INCLUDE 'datatables.inc' %]
147 [% INCLUDE 'columns_settings.inc' %]
149 var columns_settings = [% TablesSettings.GetColumns( 'reports', 'orders_by_fund', 'funds-table', 'json' ) | $raw %];
150 [% SET table_settings = TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table' ) %];
151 $(document).ready( function () {
152 var funds_table = KohaTable("funds", {
154 { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
155 { "type": "title-string", "targets" : [ "title-string" ] }
157 "pageLength": [% table_settings.default_display_length | html %],
158 "order": [[ [% table_settings.default_sort_order | html %], 'asc']],
160 }, columns_settings );
162 showallbudgets = $('#budgetfilter').html();
163 $('#budgetfilter .b_inactive').remove();
165 $('#showbudgets').click(function(){
166 if ($(this).is(":checked")) {
167 $('#budgetfilter').html(showallbudgets);
169 $('#budgetfilter .b_inactive').remove();
177 [% INCLUDE 'intranet-bottom.inc' %]