while (($accdata=$msth->fetchrow_hashref) and ($amountleft>0)){
if ($accdata->{'amountoutstanding'} < $amountleft) {
$newamtos = 0;
- # FIXME - -=
- $amountleft = $amountleft - $accdata->{'amountoutstanding'};
+ $amountleft -= $accdata->{'amountoutstanding'};
} else {
$newamtos = $accdata->{'amountoutstanding'} - $amountleft;
$amountleft = 0;
$sth->execute;
my $total=0;
while (my $data=$sth->fetchrow_hashref){
- # FIXME = +=
- $total=$total+$data->{'sum(amountoutstanding)'};
+ $total += $data->{'sum(amountoutstanding)'};
}
$sth->finish;
# output(1,2,"borrower owes $total");