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

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

Return to bug 21788