From 9c0202713ad2679e7aa486978a3b003b6f9fa489 Mon Sep 17 00:00:00 2001 From: Bartlomiej Szala Date: Mon, 16 May 2016 22:37:16 +0200 Subject: [PATCH] Enable swap symbol for currencies --- app/Libraries/Utils.php | 2 +- resources/views/money_script.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index e79d826439..ee50d23322 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -344,7 +344,7 @@ class Utils $decimal = $currency->decimal_separator; $precision = $currency->precision; $code = $currency->code; - $swapSymbol = false; + $swapSymbol = $currency->swap_currency_symbol; if ($countryId && $currencyId == CURRENCY_EURO) { $country = self::getFromCache($countryId, 'countries'); diff --git a/resources/views/money_script.blade.php b/resources/views/money_script.blade.php index 0dc44eac64..4cfd3efc65 100644 --- a/resources/views/money_script.blade.php +++ b/resources/views/money_script.blade.php @@ -70,7 +70,7 @@ var thousand = currency.thousand_separator; var decimal = currency.decimal_separator; var code = currency.code; - var swapSymbol = false; + var swapSymbol = currency.swap_currency_symbol; if (countryId && currencyId == {{ CURRENCY_EURO }}) { var country = countryMap[countryId];