Bug fix related to the selected currency
This commit is contained in:
parent
2295a64bff
commit
e0aad0e248
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ class PaymentController extends \BaseController
|
|||
$key = $invoice->invoice_number . '_details';
|
||||
$gateway = $invoice->client->account->account_gateways[0]->gateway;
|
||||
$paymentLibrary = $gateway->paymentlibrary;
|
||||
$currencyCode = $invoice->client->currency ? $invoice->client->currency->code : $invoice->account->currency ? $invoice->account->currency->code : 'USD';
|
||||
$currencyCode = $invoice->client->currency ? $invoice->client->currency->code : ($invoice->account->currency ? $invoice->account->currency->code : 'USD');
|
||||
|
||||
if ($input && $paymentLibrary->id == PAYMENT_LIBRARY_OMNIPAY)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue