Merge remote-tracking branch 'origin/new/bug_5604'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / stats_screen.tt
1 [% INCLUDE 'doc-head-open.inc' %] 
2 <title>Koha &rsaquo; Reports &rsaquo; Till Reconciliation</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %] 
5
6 </head>    
7 <body>   
8 [% INCLUDE 'header.inc' %]                                    
9 [% INCLUDE 'circ-search.inc' %]
10 <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
11 </div>
12
13 <div id="doc3" class="yui-t2">
14    
15    <div id="bd">
16         <div id="yui-main">
17         <div class="yui-b">
18
19 <h1>Till Reconciliation</h1>
20
21 <fieldset><legend>Search between two dates</legend>
22 <form action="stats.screen.pl" method="post">
23   <label for="from">Start Date: </label>
24   <input type="text" name="time" size="10" value="[% IF ( date ) %][% date %][% ELSE %]today[% END %]" id="from" /> 
25   <img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom1" alt="Show Calendar" style="cursor: pointer;" />
26      <script type="text/javascript">
27      Calendar.setup({
28      inputField     :    "from",
29      ifFormat       :    "[% DHTMLcalendar_dateformat %]",
30      button         :    "buttonfrom1",
31      align          :    "Tl"
32      });
33      </script>
34   <label for="to">End Date: </label>
35   <input type="text" name="time2" size="10" value="[% IF ( date2 ) %][% date2 %][% ELSE %]tomorrow[% END %]" id="to" />
36   <img src="[% themelang %]/lib/calendar/cal.gif" id="buttonto1" alt="Show Calendar" style="cursor: pointer;" />
37      <script type="text/javascript">
38      Calendar.setup({
39      inputField     :    "to",
40      ifFormat       :    "[% DHTMLcalendar_dateformat %]",
41      button         :    "buttonto1",
42      align          :    "Tl"
43      });
44      </script>
45   <input type="submit" value="To Screen" name="submit" class="submit" />
46 <!--  <input type="submit" value="To Excel" name="submit" class="button"> --></fieldset>
47 </form>
48
49 <h2>Payments</h2>
50
51         <table>
52                 <tr>
53                         <th>Library</th>
54                         <th>Date/time</th>
55                         <th>Surname</th>
56                         <th>Firstname</th>
57                         <th>Description</th>
58                         <th>Charge Type</th>
59                         <th>Invoice Amount</th>
60                         <th>Payment Type</th>
61                         <th>Payment Amount</th>
62                 </tr>
63
64                 [% FOREACH loop IN loop1 %]
65                 <tr>
66                      <td>[% loop.branch %]</td>
67                         <td>[% loop.datetime %]</td>
68                         <td>[% loop.surname %]</td>
69                         <td>[% loop.firstname %]</td>
70                         <td>[% loop.description %]</td>
71                         <td>[% loop.accounttype %]</td>
72                         <td>[% loop.amount %]</td>
73                         <td>[% loop.type %]</td>
74                         <td>[% loop.value %]</td>
75                 </tr>
76                 [% END %]
77         </table>
78
79 <p>
80         <b>Total amount paid: [% totalpaid %]</b>
81 </p>
82
83
84 <h2>Credits</h2>
85
86         <table>
87                 <tr>
88                         <th>Library</th>
89                         <th>Date/time</th>
90                         <th>Surname</th>
91                         <th>Firstname</th>
92                         <th>Description</th>
93                         <th>Charge Type</th>
94                         <th>Invoice Amount</th>
95                 </tr>
96
97                 [% FOREACH loop IN loop2 %]
98                 <tr>
99                      <td>[% loop.creditbranch %]</td>
100                         <td>[% loop.creditdate %]</td>
101                         <td>[% loop.creditsurname %]</td>
102                         <td>[% loop.creditfirstname %]</td>
103                         <td>[% loop.creditdescription %]</td>
104                         <td>[% loop.creditaccounttype %]</td>
105                         <td>[% loop.creditamount %]</td>
106                 </tr>
107                 [% END %]
108         </table>
109 <p>
110        <ul><li> <b>Total amount credits: [% totalcredits %]</b></li>
111         <li><b>Total number written off: [% totalwritten %] charges</b></li></ul>
112 </p>
113
114
115 <h2>Refunds</h2>
116
117         <table>
118                 <tr>
119                         <th>Library</th>
120                         <th>Date/time</th>
121                         <th>Surname</th>
122                         <th>Firstname</th>
123                         <th>Description</th>
124                         <th>Charge Type</th>
125                         <th>Invoice Amount</th>
126                 </tr>
127
128                 [% FOREACH loop IN loop3 %]
129                 <tr>
130                      <td>[% loop.refundbranch %]</td>
131                         <td>[% loop.refunddate %]</td>
132                         <td>[% loop.refundsurname %]</td>
133                         <td>[% loop.refundfirstname %]</td>
134                         <td>[% loop.refunddescription %]</td>
135                         <td>[% loop.refundaccounttype %]</td>
136                         <td>[% loop.refundamount %]</td>
137                 </tr>
138                 [% END %]
139         </table>
140 <p>
141         <ul><li><b>Total amount refunds: [% totalrefund %]</b></li>
142         <li><b>Total amount of cash collected: [% totalcash %] </b></li></ul>
143 </p>
144 </div>
145 </div>
146 <div class="yui-b">
147 [% INCLUDE 'reports-menu.inc' %]
148 </div>
149 </div>
150 [% INCLUDE 'intranet-bottom.inc' %]