fixed it so staff are calculated as well
This commit is contained in:
parent
bdd7205f2f
commit
a1e6bd0ba9
1 changed files with 2 additions and 2 deletions
4
fines.pl
4
fines.pl
|
@ -28,7 +28,7 @@ for (my $i=0;$i<$count;$i++){
|
|||
$borrower=BorType($bornum);
|
||||
}
|
||||
|
||||
if ($borrower->{'description'} !~ /Staff/ && $borrower->{'description'} !~ /Branch/){
|
||||
# if ($borrower->{'description'} !~ /Staff/ && $borrower->{'description'} !~ /Branch/){
|
||||
my ($amount)=CalcFine($data->[$i]->{'itemnumber'},$borrower->{'categorycode'},$difference);
|
||||
if ($amount > $max){
|
||||
$amount=$max;
|
||||
|
@ -39,7 +39,7 @@ for (my $i=0;$i<$count;$i++){
|
|||
} else {
|
||||
# print "0 fine\n";
|
||||
}
|
||||
}
|
||||
# }
|
||||
}
|
||||
}
|
||||
print "\n $count2\n";
|
||||
|
|
Loading…
Reference in a new issue