Koha/koha-tmpl/intranet-tmpl/prog/en/modules/reports/stats_screen.tt
2011-04-10 20:38:30 +12:00

150 lines
5.2 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>
[% 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" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom1" alt="Show Calendar" style="cursor: pointer;" />
<script type="text/javascript">
Calendar.setup({
inputField : "from",
ifFormat : "[% DHTMLcalendar_dateformat %]",
button : "buttonfrom1",
align : "Tl"
});
</script>
<label for="to">End Date: </label>
<input type="text" name="time2" size="10" value="[% IF ( date2 ) %][% date2 %][% ELSE %]tomorrow[% END %]" id="to" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonto1" alt="Show Calendar" style="cursor: pointer;" />
<script type="text/javascript">
Calendar.setup({
inputField : "to",
ifFormat : "[% DHTMLcalendar_dateformat %]",
button : "buttonto1",
align : "Tl"
});
</script>
<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>Firstname</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>Firstname</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>Firstname</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' %]