use C4::Branch;
use C4::Debug;
use C4::Suggestions;
+use Koha::Acquisition::Currencies;
my $query = CGI->new;
my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
suggestions_count => $suggestions_count,
);
-my $cur = GetCurrency();
+my $cur = Koha::Acquisition::Currencies->get_active;
if ( $cur ) {
$template->param(
- currency => $cur->{currency},
+ currency => $cur->currency,
);
}
use C4::Output;
use C4::Accounts;
use C4::Members;
-use C4::Budgets qw(GetCurrency);
+use Koha::Acquisition::Currencies;
use Koha::Database;
my $cgi = new CGI;
}
);
-my $active_currency = GetCurrency();
+my $active_currency = Koha::Acquisition::Currencies->get_active;
my $token = $cgi->param('token');
my $payer_id = $cgi->param('PayerID');
'PAYERID' => $payer_id,
'TOKEN' => $token,
'PAYMENTREQUEST_0_AMT' => $amount,
- 'PAYMENTREQUEST_0_CURRENCYCODE' => $active_currency->{currency},
+ 'PAYMENTREQUEST_0_CURRENCYCODE' => $active_currency->currency,
};
my $response = $ua->request( POST $url, $nvp_params );
use C4::Auth;
use C4::Output;
use C4::Context;
-use C4::Budgets qw(GetCurrency);
+use Koha::Acquisition::Currencies;
use Koha::Database;
my $cgi = new CGI;
->get_column('amountoutstanding')->sum();
$amount_to_pay = sprintf( "%.2f", $amount_to_pay );
-my $active_currency = GetCurrency();
+my $active_currency = Koha::Acquisition::Currencies->get_active;
my $error = 0;
if ( $payment_method eq 'paypal' ) {
'BRANDNAME' => C4::Context->preference('LibraryName'),
'CANCELURL' => $cancel_url->as_string(),
'RETURNURL' => $return_url->as_string(),
- 'PAYMENTREQUEST_0_CURRENCYCODE' => $active_currency->{currency},
+ 'PAYMENTREQUEST_0_CURRENCYCODE' => $active_currency->currency,
'PAYMENTREQUEST_0_AMT' => $amount_to_pay,
'PAYMENTREQUEST_0_PAYMENTACTION' => 'Sale',
'PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD' => 'InstantPaymentOnly',