@@ -, +, @@ + Paypal should now be an option in the staff interface when collecting from patrons. --- C4/SIP/ILS/Transaction/FeePayment.pm | 4 ++-- Koha/Account.pm | 6 +++--- .../intranet-tmpl/prog/en/modules/members/boraccount.tt | 6 ++++++ .../intranet-tmpl/prog/en/modules/members/paycollect.tt | 12 ++++++++++++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt | 6 ++++++ members/paycollect.pl | 14 +++++++++++--- opac/opac-account-pay-paypal-return.pl | 2 +- 7 files changed, 41 insertions(+), 9 deletions(-) --- a/C4/SIP/ILS/Transaction/FeePayment.pm +++ a/C4/SIP/ILS/Transaction/FeePayment.pm @@ -61,7 +61,7 @@ sub pay { $account->pay( { amount => $amt, - sip => $sip_type, + mode => $sip_type, type => $type, lines => [$fee], } @@ -76,7 +76,7 @@ sub pay { $account->pay( { amount => $amt, - sip => $sip_type, + mode => $sip_type, type => $type, } ); --- a/Koha/Account.pm +++ a/Koha/Account.pm @@ -50,7 +50,7 @@ This method allows payments to be made against fees/fines Koha::Account->new( { patron_id => $borrowernumber } )->pay( { amount => $amount, - sip => $sipmode, + mode => $mode, note => $note, library_id => $branchcode, lines => $lines, # Arrayref of Koha::Account::Line objects to pay @@ -63,7 +63,7 @@ sub pay { my ( $self, $params ) = @_; my $amount = $params->{amount}; - my $sip = $params->{sip}; + my $mode = $params->{mode}; my $note = $params->{note} || q{}; my $library_id = $params->{library_id}; my $lines = $params->{lines}; @@ -176,7 +176,7 @@ sub pay { my $account_type = $type eq 'writeoff' ? 'W' - : defined($sip) ? "Pay$sip" + : defined($mode) ? "Pay$mode" : 'Pay'; my $description = $type eq 'writeoff' ? 'Writeoff' : q{}; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -89,6 +89,12 @@ $(document).ready(function() { [% CASE 'Pay00' %]Payment, thanks (cash via SIP2) [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) + [% CASE 'Pay03' %]Payment, thanks (cash) + [% CASE 'Pay04' %]Payment, thanks (credit card) + [% CASE 'Pay05' %]Payment, thanks (debit) + [% CASE 'Pay06' %]Payment, thanks (check) + [% CASE 'Pay07' %]Payment, thanks (cryptocurrency) + [% CASE 'Pay08' %]Payment, thanks (PayPal) [% CASE 'N' %]New card [% CASE 'F' %]Fine [% CASE 'A' %]Account management fee --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -147,6 +147,18 @@ function moneyFormat(textObj) { +