3 #wrriten 11/1/2000 by chris@katipo.oc.nz
4 #script to display borrowers account details
15 $flagsrequired->{circulation
}=1;
16 my ($loggedinuser, $cookie, $sessionID) = checkauth
($input, 0, $flagsrequired);
19 my $bornum=$input->param('bornum');
21 my $data=borrdata
('',$bornum);
26 $bor{'borrowernumber'}=$bornum;
27 my ($numaccts,$accts,$total)=getboracctrecord
('',\
%bor);
33 print startmenu
('member');
35 <FONT SIZE=6><em>Account for $data->{'firstname'} $data->{'surname'}</em></FONT><P>
36 <a href=/cgi-bin/koha/maninvoice.pl?bornum=$bornum><image src=/images/create-man-invoice.gif border=0></a>
37 <a href=/cgi-bin/koha/mancredit.pl?bornum=$bornum><image src=/images/create-man-credit.gif border=0></a>
40 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 >
42 <td bgcolor="99cc33" background="/images/background-mem.gif" colspan=2><B>FINES & CHARGES</TD>
43 <td bgcolor="99cc33" background="/images/background-mem.gif" colspan=1><B>AMOUNT</TD>
44 <td bgcolor="99cc33" background="/images/background-mem.gif" colspan=1><B>STILL OWING</TD>
49 for (my $i=0;$i<$numaccts;$i++){
50 $accts->[$i]{'amount'}+=0.00;
51 $accts->[$i]{'amountoutstanding'}+=0.00;
54 <td>$accts->[$i]{'date'}</td>
55 <TD>$accts->[$i]{'description'}
58 if ($accts->[$i]{'accounttype'} ne 'F' && $accts->[$i]{'accounttype'} ne 'FU'){
59 print "$accts->[$i]{'title'}";
64 <td>$accts->[$i]{'amount'}</td>
65 <TD>$accts->[$i]{'amountoutstanding'}</td>
73 <TD colspan=2><b>Total Due</b></td>
75 <TD><b>$total</b></td>
84 print endmenu
('member');