1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Circulation › Billing</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
9 <!-- End of additions -->
12 <!-- TMPL_INCLUDE NAME="header.inc" -->
13 <!-- TMPL_INCLUDE NAME="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 <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --></h2>
25 <h3>Reported on <!-- TMPL_VAR NAME="todaysdate" --></h3>
30 <!-- TMPL_IF NAME="billingloop" -->
31 <h4>The following patrons have bills.</h4>
35 <a href="/cgi-bin/koha/circ/billing.pl?order=patron&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
38 <a href="/cgi-bin/koha/circ/billing.pl?order=fee&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
41 <a href="/cgi-bin/koha/circ/billing.pl?order=desc&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
44 <a href="/cgi-bin/koha/circ/billing.pl?order=type&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
47 <a href="/cgi-bin/koha/circ/billing.pl?order=date&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
50 <a href="/cgi-bin/koha/circ/billing.pl?order=total&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
54 <!-- TMPL_LOOP NAME="billingloop" -->
57 <p><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!--TMPL_VAR Name="borrowernumber"-->"><!-- TMPL_VAR NAME="patronname" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
58 <!-- TMPL_IF NAME="email" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Account: <!-- TMPL_VAR NAME="title" -->">
59 <!-- TMPL_VAR NAME="email" --></a><!--/TMPL_IF-->
63 <p><!-- TMPL_VAR NAME="l_amountoutstanding" --></p>
66 <p><!-- TMPL_VAR NAME="l_description" --></p>
69 <p><!-- TMPL_VAR NAME="l_accounttype" --></p>
72 <p><!-- TMPL_VAR NAME="l_date" --></p>
75 <p><!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="ratio" -->" /></li>
93 <li><label for="from">
96 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
97 <img src="<!-- TMPL_VAR Name="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 : "<!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="to" -->" type="text" />
128 <img src="<!-- TMPL_VAR Name="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 : "<!-- TMPL_VAR NAME="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 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->