Koha/C4/SIP/ILS/Transaction/FeePayment.pm
Jonathan Druart 017699c345 Bug 16011: $VERSION - Remove the $VERSION init
Mainly a
  perl -p -i -e 's/^.*3.07.00.049.*\n//' **/*.pm
Then some adjustements

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-03-24 17:20:28 +00:00

57 lines
1.4 KiB
Perl

package C4::SIP::ILS::Transaction::FeePayment;
use warnings;
use strict;
# Copyright 2011 PTFS-Europe Ltd.
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Koha is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use C4::Accounts qw(recordpayment);
use parent qw(C4::SIP::ILS::Transaction);
our $debug = 0;
my %fields = ();
sub new {
my $class = shift;
my $self = $class->SUPER::new();
foreach ( keys %fields ) {
$self->{_permitted}->{$_} = $fields{$_}; # overlaying _permitted
}
@{$self}{ keys %fields } = values %fields; # copying defaults into object
return bless $self, $class;
}
sub pay {
my $self = shift;
my $borrowernumber = shift;
my $amt = shift;
my $type = shift;
warn("RECORD:$borrowernumber::$amt");
recordpayment( $borrowernumber, $amt,$type );
}
#sub DESTROY {
#}
1;
__END__