1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Reports [% IF ( do_it ) %]› Cash Register Statistics › Results[% ELSE %]› Cash Register Statistics[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'datatables.inc' %]
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript" id="js">$(document).ready(function() {
9 $(document).ready(function() {
10 $("#tbl_cash_register_stats").dataTable($.extend(true, {}, dataTablesDefaults, {
15 [% INCLUDE 'calendar.inc' %]
16 <script type="text/javascript">
20 function isNull(f,noalert) {
21 if (f.value.length > 0) {
27 $(document).ready(function() {
29 // http://jqueryui.com/demos/datepicker/#date-range
30 var dates = $( "#filter_date_begin, #filter_date_end" ).datepicker({
33 onSelect: function( selectedDate ) {
34 var option = this.id == "filter_date_begin" ? "minDate" : "maxDate",
35 instance = $( this ).data( "datepicker" );
36 date = $.datepicker.parseDate(
37 instance.settings.dateFormat ||
38 $.datepicker._defaults.dateFormat,
39 selectedDate, instance.settings );
40 dates.not( this ).datepicker( "option", option, date );
44 $('#frmCashRegister').submit(function() {
45 var isFormValid = true;
46 var alertString= _("Form not submitted because of the following problem(s)")+"\n";
48 alertString +="-------------------------------------------------------------------\n\n";
50 if ( !$('#filter_date_begin').val() || !$('#filter_date_end').val()){
52 alertString += "\n- " + _("Dates cannot be empty");
69 [% INCLUDE 'header.inc' %]
70 [% INCLUDE 'cat-search.inc' %]
72 <div id="breadcrumbs">
73 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
76 <a href="/cgi-bin/koha/reports/cash_register_stats.pl">Cash Register Statistics</a> › Results
78 Cash Register Statistics
82 <div id="doc3" class="yui-t2">
88 <h1>Cash register statistics</h1>
89 <form method="post" action="/cgi-bin/koha/reports/cash_register_stats.pl" id="frmCashRegister">
90 <fieldset class="rows">
91 <legend>Cash Register statistics [% beginDate %] to [% endDate %]</legend>
101 <label for="filter_date_begin">From</label>
102 <input type="text" size="10" id="filter_date_begin" name="filter_date_begin" value="[% beginDate %]" />
103 <label for="filter_date_end">To</label>
104 <input type="text" size="10" id="filter_date_end" name="filter_date_end" value="[% endDate %]" />
111 <fieldset class="rows">
114 <label for="">Transaction type:</label>
115 <select name="transaction_type" id="transaction_type">
116 [% IF transaction_type == "ALL" %]
117 <option value="ALL" selected="selected">All transactions</option>
119 <option value="ALL">All transactions</option>
122 [% IF transaction_type == "ACT" %]
123 <option value="ACT" selected="selected">Active transactions</option>
125 <option value="ACT">Active transactions</option>
128 [% IF transaction_type == "C" %]
129 <option value="C" selected="selected">Credit</option>
131 <option value="C">Credit</option>
134 [% IF transaction_type == "FORW" %]
135 <option value="FORW" selected="selected">Write off</option>
137 <option value="FORW">Write off</option>
140 [% IF transaction_type == "F" %]
141 <option value="F" selected="selected">Fine</option>
143 <option value="F">Fine</option>
146 [% IF transaction_type == "FU" %]
147 <option value="FU" selected="selected">Fine - long period</option>
149 <option value="FU">Fine - long period</option>
152 [% IF transaction_type == "PAY" %]
153 <option value="PAY" selected="selected">Payment</option>
155 <option value="PAY">Payment</option>
158 [% IF transaction_type == "A" %]
159 <option value="A" selected="selected">Account Management Fee</option>
161 <option value="A">Account Management Fee</option>
164 [% IF transaction_type == "M" %]
165 <option value="M" selected="selected">Sundry</option>
167 <option value="M">Sundry</option>
170 [% IF transaction_type == "L" %]
171 <option value="L" selected="selected">Lost item</option>
173 <option value="L">Lost item</option>
176 [% IF transaction_type == "N" %]
177 <option value="N" selected="selected">New card</option>
179 <option value="N">New card</option>
182 [% FOREACH manualinv IN manualinv_types %]
183 [% value_manualinv = manualinv.authorised_value|truncate(5, '') %]
184 [% IF transaction_type == value_manualinv %]
185 <option value="[% value_manualinv %]" selected="selected">[% manualinv.authorised_value %]</option>
187 <option value="[% value_manualinv %]">[% manualinv.authorised_value %]</option>
193 <label>Library</label>
194 <select name="branch" id="branch">
195 <option value="ALL">All</option>
196 [% FOREACH branchloo IN branchloop %]
197 [% IF ( branchloo.selected ) %]
198 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
200 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
210 <fieldset class="rows">
211 <legend>Output</legend>
214 <label for="outputscreen">To screen into the browser: </label>
215 <input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
218 <label for="outputfile">To a file:</label>
219 <input type="radio" name="output" value="file" id="outputfile" />
220 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
225 <fieldset class="action">
226 <input type="submit" value="Submit" name="do_it" />
232 <table id="tbl_cash_register_stats">
235 <th>Manager name</th>
236 <th>Borrower cardnumber</th>
237 <th>Borrower name</th>
239 <th>Transaction date</th>
240 <th>Transaction type</th>
242 <th>Biblio title</th>
244 <th>Document type</th>
247 [% FOREACH loopresul IN loopresult %]
249 <td>[% loopresul.mfirstname %] [% loopresul.msurname %]</td>
250 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopresul.borrowernumber %]">[% loopresul.cardnumber %]</a></td>
251 <td>[% loopresul.bfirstname %] [% loopresul.bsurname %]</td>
252 <td>[% loopresul.branchname %]</td>
253 <td>[% loopresul.date %]</td>
255 [% IF loopresul.accounttype == "ACT" %]
256 <span>Active transactions</span>
257 [% ELSIF loopresul.accounttype == "C" || loopresul.accounttype == "CR" %]
259 [% ELSIF loopresul.accounttype == "FORW" || loopresul.accounttype == "W" %]
260 <span>Write off</span>
261 [% ELSIF loopresul.accounttype == "F" %]
263 [% ELSIF loopresul.accounttype == "FU" %]
264 <span>Fine - long period</span>
265 [% ELSIF loopresul.accounttype == "Pay" %]
267 [% ELSIF loopresul.accounttype == "A" %]
268 <span>Account management fee</span>
269 [% ELSIF loopresul.accounttype == "M" %]
271 [% ELSIF loopresul.accounttype == "L" || loopresul.accounttype == "LR" %]
272 <span>Lost item</span>
273 [% ELSIF loopresul.accounttype == "N" %]
274 <span>New card</span>
276 [% FOREACH manualinv IN manualinv_types %]
277 [% value_manualinv = manualinv.authorised_value|truncate(5, '') %]
278 [% IF loopresul.accounttype == value_manualinv %]
279 <span>[% manualinv.authorised_value %]</span>
285 <td style="text-align:right;">[% loopresul.amount %]</td>
286 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopresul.biblionumber %]">[% loopresul.title %]</a></td>
287 <td>[% loopresul.barcode %]</td>
288 <td>[% loopresul.itype %]</td>
293 <th colspan="6" style="text-align:right;">TOTAL</th>
294 <th style="text-align:right;">[% total %]</th>
295 <th colspan="3"> </th>
300 [% END %] [%# do_it %]
304 [% INCLUDE 'reports-menu.inc' %]
307 [% INCLUDE 'intranet-bottom.inc' %]