4 [% USE TablesSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Orders by fund › Reports › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="rep_orders_by_budget" class="rep">
11 [% WRAPPER 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
15 [% WRAPPER 'sub-header.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
24 [% IF ( get_orders ) %]
26 <a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a>
29 <a href="#" aria-current="page">
35 <a href="#" aria-current="page">
44 <div class="main container-fluid">
46 <div class="col-sm-10 col-sm-push-2">
50 [% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name | html %]'</h1>
51 [% ELSE %]<h1>Orders by fund</h1>
54 [% IF ( get_orders ) %]
56 [% IF ( ordersloop ) %]<table id="funds">
67 <th>Budgeted cost</th>
72 <th>Date received</th>
73 <th>Internal note</th>
78 [% FOREACH ordersloo IN ordersloop %]
79 [% UNLESS ( loop.odd ) %]<tr class="highlight">
82 <td>[% ordersloo.budget_name | html %]</td>
83 <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno | uri %]"> [% ordersloo.basketno | html %]</a></td>
84 <td>[% ordersloo.basketname | html %]</td>
85 <td>[% ordersloo.authorisedbyname | html %]</td>
86 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber | uri %]"> [% ordersloo.title | html %]</a></td>
87 <td>[% ordersloo.currency | html %]</td>
88 <td>[% ordersloo.listprice | $Price %]</td>
89 <td>[% ordersloo.rrp | $Price %]</td>
90 <td>[% ordersloo.ecost | $Price %]</td>
91 <td>[% ordersloo.quantity | html %]</td>
92 <td>[% ordersloo.total_rrp | $Price %]</td>
93 <td>[% ordersloo.total_ecost | $Price %]</td>
94 <td>[% ordersloo.entrydate | html %]</td>
95 <td>[% ordersloo.datereceived | html %]</td>
96 <td>[% ordersloo.order_internalnote | html %]</td>
97 <td>[% ordersloo.order_vendornote | html %]</td>
101 <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>
105 <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
106 <fieldset class="rows">
107 <legend>Filters</legend>
108 <ol><li><label for="budgetfilter">Fund: </label>
109 <select name="budgetfilter" id="budgetfilter">
110 <option value="">All funds</option>
111 <option value="activebudgets">All active funds</option>
112 [% FOREACH budgetsloo IN budgetsloop %]
113 [% IF ( budgetsloo.selected ) %]
114 <option value="[% budgetsloo.value | html %]" selected="selected">
116 [% bdgclass=budgetsloo.active? "": "b_inactive" | html %]
117 <option class="[% bdgclass | html %]" value="[% budgetsloo.value | html %]">
119 [% budgetsloo.description | html %] [% IF !budgetsloo.active %]<span>(inactive)</span>[% END %]
123 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
124 <input type="checkbox" id="showbudgets" />
128 <fieldset class="rows">
129 <legend>Output</legend>
130 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
131 <li><label for="outputfile">To a file:</label>
132 <input type="radio" name="output" value="file" id="outputfile" />
133 <label class="inline" for="basename">Named: </label>
134 <input type="text" name="basename" id="basename" value="Export" />
135 <label class="inline" for="MIME">Into an application </label>
136 <select id='MIME' name='MIME'>
137 [% FOREACH outputFormatloo IN outputFormatloop %]
138 <option value="[% outputFormatloo | html %]">[% outputFormatloo | html %]</option>
141 <select id='sep' name='sep'>
142 [% FOREACH delimiterloo IN delimiterloop %]
143 [% IF delimiterloo == delimiterPreference %]
144 <option value="[% delimiterloo | html %]">[% delimiterloo | html %]</option>
147 [% FOREACH delimiterloo IN delimiterloop %]
148 [% IF delimiterloo != delimiterPreference %]
149 <option value="[% delimiterloo | html %]">[% delimiterloo | html %]</option>
156 <fieldset class="action">
157 <input type="submit" class="btn btn-primary" value="Submit" />
158 <input type="hidden" name="get_orders" value="1" /></fieldset>
164 </div> <!-- /.col-sm-10.col-sm-push-2 -->
166 <div class="col-sm-2 col-sm-pull-10">
168 [% INCLUDE 'reports-menu.inc' %]
170 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
171 </div> <!-- /.row -->
173 [% MACRO jsinclude BLOCK %]
174 [% INCLUDE 'datatables.inc' %]
175 [% INCLUDE 'columns_settings.inc' %]
177 var table_settings = [% TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table', 'json' ) | $raw %];
178 $(document).ready( function () {
179 var funds_table = KohaTable("funds", {
183 showallbudgets = $('#budgetfilter').html();
184 $('#budgetfilter .b_inactive').remove();
186 $('#showbudgets').click(function(){
187 if ($(this).is(":checked")) {
188 $('#budgetfilter').html(showallbudgets);
190 $('#budgetfilter .b_inactive').remove();
198 [% INCLUDE 'intranet-bottom.inc' %]