Browse Source

work inprogrogress

master
chris 25 years ago
parent
commit
84e395e88b
  1. 4
      C4/Search.pm
  2. 17
      moremember.pl
  3. 2
      pay.pl

4
C4/Search.pm

@ -753,8 +753,8 @@ sub getboracctrecord {
my @acctlines; my @acctlines;
my $numlines; my $numlines;
my $query = "Select * from accountlines my $query = "Select * from accountlines
where borrowernumber = $params->{'borrowernumber'} and amountoutstanding where borrowernumber = $params->{'borrowernumber'}
<>0"; order by date desc";
my $sth=$dbh->prepare($query); my $sth=$dbh->prepare($query);
# print $query; # print $query;
$sth->execute; $sth->execute;

17
moremember.pl

@ -80,26 +80,31 @@ $data->{'borrowernotes'}</a>
<img src="/images/holder.gif" width=16 height=800 align=left> <img src="/images/holder.gif" width=16 height=800 align=left>
<TABLE CELLSPACING=0 CELLPADDING=5 border=1 > <TABLE CELLSPACING=0 CELLPADDING=5 border=1 >
<TR VALIGN=TOP> <TR VALIGN=TOP>
<td bgcolor="99cc33" background="/images/background-mem.gif" colspan=3><B>FINES & CHARGES</TD></TR> <td bgcolor="99cc33" background="/images/background-mem.gif" colspan=4><B>FINES & CHARGES</TD></TR>
printend printend
; ;
my %bor; my %bor;
$bor{'borrowernumber'}=$bornum; $bor{'borrowernumber'}=$bornum;
my ($numaccts,$accts,$total)=getboracctrecord('',\%bor); my ($numaccts,$accts,$total)=getboracctrecord('',\%bor);
if ($numaccts > 10){
$numaccts=10;
}
for (my$i=0;$i<$numaccts;$i++){ for (my$i=0;$i<$numaccts;$i++){
if ($accts->[$i]{'accounttype'} ne 'Pay'){ #if ($accts->[$i]{'accounttype'} ne 'Pay'){
my $amount= $accts->[$i]{'amountoutstanding'} + 0.00; my $amount= $accts->[$i]{'amount'} + 0.00;
my $amount2= $accts->[$i]{'amountoutstanding'} + 0.00;
print "<tr VALIGN=TOP >"; print "<tr VALIGN=TOP >";
my $item=" &nbsp; "; my $item=" &nbsp; ";
if ($accts->[$i]{'accounttype'} ne 'Res'){ if ($accts->[$i]{'accounttype'} ne 'Res'){
#get item data #get item data
#$item= #$item=
} }
print "<TD>$item</td>"; print "<td>$accts->[$i]{'date'}</td>";
# print "<TD>$accts->[$i]{'accounttype'}</td>";
print "<TD>$accts->[$i]{'description'}</td> print "<TD>$accts->[$i]{'description'}</td>
<TD>$amount</td> <TD>$amount</td><td>$amount2</td>
</tr>"; </tr>";
} #}
} }
print <<printend print <<printend

2
pay.pl

@ -49,6 +49,7 @@ print <<printend
printend printend
; ;
for (my $i=0;$i<$numaccts;$i++){ for (my $i=0;$i<$numaccts;$i++){
if ($accts->[$i]{'amountoutstanding'} > 0){
print <<printend print <<printend
<tr VALIGN=TOP > <tr VALIGN=TOP >
<TD><input type=radio name=payfine$i value=no checked>Unpaid <TD><input type=radio name=payfine$i value=no checked>Unpaid
@ -69,6 +70,7 @@ print <<printend
printend printend
; ;
} }
}
print <<printend print <<printend
<tr VALIGN=TOP > <tr VALIGN=TOP >
<TD></td> <TD></td>

Loading…
Cancel
Save