Lines 20-26
use strict;
Link Here
|
20 |
# You should have received a copy of the GNU General Public License |
20 |
# You should have received a copy of the GNU General Public License |
21 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
21 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
22 |
|
22 |
|
23 |
use C4::Accounts qw(recordpayment); |
23 |
use Koha::Account; |
24 |
use parent qw(C4::SIP::ILS::Transaction); |
24 |
use parent qw(C4::SIP::ILS::Transaction); |
25 |
|
25 |
|
26 |
|
26 |
|
Lines 47-53
sub pay {
Link Here
|
47 |
my $amt = shift; |
47 |
my $amt = shift; |
48 |
my $type = shift; |
48 |
my $type = shift; |
49 |
warn("RECORD:$borrowernumber::$amt"); |
49 |
warn("RECORD:$borrowernumber::$amt"); |
50 |
recordpayment( $borrowernumber, $amt,$type ); |
50 |
Koha::Account->new( { patron_id => $borrowernumber } )->pay( { amount => $amt, sip => $type } ); |
51 |
} |
51 |
} |
52 |
|
52 |
|
53 |
#sub DESTROY { |
53 |
#sub DESTROY { |
54 |
- |
|
|