View | Details | Raw Unified | Return to bug 6427
Collapse All | Expand All

(-)a/C4/Circulation.pm (-5 / +8 lines)
Lines 3621-3630 sub ProcessOfflineIssue { Link Here
3621
sub ProcessOfflinePayment {
3621
sub ProcessOfflinePayment {
3622
    my $operation = shift;
3622
    my $operation = shift;
3623
3623
3624
    my $borrower = C4::Members::GetMemberDetails( undef, $operation->{cardnumber} ); # Get borrower from operation cardnumber
3624
    AddCredit(
3625
    my $amount = $operation->{amount};
3625
        {
3626
3626
            borrower => Koha::Database->new()->schema->resultset('Borrower')
3627
    recordpayment( $borrower->{borrowernumber}, $amount );
3627
              ->single( { cardnumber => $operation->{cardnumber} } ),
3628
            amount => $operation->{amount},
3629
            notes  => 'via offline circulation',
3630
        }
3631
    );
3628
3632
3629
    return "Success."
3633
    return "Success."
3630
}
3634
}
3631
- 

Return to bug 6427