Koha/koha-tmpl/intranet-tmpl/prog/en/modules/reports/stats_screen.tt
Owen Leonard 2b74492d7d Bug 8181 [REVISED] Replace DynArch calendar widget with jQueryUI version
All instances of the old DynArch calendar have been replaced with
jQueryUI versions and the old library files have been removed.

calendar.inc has been modified to include jQueryUI localization
strings and global configuration options. Just add a "datepicker"
class to an input field to trigger a datepicker prompt.

If you would like two fields in one from to limit each other (one
is date from, one is date to), add these classes to each:
"datepickerfrom" and "datepickerto." This will prevent an invalid
entry, e.g. a date in the latter which falls before the former.

jQueryUI is now upgraded to the latest verision, 1.8.21.

Edit: Now with proper translatability, date formatting, first day
of the week handling, and RTL support.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Ian Walls <koha.sekjal@gmail.com>
QA Comment:  rebased on current master; minor merge conflicts with other patches pushed

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-06-25 18:26:26 +02:00

131 lines
4.5 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Reports &rsaquo; Till reconciliation</title>
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'calendar.inc' %]
</head>
<body id="rep_stats_screen" class="rep">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Till reconciliation
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Till reconciliation</h1>
<fieldset><legend>Search between two dates</legend>
<form action="stats.screen.pl" method="post">
<label for="from">Start Date: </label>
<input type="text" name="time" size="10" value="[% IF ( date ) %][% date %][% ELSE %]today[% END %]" id="from" class="datepickerfrom" />
<label for="to">End Date: </label>
<input type="text" name="time2" size="10" value="[% IF ( date2 ) %][% date2 %][% ELSE %]tomorrow[% END %]" class="datepickerto" id="to" />
<input type="submit" value="To screen" name="submit" class="submit" />
<!-- <input type="submit" value="To Excel" name="submit" class="button"> --></fieldset>
</form>
<h2>Payments</h2>
<table>
<tr>
<th>Library</th>
<th>Date/time</th>
<th>Surname</th>
<th>First name</th>
<th>Description</th>
<th>Charge type</th>
<th>Invoice amount</th>
<th>Payment type</th>
<th>Payment amount</th>
</tr>
[% FOREACH loop IN loop1 %]
<tr>
<td>[% loop.branch %]</td>
<td>[% loop.datetime %]</td>
<td>[% loop.surname %]</td>
<td>[% loop.firstname %]</td>
<td>[% loop.description %]</td>
<td>[% loop.accounttype %]</td>
<td>[% loop.amount %]</td>
<td>[% loop.type %]</td>
<td>[% loop.value %]</td>
</tr>
[% END %]
</table>
<p>
<b>Total amount paid: [% totalpaid %]</b>
</p>
<h2>Credits</h2>
<table>
<tr>
<th>Library</th>
<th>Date/time</th>
<th>Surname</th>
<th>First name</th>
<th>Description</th>
<th>Charge type</th>
<th>Invoice amount</th>
</tr>
[% FOREACH loop IN loop2 %]
<tr>
<td>[% loop.creditbranch %]</td>
<td>[% loop.creditdate %]</td>
<td>[% loop.creditsurname %]</td>
<td>[% loop.creditfirstname %]</td>
<td>[% loop.creditdescription %]</td>
<td>[% loop.creditaccounttype %]</td>
<td>[% loop.creditamount %]</td>
</tr>
[% END %]
</table>
<p>
<ul><li> <b>Total amount credits: [% totalcredits %]</b></li>
<li><b>Total number written off: [% totalwritten %] charges</b></li></ul>
</p>
<h2>Refunds</h2>
<table>
<tr>
<th>Library</th>
<th>Date/time</th>
<th>Surname</th>
<th>First name</th>
<th>Description</th>
<th>Charge type</th>
<th>Invoice amount</th>
</tr>
[% FOREACH loop IN loop3 %]
<tr>
<td>[% loop.refundbranch %]</td>
<td>[% loop.refunddate %]</td>
<td>[% loop.refundsurname %]</td>
<td>[% loop.refundfirstname %]</td>
<td>[% loop.refunddescription %]</td>
<td>[% loop.refundaccounttype %]</td>
<td>[% loop.refundamount %]</td>
</tr>
[% END %]
</table>
<p>
<ul><li><b>Total amount refunds: [% totalrefund %]</b></li>
<li><b>Total amount of cash collected: [% totalcash %] </b></li></ul>
</p>
</div>
</div>
<div class="yui-b">
[% INCLUDE 'reports-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]