{
borrowernumber => $borrowernumber,
itemnumber => $item,
-or => [
accounttype => 'FU'
accounttype => 'FU',
accounttype => 'O',
],
}
)->next();
return 0 unless $accountline; # no warning, there's just nothing to fix
# "A" is Account Management Fee
# "N" is New Card
# "M" is Sundry
# "O" is Overdue ??
# "F" is Fine ??
# "FU" is Fine UPDATE??
# "Pay" is Payment
my $sth = $dbh->prepare(
"SELECT * FROM accountlines
WHERE borrowernumber=? AND
(( accounttype IN ('O','F','M') AND amountoutstanding<>0 ) OR
(( accounttype IN ('F','M') AND amountoutstanding<>0 ) OR
accounttype = 'FU' )"
);
$sth->execute( $borrowernumber );
- processing
- rent
- reserve
- overdue
- manual
=cut
'processing' => 'PF',
'rent' => 'Rent',
'reserve' => 'Res',
'overdue' => 'O',
'manual_debit' => 'M',
'hold_expired' => 'HE'
};
my $sth = $dbh->prepare("
SELECT accountlines_id, description
FROM accountlines
WHERE accounttype in ('FU', 'F', 'O', 'M')
WHERE accounttype in ('FU', 'F', 'M')
;");
$sth->execute();
-