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

(-)a/C4/Circulation.pm (-6 / +3 lines)
Lines 3837-3851 sub ProcessOfflineIssue { Link Here
3837
sub ProcessOfflinePayment {
3837
sub ProcessOfflinePayment {
3838
    my $operation = shift;
3838
    my $operation = shift;
3839
3839
3840
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} });
3840
    my $patron = Koha::Patrons->find({ cardnumber => $operation->{cardnumber} });
3841
    my $amount = $operation->{amount};
3842
3841
3843
    Koha::Account->new( { patron_id => $patron->id } )->pay( { amount => $amount } );
3842
    $patron->account->pay({ amount => $operation->{amount}, library_id => $operation->{branchcode} });
3844
3843
3845
    return "Success."
3844
    return "Success.";
3846
}
3845
}
3847
3846
3848
3849
=head2 TransferSlip
3847
=head2 TransferSlip
3850
3848
3851
  TransferSlip($user_branch, $itemnumber, $barcode, $to_branch)
3849
  TransferSlip($user_branch, $itemnumber, $barcode, $to_branch)
3852
- 

Return to bug 21788