1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Circulation › Billing</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/lib/calendar/calendar-system.css" />
6 <script type="text/javascript" src="[% themelang %]/lib/calendar/calendar.js"></script>
7 <script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-en.js"></script>
8 <script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-setup.js"></script>
9 <!-- End of additions -->
11 <body id="circ_billing" class="circ">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'circ-search.inc' %]
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Billing</div>
18 <div id="doc3" class="yui-t2">
24 <h2>Billing from [% from %] to [% to %]</h2>
25 <h3>Reported on [% todaysdate %]</h3>
30 [% IF ( billingloop ) %]
31 <h4>The following patrons have bills.</h4>
35 <a href="/cgi-bin/koha/circ/billing.pl?order=patron&from=[% from %]&to=[% to %]">Sort</a>
38 <a href="/cgi-bin/koha/circ/billing.pl?order=fee&from=[% from %]&to=[% to %]">Sort</a>
41 <a href="/cgi-bin/koha/circ/billing.pl?order=desc&from=[% from %]&to=[% to %]">Sort</a>
44 <a href="/cgi-bin/koha/circ/billing.pl?order=type&from=[% from %]&to=[% to %]">Sort</a>
47 <a href="/cgi-bin/koha/circ/billing.pl?order=date&from=[% from %]&to=[% to %]">Sort</a>
50 <a href="/cgi-bin/koha/circ/billing.pl?order=total&from=[% from %]&to=[% to %]">Sort</a>
54 [% FOREACH billingloo IN billingloop %]
57 <p><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% billingloo.borrowernumber %]">[% billingloo.patronname %]</a><br />[% billingloo.phone %]<br />
58 [% IF ( billingloo.email ) %]<a href="mailto:[% billingloo.email %]?subject=Account: [% billingloo.title %]">
59 [% billingloo.email %]</a>[% END %]
63 <p>[% billingloo.l_amountoutstanding %]</p>
66 <p>[% billingloo.l_description %]</p>
69 <p>[% billingloo.l_accounttype %]</p>
72 <p>[% billingloo.l_date %]</p>
75 <p>[% billingloo.sum_amount %]</p>
81 <b>No items found.</b>
87 <form action="/cgi-bin/koha/circ/billing.pl" method="post" >
88 <fieldset class="brief">
89 <ol><li><label for="ratio">
92 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" /></li>
93 <li><label for="from">
96 <input type="text" size="10" id="from" name="from" value="[% from %]" />
97 <img src="[% themelang %]/lib/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
98 <script language="JavaScript" type="text/javascript">
99 function validate1(date) {
100 var day = date.getDate();
101 var month = date.getMonth() + 1;
102 var year = date.getFullYear();
103 var weekDay = date.getDay();
104 var dayMonth = month + '-' + day;
105 var dateString = year + '-' + month + '-' + day;
106 var dateTo = document.getElementById('to').value.split("-");
107 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
108 if (date > limitDate) {
117 ifFormat : "[% DHTMLcalendar_dateformat %]",
118 button : "openCalendarFrom",
119 disableFunc : validate1,
120 dateStatusFunc : validate1
124 <li><label for="to" >
127 <input size="10" id="to" name="to" value="[% to %]" type="text" />
128 <img src="[% themelang %]/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
129 <script type="text/javascript">
130 function validate2(date) {
131 var day = date.getDate();
132 var month = date.getMonth() + 1;
133 var year = date.getFullYear();
134 var weekDay = date.getDay();
135 var dayMonth = month + '-' + day;
136 var dateString = year + '-' + month + '-' + day;
137 var dateFrom = document.getElementById('from').value.split("-");
138 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
139 if (limitDate > date) {
149 ifFormat : "[% DHTMLcalendar_dateformat %]",
150 button : "openCalendarTo",
151 disableFunc : validate2,
152 dateStatusFunc : validate2
156 (inclusive)</li></ol>
158 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset></fieldset>
162 [% INCLUDE 'intranet-bottom.inc' %]