diff --git a/app/Http/Controllers/Modals/Currencies.php b/app/Http/Controllers/Modals/Currencies.php index f75175965..172b373ae 100644 --- a/app/Http/Controllers/Modals/Currencies.php +++ b/app/Http/Controllers/Modals/Currencies.php @@ -64,7 +64,7 @@ class Currencies extends Controller */ public function store(Request $request) { - $currency = config('money.' . $request->get('code')); + $currency = config('money.currencies.' . $request->get('code')); $request['precision'] = (int) $currency['precision']; $request['symbol'] = $currency['symbol']; diff --git a/app/Http/Controllers/Settings/Currencies.php b/app/Http/Controllers/Settings/Currencies.php index 9abf7dfe8..d07fc08f1 100644 --- a/app/Http/Controllers/Settings/Currencies.php +++ b/app/Http/Controllers/Settings/Currencies.php @@ -235,7 +235,7 @@ class Currencies extends Controller if ($code) { $currencies = Currency::all()->pluck('rate', 'code'); - $currency = config('money.' . $code); + $currency = config('money.currencies.' . $code); $currency['rate'] = isset($currencies[$code]) ? $currencies[$code] : null; $currency['symbol_first'] = ! empty($currency['symbol_first']) ? 1 : 0; diff --git a/app/Http/Middleware/Money.php b/app/Http/Middleware/Money.php index 24f54f792..668b2e612 100644 --- a/app/Http/Middleware/Money.php +++ b/app/Http/Middleware/Money.php @@ -84,7 +84,7 @@ class Money $amount = $item['price']; - if (strpos($item['price'], config('money.' . $currency_code . '.symbol')) !== false) { + if (strpos($item['price'], config('money.currencies.' . $currency_code . '.symbol')) !== false) { $amount = $this->getAmount($item['price'], $currency_code); } @@ -101,8 +101,8 @@ class Money protected function getAmount($money_format, $currency_code) { try { - if (config('money.' . $currency_code . '.decimal_mark') !== '.') { - $money_format = Str::replaceFirst('.', config('money.' . $currency_code . '.decimal_mark'), $money_format); + if (config('money.currencies.' . $currency_code . '.decimal_mark') !== '.') { + $money_format = Str::replaceFirst('.', config('money.currencies.' . $currency_code . '.decimal_mark'), $money_format); } $amount = money($money_format, $currency_code)->getAmount(); diff --git a/app/Jobs/Banking/CreateBankingDocumentTransaction.php b/app/Jobs/Banking/CreateBankingDocumentTransaction.php index 711658dec..aa6806b56 100644 --- a/app/Jobs/Banking/CreateBankingDocumentTransaction.php +++ b/app/Jobs/Banking/CreateBankingDocumentTransaction.php @@ -69,7 +69,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate $this->request['company_id'] = $this->model->company_id; $this->request['currency_code'] = $currency_code; $this->request['paid_at'] = isset($this->request['paid_at']) ? $this->request['paid_at'] : Date::now()->toDateTimeString(); - $this->request['currency_rate'] = config('money.' . $currency_code . '.rate'); + $this->request['currency_rate'] = config('money.currencies.' . $currency_code . '.rate'); $this->request['account_id'] = isset($this->request['account_id']) ? $this->request['account_id'] : setting('default.account'); $this->request['document_id'] = isset($this->request['document_id']) ? $this->request['document_id'] : $this->model->id; $this->request['contact_id'] = isset($this->request['contact_id']) ? $this->request['contact_id'] : $this->model->contact_id; @@ -83,7 +83,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate $code = $this->request['currency_code']; $rate = $this->request['currency_rate']; - $precision = config('money.' . $code . '.precision'); + $precision = config('money.currencies.' . $code . '.precision'); $amount = $this->request['amount'] = round($this->request['amount'], $precision); diff --git a/app/Jobs/Banking/CreateTransfer.php b/app/Jobs/Banking/CreateTransfer.php index 8a444c322..70e12472e 100644 --- a/app/Jobs/Banking/CreateTransfer.php +++ b/app/Jobs/Banking/CreateTransfer.php @@ -107,7 +107,7 @@ class CreateTransfer extends Job implements HasOwner, HasSource, ShouldCreate $currency_rate = $this->request->get($type . '_account_rate'); if (empty($currency_rate)) { - $currency_rate = config('money.' . $this->getCurrencyCode($type) . '.rate'); + $currency_rate = config('money.currencies.' . $this->getCurrencyCode($type) . '.rate'); } return $currency_rate; diff --git a/app/Jobs/Banking/MatchBankingDocumentTransaction.php b/app/Jobs/Banking/MatchBankingDocumentTransaction.php index 203a3fdf4..49f6ebebb 100644 --- a/app/Jobs/Banking/MatchBankingDocumentTransaction.php +++ b/app/Jobs/Banking/MatchBankingDocumentTransaction.php @@ -42,7 +42,7 @@ class MatchBankingDocumentTransaction extends Job $code = $this->transaction->currency_code; $rate = $this->transaction->currency_rate; - $precision = config('money.' . $code . '.precision'); + $precision = config('money.currencies.' . $code . '.precision'); $amount = $this->transaction->amount = round($this->transaction->amount, $precision); diff --git a/app/Jobs/Banking/SplitTransaction.php b/app/Jobs/Banking/SplitTransaction.php index fb9bd696c..d3eed4432 100644 --- a/app/Jobs/Banking/SplitTransaction.php +++ b/app/Jobs/Banking/SplitTransaction.php @@ -56,7 +56,7 @@ class SplitTransaction extends Job implements ShouldUpdate $total_amount += $item['amount']; } - $precision = config('money.' . $this->model->currency_code . '.precision'); + $precision = config('money.currencies.' . $this->model->currency_code . '.precision'); $compare = bccomp($total_amount, $this->model->amount, $precision); diff --git a/app/Jobs/Banking/UpdateBankingDocumentTransaction.php b/app/Jobs/Banking/UpdateBankingDocumentTransaction.php index 3f89a92b2..2299c57e2 100644 --- a/app/Jobs/Banking/UpdateBankingDocumentTransaction.php +++ b/app/Jobs/Banking/UpdateBankingDocumentTransaction.php @@ -68,7 +68,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate $this->request['company_id'] = $this->model->company_id; $this->request['currency_code'] = $currency_code; $this->request['paid_at'] = isset($this->request['paid_at']) ? $this->request['paid_at'] : Date::now()->toDateTimeString(); - $this->request['currency_rate'] = config('money.' . $currency_code . '.rate'); + $this->request['currency_rate'] = config('money.currencies.' . $currency_code . '.rate'); $this->request['account_id'] = isset($this->request['account_id']) ? $this->request['account_id'] : setting('default.account'); $this->request['document_id'] = isset($this->request['document_id']) ? $this->request['document_id'] : $this->model->id; $this->request['contact_id'] = isset($this->request['contact_id']) ? $this->request['contact_id'] : $this->model->contact_id; @@ -82,7 +82,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate $code = $this->request['currency_code']; $rate = $this->request['currency_rate']; - $precision = config('money.' . $code . '.precision'); + $precision = config('money.currencies.' . $code . '.precision'); $amount = $this->request['amount'] = round($this->request['amount'], $precision); @@ -92,7 +92,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate $amount = round($converted_amount, $precision); } - // if you edit transaction before remove transaction amount + // if you edit transaction before remove transaction amount $this->model->paid_amount = ($this->model->paid - $this->transaction->amount); event(new PaidAmountCalculated($this->model)); diff --git a/app/Jobs/Banking/UpdateTransfer.php b/app/Jobs/Banking/UpdateTransfer.php index 7cd7f23b0..7d0ad78a8 100644 --- a/app/Jobs/Banking/UpdateTransfer.php +++ b/app/Jobs/Banking/UpdateTransfer.php @@ -102,7 +102,7 @@ class UpdateTransfer extends Job implements ShouldUpdate $currency_rate = $this->request->get($type . '_account_rate'); if (empty($currency_rate)) { - $currency_rate = config('money.' . $this->getCurrencyCode($type) . '.rate'); + $currency_rate = config('money.currencies.' . $this->getCurrencyCode($type) . '.rate'); } return $currency_rate; diff --git a/app/Jobs/Document/CreateDocumentItem.php b/app/Jobs/Document/CreateDocumentItem.php index 5ba45efbf..3e81058af 100644 --- a/app/Jobs/Document/CreateDocumentItem.php +++ b/app/Jobs/Document/CreateDocumentItem.php @@ -29,7 +29,7 @@ class CreateDocumentItem extends Job implements HasOwner, HasSource, ShouldCreat public function handle(): DocumentItem { $item_id = ! empty($this->request['item_id']) ? $this->request['item_id'] : 0; - $precision = config('money.' . $this->document->currency_code . '.precision'); + $precision = config('money.currencies.' . $this->document->currency_code . '.precision'); $item_amount = (double) $this->request['price'] * (double) $this->request['quantity']; diff --git a/app/Jobs/Document/CreateDocumentItemsAndTotals.php b/app/Jobs/Document/CreateDocumentItemsAndTotals.php index b2afe11b1..6ee7ad4e9 100644 --- a/app/Jobs/Document/CreateDocumentItemsAndTotals.php +++ b/app/Jobs/Document/CreateDocumentItemsAndTotals.php @@ -28,7 +28,7 @@ class CreateDocumentItemsAndTotals extends Job implements HasOwner, HasSource, S public function handle(): void { - $precision = config('money.' . $this->document->currency_code . '.precision'); + $precision = config('money.currencies.' . $this->document->currency_code . '.precision'); list($sub_total, $actual_total, $discount_amount_total, $taxes) = $this->createItems(); diff --git a/app/Models/Banking/Transaction.php b/app/Models/Banking/Transaction.php index 96f50d67c..b13f16881 100644 --- a/app/Models/Banking/Transaction.php +++ b/app/Models/Banking/Transaction.php @@ -319,7 +319,7 @@ class Transaction extends Model // Convert amount if not same currency if ($this->account->currency_code != $this->currency_code) { $to_code = $this->account->currency_code; - $to_rate = config('money.' . $this->account->currency_code . '.rate'); + $to_rate = config('money.currencies.' . $this->account->currency_code . '.rate'); $amount = $this->convertBetween($amount, $this->currency_code, $this->currency_rate, $to_code, $to_rate); } diff --git a/app/Models/Document/Document.php b/app/Models/Document/Document.php index edf79ae79..e30eaecd6 100644 --- a/app/Models/Document/Document.php +++ b/app/Models/Document/Document.php @@ -329,7 +329,7 @@ class Document extends Model $code = $this->currency_code; $rate = $this->currency_rate; - $precision = config('money.' . $code . '.precision'); + $precision = config('money.currencies.' . $code . '.precision'); if ($this->transactions->count()) { foreach ($this->transactions as $transaction) { @@ -361,7 +361,7 @@ class Document extends Model $code = $this->currency_code; $rate = $this->currency_rate; - $precision = config('money.' . $code . '.precision'); + $precision = config('money.currencies.' . $code . '.precision'); if ($this->transactions->count()) { foreach ($this->transactions as $transaction) { @@ -391,7 +391,7 @@ class Document extends Model */ public function getAmountDueAttribute() { - $precision = config('money.' . $this->currency_code . '.precision'); + $precision = config('money.currencies.' . $this->currency_code . '.precision'); return round($this->amount - $this->paid, $precision); } diff --git a/app/Models/Setting/Currency.php b/app/Models/Setting/Currency.php index d74ec2323..9e7bfd358 100644 --- a/app/Models/Setting/Currency.php +++ b/app/Models/Setting/Currency.php @@ -122,7 +122,7 @@ class Currency extends Model public function getPrecisionAttribute($value) { if (is_null($value)) { - return config('money.' . $this->code . '.precision'); + return config('money.currencies.' . $this->code . '.precision'); } return (int) $value; @@ -136,7 +136,7 @@ class Currency extends Model public function getSymbolAttribute($value) { if (is_null($value)) { - return config('money.' . $this->code . '.symbol'); + return config('money.currencies.' . $this->code . '.symbol'); } return $value; @@ -150,7 +150,7 @@ class Currency extends Model public function getSymbolFirstAttribute($value) { if (is_null($value)) { - return config('money.' . $this->code . '.symbol_first'); + return config('money.currencies.' . $this->code . '.symbol_first'); } return $value; @@ -164,7 +164,7 @@ class Currency extends Model public function getDecimalMarkAttribute($value) { if (is_null($value)) { - return config('money.' . $this->code . '.decimal_mark'); + return config('money.currencies.' . $this->code . '.decimal_mark'); } return $value; @@ -178,7 +178,7 @@ class Currency extends Model public function getThousandsSeparatorAttribute($value) { if (is_null($value)) { - return config('money.' . $this->code . '.thousands_separator'); + return config('money.currencies.' . $this->code . '.thousands_separator'); } return $value; diff --git a/app/Traits/Charts.php b/app/Traits/Charts.php index bd5474395..0eaa09f3a 100644 --- a/app/Traits/Charts.php +++ b/app/Traits/Charts.php @@ -98,11 +98,11 @@ trait Charts public function getChartLabelFormatter($type = 'money', $position = null) { $label = ''; - $decimal_mark = str_replace("'", "\\'", config('money.' . default_currency() . '.decimal_mark')); - $thousands_separator = str_replace("'", "\\'", config('money.' . default_currency() . '.thousands_separator')); - $symbol = str_replace("'", "\\'", config('money.' . default_currency() . '.symbol')); - $symbol_first = str_replace("'", "\\'", config('money.' . default_currency() . '.symbol_first')); - $precision = str_replace("'", "\\'", config('money.' . default_currency() . '.precision')); + $decimal_mark = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.decimal_mark')); + $thousands_separator = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.thousands_separator')); + $symbol = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.symbol')); + $symbol_first = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.symbol_first')); + $precision = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.precision')); $percent_position = $position ?: setting('localisation.percent_position'); switch ($type) { diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 8681e785c..64a6dc57c 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -95,11 +95,11 @@ trait Import $data = [ 'company_id' => company_id(), 'code' => $row['currency_code'], - 'name' => isset($row['currency_name']) ? $row['currency_name'] : config('money.' . $row['currency_code'] . '.name'), + 'name' => isset($row['currency_name']) ? $row['currency_name'] : config('money.currencies.' . $row['currency_code'] . '.name'), 'rate' => isset($row['currency_rate']) ? $row['currency_rate'] : 1, - 'symbol' => isset($row['currency_symbol']) ? $row['currency_symbol'] : config('money.' . $row['currency_code'] . '.symbol'), - 'precision' => isset($row['currency_precision']) ? $row['currency_precision'] : config('money.' . $row['currency_code'] . '.precision'), - 'decimal_mark' => isset($row['currency_decimal_mark']) ? $row['currency_decimal_mark'] : config('money.' . $row['currency_code'] . '.decimal_mark'), + 'symbol' => isset($row['currency_symbol']) ? $row['currency_symbol'] : config('money.currencies.' . $row['currency_code'] . '.symbol'), + 'precision' => isset($row['currency_precision']) ? $row['currency_precision'] : config('money.currencies.' . $row['currency_code'] . '.precision'), + 'decimal_mark' => isset($row['currency_decimal_mark']) ? $row['currency_decimal_mark'] : config('money.currencies.' . $row['currency_code'] . '.decimal_mark'), 'created_from' => !empty($row['created_from']) ? $row['created_from'] : $this->getSourcePrefix() . 'import', 'created_by' => !empty($row['created_by']) ? $row['created_by'] : user()->id, ]; diff --git a/app/Utilities/Overrider.php b/app/Utilities/Overrider.php index 12dd16dee..51422c75a 100644 --- a/app/Utilities/Overrider.php +++ b/app/Utilities/Overrider.php @@ -73,16 +73,16 @@ class Overrider $currencies = Currency::all(); foreach ($currencies as $currency) { - config(['money.' . $currency->code . '.name' => $currency->name]); - config(['money.' . $currency->code . '.rate' => $currency->rate]); - config(['money.' . $currency->code . '.precision' => $currency->precision]); - config(['money.' . $currency->code . '.symbol' => $currency->symbol]); - config(['money.' . $currency->code . '.symbol_first' => $currency->symbol_first]); - config(['money.' . $currency->code . '.decimal_mark' => $currency->decimal_mark]); - config(['money.' . $currency->code . '.thousands_separator' => $currency->thousands_separator]); + config(['money.currencies.' . $currency->code . '.name' => $currency->name]); + config(['money.currencies.' . $currency->code . '.rate' => $currency->rate]); + config(['money.currencies.' . $currency->code . '.precision' => $currency->precision]); + config(['money.currencies.' . $currency->code . '.symbol' => $currency->symbol]); + config(['money.currencies.' . $currency->code . '.symbol_first' => $currency->symbol_first]); + config(['money.currencies.' . $currency->code . '.decimal_mark' => $currency->decimal_mark]); + config(['money.currencies.' . $currency->code . '.thousands_separator' => $currency->thousands_separator]); } // Set currencies with new settings - \Akaunting\Money\Currency::setCurrencies(config('money')); + \Akaunting\Money\Currency::setCurrencies(config('money.currencies')); } } diff --git a/app/View/Components/Index/Currency.php b/app/View/Components/Index/Currency.php index 59c436873..b18352c21 100644 --- a/app/View/Components/Index/Currency.php +++ b/app/View/Components/Index/Currency.php @@ -38,7 +38,7 @@ class Currency extends Component { $code = ($this->code) ? $this->code : default_currency(); - $this->currency = config('money.' . $code . '.name'); + $this->currency = config('money.currencies.' . $code . '.name'); return view('components.index.currency'); } diff --git a/app/Widgets/CashFlow.php b/app/Widgets/CashFlow.php index 91a3a7196..f5337528a 100644 --- a/app/Widgets/CashFlow.php +++ b/app/Widgets/CashFlow.php @@ -191,7 +191,7 @@ class CashFlow extends Widget $totals[$i] += $item->getAmountConvertedToDefault(); } - $precision = config('money.' . default_currency() . '.precision'); + $precision = config('money.currencies.' . default_currency() . '.precision'); foreach ($totals as $key => $value) { if ($type == 'expense') { @@ -206,7 +206,7 @@ class CashFlow extends Widget { $profit = []; - $precision = config('money.' . default_currency() . '.precision'); + $precision = config('money.currencies.' . default_currency() . '.precision'); foreach ($incomes as $key => $income) { $value = $income - abs($expenses[$key]); diff --git a/app/Widgets/ProfitLoss.php b/app/Widgets/ProfitLoss.php index 1ca1242c3..0d3a87b49 100644 --- a/app/Widgets/ProfitLoss.php +++ b/app/Widgets/ProfitLoss.php @@ -195,7 +195,7 @@ class ProfitLoss extends Widget $totals[$i] += $item->getAmountConvertedToDefault(); } - $precision = config('money.' . default_currency() . '.precision'); + $precision = config('money.currencies.' . default_currency() . '.precision'); foreach ($totals as $key => $value) { $totals[$key] = round($value, $precision); diff --git a/composer.json b/composer.json index 7f7e7fe97..0f93fd257 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "akaunting/laravel-language": "^1.0", "akaunting/laravel-menu": "^3.0", "akaunting/laravel-module": "^3.0", - "akaunting/laravel-money": "^4.0", + "akaunting/laravel-money": "^5.0", "akaunting/laravel-mutable-observer": "^2.0", "akaunting/laravel-setting": "^1.2", "akaunting/laravel-sortable": "^2.0", diff --git a/composer.lock b/composer.lock index 1fcc3515f..dc93056c9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e5aa0bb32c6ddfd816280b738eb71113", + "content-hash": "c3f66e10a7d0f5845e1d1a4f99dfced6", "packages": [ { "name": "akaunting/laravel-apexcharts", @@ -409,16 +409,16 @@ }, { "name": "akaunting/laravel-money", - "version": "4.0.1", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/akaunting/laravel-money.git", - "reference": "df99d0f5d415490ef7e79362c3b694e8cc8af903" + "reference": "104d41aabc144150054d225fec6b2a0ae8b76d1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/akaunting/laravel-money/zipball/df99d0f5d415490ef7e79362c3b694e8cc8af903", - "reference": "df99d0f5d415490ef7e79362c3b694e8cc8af903", + "url": "https://api.github.com/repos/akaunting/laravel-money/zipball/104d41aabc144150054d225fec6b2a0ae8b76d1d", + "reference": "104d41aabc144150054d225fec6b2a0ae8b76d1d", "shasum": "" }, "require": { @@ -472,9 +472,9 @@ ], "support": { "issues": "https://github.com/akaunting/laravel-money/issues", - "source": "https://github.com/akaunting/laravel-money/tree/4.0.1" + "source": "https://github.com/akaunting/laravel-money/tree/5.0.0" }, - "time": "2023-03-16T14:39:27+00:00" + "time": "2023-07-10T09:34:33+00:00" }, { "name": "akaunting/laravel-mutable-observer", @@ -1245,16 +1245,16 @@ }, { "name": "barryvdh/reflection-docblock", - "version": "v2.1.0", + "version": "v2.1.1", "source": { "type": "git", "url": "https://github.com/barryvdh/ReflectionDocBlock.git", - "reference": "bf44b757feb8ba1734659029357646466ded673e" + "reference": "e6811e927f0ecc37cc4deaa6627033150343e597" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/bf44b757feb8ba1734659029357646466ded673e", - "reference": "bf44b757feb8ba1734659029357646466ded673e", + "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/e6811e927f0ecc37cc4deaa6627033150343e597", + "reference": "e6811e927f0ecc37cc4deaa6627033150343e597", "shasum": "" }, "require": { @@ -1291,9 +1291,9 @@ } ], "support": { - "source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.1.0" + "source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.1.1" }, - "time": "2022-10-31T15:35:43+00:00" + "time": "2023-06-14T05:06:27+00:00" }, { "name": "bkwld/cloner", @@ -14256,16 +14256,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.2.3", + "version": "10.2.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "35c8cac1734ede2ae354a6644f7088356ff5b08e" + "reference": "68484779b5a2ed711fbdeba6ca01910d87acdff2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/35c8cac1734ede2ae354a6644f7088356ff5b08e", - "reference": "35c8cac1734ede2ae354a6644f7088356ff5b08e", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/68484779b5a2ed711fbdeba6ca01910d87acdff2", + "reference": "68484779b5a2ed711fbdeba6ca01910d87acdff2", "shasum": "" }, "require": { @@ -14337,7 +14337,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.2.3" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.2.4" }, "funding": [ { @@ -14353,7 +14353,7 @@ "type": "tidelift" } ], - "time": "2023-06-30T06:17:38+00:00" + "time": "2023-07-10T04:06:08+00:00" }, { "name": "sebastian/cli-parser", diff --git a/config/money.php b/config/money.php index 11a4feb08..543f6ea9d 100644 --- a/config/money.php +++ b/config/money.php @@ -2,1807 +2,1817 @@ return [ - 'AED' => [ - 'name' => 'UAE Dirham', - 'code' => 784, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'د.إ', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', + 'defaults' => [ + + 'currency' => env('MONEY_DEFAULTS_CURRENCY', 'USD'), + + ], + + 'currencies' => [ + + 'AED' => [ + 'name' => 'UAE Dirham', + 'code' => 784, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'د.إ', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'AFN' => [ + 'name' => 'Afghani', + 'code' => 971, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '؋', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ALL' => [ + 'name' => 'Lek', + 'code' => 8, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'L', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'AMD' => [ + 'name' => 'Armenian Dram', + 'code' => 51, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'դր.', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ANG' => [ + 'name' => 'Netherlands Antillean Guilder', + 'code' => 532, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ƒ', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'AOA' => [ + 'name' => 'Kwanza', + 'code' => 973, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Kz', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ARS' => [ + 'name' => 'Argentine Peso', + 'code' => 32, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'AUD' => [ + 'name' => 'Australian Dollar', + 'code' => 36, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ' ', + ], + + 'AWG' => [ + 'name' => 'Aruban Florin', + 'code' => 533, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ƒ', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'AZN' => [ + 'name' => 'Azerbaijanian Manat', + 'code' => 944, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₼', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BAM' => [ + 'name' => 'Convertible Mark', + 'code' => 977, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'КМ', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BBD' => [ + 'name' => 'Barbados Dollar', + 'code' => 52, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BDT' => [ + 'name' => 'Taka', + 'code' => 50, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '৳', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BGN' => [ + 'name' => 'Bulgarian Lev', + 'code' => 975, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'лв', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => ' ', + ], + + 'BHD' => [ + 'name' => 'Bahraini Dinar', + 'code' => 48, + 'precision' => 3, + 'subunit' => 1000, + 'symbol' => 'ب.د', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BIF' => [ + 'name' => 'Burundi Franc', + 'code' => 108, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BMD' => [ + 'name' => 'Bermudian Dollar', + 'code' => 60, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BND' => [ + 'name' => 'Brunei Dollar', + 'code' => 96, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BOB' => [ + 'name' => 'Boliviano', + 'code' => 68, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Bs.', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BOV' => [ + 'name' => 'Mvdol', + 'code' => 984, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Bs.', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BRL' => [ + 'name' => 'Brazilian Real', + 'code' => 986, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'R$', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'BSD' => [ + 'name' => 'Bahamian Dollar', + 'code' => 44, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BTN' => [ + 'name' => 'Ngultrum', + 'code' => 64, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Nu.', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BWP' => [ + 'name' => 'Pula', + 'code' => 72, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'P', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'BYN' => [ + 'name' => 'Belarussian Ruble', + 'code' => 974, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Br', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => ' ', + ], + + 'BZD' => [ + 'name' => 'Belize Dollar', + 'code' => 84, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CAD' => [ + 'name' => 'Canadian Dollar', + 'code' => 124, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CDF' => [ + 'name' => 'Congolese Franc', + 'code' => 976, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CHF' => [ + 'name' => 'Swiss Franc', + 'code' => 756, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'CHF', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CLF' => [ + 'name' => 'Unidades de fomento', + 'code' => 990, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'UF', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'CLP' => [ + 'name' => 'Chilean Peso', + 'code' => 152, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'CNY' => [ + 'name' => 'Yuan Renminbi', + 'code' => 156, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '¥', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'COP' => [ + 'name' => 'Colombian Peso', + 'code' => 170, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'CRC' => [ + 'name' => 'Costa Rican Colon', + 'code' => 188, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₡', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'CUC' => [ + 'name' => 'Peso Convertible', + 'code' => 931, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CUP' => [ + 'name' => 'Cuban Peso', + 'code' => 192, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CVE' => [ + 'name' => 'Cape Verde Escudo', + 'code' => 132, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'CZK' => [ + 'name' => 'Czech Koruna', + 'code' => 203, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Kč', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'DJF' => [ + 'name' => 'Djibouti Franc', + 'code' => 262, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fdj', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'DKK' => [ + 'name' => 'Danish Krone', + 'code' => 208, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'kr', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'DOP' => [ + 'name' => 'Dominican Peso', + 'code' => 214, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'DZD' => [ + 'name' => 'Algerian Dinar', + 'code' => 12, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'د.ج', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'EGP' => [ + 'name' => 'Egyptian Pound', + 'code' => 818, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ج.م', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ERN' => [ + 'name' => 'Nakfa', + 'code' => 232, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Nfk', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ETB' => [ + 'name' => 'Ethiopian Birr', + 'code' => 230, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Br', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'EUR' => [ + 'name' => 'Euro', + 'code' => 978, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '€', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'FJD' => [ + 'name' => 'Fiji Dollar', + 'code' => 242, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'FKP' => [ + 'name' => 'Falkland Islands Pound', + 'code' => 238, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GBP' => [ + 'name' => 'Pound Sterling', + 'code' => 826, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GEL' => [ + 'name' => 'Lari', + 'code' => 981, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ლ', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GHS' => [ + 'name' => 'Ghana Cedi', + 'code' => 936, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₵', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GIP' => [ + 'name' => 'Gibraltar Pound', + 'code' => 292, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GMD' => [ + 'name' => 'Dalasi', + 'code' => 270, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'D', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GNF' => [ + 'name' => 'Guinea Franc', + 'code' => 324, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GTQ' => [ + 'name' => 'Quetzal', + 'code' => 320, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Q', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'GYD' => [ + 'name' => 'Guyana Dollar', + 'code' => 328, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'HKD' => [ + 'name' => 'Hong Kong Dollar', + 'code' => 344, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'HNL' => [ + 'name' => 'Lempira', + 'code' => 340, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'L', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'HRK' => [ + 'name' => 'Croatian Kuna', + 'code' => 191, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'kn', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'HTG' => [ + 'name' => 'Gourde', + 'code' => 332, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'G', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'HUF' => [ + 'name' => 'Forint', + 'code' => 348, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Ft', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'IDR' => [ + 'name' => 'Rupiah', + 'code' => 360, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Rp', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'ILS' => [ + 'name' => 'New Israeli Sheqel', + 'code' => 376, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₪', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'INR' => [ + 'name' => 'Indian Rupee', + 'code' => 356, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₹', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'IQD' => [ + 'name' => 'Iraqi Dinar', + 'code' => 368, + 'precision' => 3, + 'subunit' => 1000, + 'symbol' => 'ع.د', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'IRR' => [ + 'name' => 'Iranian Rial', + 'code' => 364, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '﷼', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ISK' => [ + 'name' => 'Iceland Krona', + 'code' => 352, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'kr', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'JMD' => [ + 'name' => 'Jamaican Dollar', + 'code' => 388, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'JOD' => [ + 'name' => 'Jordanian Dinar', + 'code' => 400, + 'precision' => 3, + 'subunit' => 100, + 'symbol' => 'د.ا', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'JPY' => [ + 'name' => 'Yen', + 'code' => 392, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => '¥', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KES' => [ + 'name' => 'Kenyan Shilling', + 'code' => 404, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'KSh', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KGS' => [ + 'name' => 'Som', + 'code' => 417, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'som', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KHR' => [ + 'name' => 'Riel', + 'code' => 116, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '៛', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KMF' => [ + 'name' => 'Comoro Franc', + 'code' => 174, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KPW' => [ + 'name' => 'North Korean Won', + 'code' => 408, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₩', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KRW' => [ + 'name' => 'Won', + 'code' => 410, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => '₩', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KWD' => [ + 'name' => 'Kuwaiti Dinar', + 'code' => 414, + 'precision' => 3, + 'subunit' => 1000, + 'symbol' => 'د.ك', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KYD' => [ + 'name' => 'Cayman Islands Dollar', + 'code' => 136, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'KZT' => [ + 'name' => 'Tenge', + 'code' => 398, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '〒', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LAK' => [ + 'name' => 'Kip', + 'code' => 418, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₭', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LBP' => [ + 'name' => 'Lebanese Pound', + 'code' => 422, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ل.ل', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LKR' => [ + 'name' => 'Sri Lanka Rupee', + 'code' => 144, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₨', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LRD' => [ + 'name' => 'Liberian Dollar', + 'code' => 430, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LSL' => [ + 'name' => 'Loti', + 'code' => 426, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'L', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LTL' => [ + 'name' => 'Lithuanian Litas', + 'code' => 440, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Lt', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LVL' => [ + 'name' => 'Latvian Lats', + 'code' => 428, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Ls', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'LYD' => [ + 'name' => 'Libyan Dinar', + 'code' => 434, + 'precision' => 3, + 'subunit' => 1000, + 'symbol' => 'ل.د', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MAD' => [ + 'name' => 'Moroccan Dirham', + 'code' => 504, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'د.م.', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MDL' => [ + 'name' => 'Moldovan Leu', + 'code' => 498, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'L', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MGA' => [ + 'name' => 'Malagasy Ariary', + 'code' => 969, + 'precision' => 2, + 'subunit' => 5, + 'symbol' => 'Ar', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MKD' => [ + 'name' => 'Denar', + 'code' => 807, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ден', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MMK' => [ + 'name' => 'Kyat', + 'code' => 104, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'K', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MNT' => [ + 'name' => 'Tugrik', + 'code' => 496, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₮', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MOP' => [ + 'name' => 'Pataca', + 'code' => 446, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'P', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MRO' => [ + 'name' => 'Ouguiya', + 'code' => 478, + 'precision' => 2, + 'subunit' => 5, + 'symbol' => 'UM', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MUR' => [ + 'name' => 'Mauritius Rupee', + 'code' => 480, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₨', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MVR' => [ + 'name' => 'Rufiyaa', + 'code' => 462, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'MVR', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MWK' => [ + 'name' => 'Kwacha', + 'code' => 454, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'MK', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MXN' => [ + 'name' => 'Mexican Peso', + 'code' => 484, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MYR' => [ + 'name' => 'Malaysian Ringgit', + 'code' => 458, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'RM', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'MZN' => [ + 'name' => 'Mozambique Metical', + 'code' => 943, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'MTn', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'NAD' => [ + 'name' => 'Namibia Dollar', + 'code' => 516, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'NGN' => [ + 'name' => 'Naira', + 'code' => 566, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₦', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'NIO' => [ + 'name' => 'Cordoba Oro', + 'code' => 558, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'C$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'NOK' => [ + 'name' => 'Norwegian Krone', + 'code' => 578, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'kr', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'NPR' => [ + 'name' => 'Nepalese Rupee', + 'code' => 524, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₨', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'NZD' => [ + 'name' => 'New Zealand Dollar', + 'code' => 554, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'OMR' => [ + 'name' => 'Rial Omani', + 'code' => 512, + 'precision' => 3, + 'subunit' => 1000, + 'symbol' => 'ر.ع.', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'PAB' => [ + 'name' => 'Balboa', + 'code' => 590, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'B/.', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'PEN' => [ + 'name' => 'Sol', + 'code' => 604, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'S/', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'PGK' => [ + 'name' => 'Kina', + 'code' => 598, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'K', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'PHP' => [ + 'name' => 'Philippine Peso', + 'code' => 608, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₱', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'PKR' => [ + 'name' => 'Pakistan Rupee', + 'code' => 586, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₨', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'PLN' => [ + 'name' => 'Zloty', + 'code' => 985, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'zł', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => ' ', + ], + + 'PYG' => [ + 'name' => 'Guarani', + 'code' => 600, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => '₲', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'QAR' => [ + 'name' => 'Qatari Rial', + 'code' => 634, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ر.ق', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'RON' => [ + 'name' => 'New Romanian Leu', + 'code' => 946, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Lei', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'RSD' => [ + 'name' => 'Serbian Dinar', + 'code' => 941, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'РСД', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'RUB' => [ + 'name' => 'Russian Ruble', + 'code' => 643, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₽', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'RWF' => [ + 'name' => 'Rwanda Franc', + 'code' => 646, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'FRw', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SAR' => [ + 'name' => 'Saudi Riyal', + 'code' => 682, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ر.س', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SBD' => [ + 'name' => 'Solomon Islands Dollar', + 'code' => 90, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SCR' => [ + 'name' => 'Seychelles Rupee', + 'code' => 690, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₨', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SDG' => [ + 'name' => 'Sudanese Pound', + 'code' => 938, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SEK' => [ + 'name' => 'Swedish Krona', + 'code' => 752, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'kr', + 'symbol_first' => false, + 'decimal_mark' => ',', + 'thousands_separator' => ' ', + ], + + 'SGD' => [ + 'name' => 'Singapore Dollar', + 'code' => 702, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SHP' => [ + 'name' => 'Saint Helena Pound', + 'code' => 654, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SLL' => [ + 'name' => 'Leone', + 'code' => 694, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Le', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SOS' => [ + 'name' => 'Somali Shilling', + 'code' => 706, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Sh', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SRD' => [ + 'name' => 'Surinam Dollar', + 'code' => 968, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SSP' => [ + 'name' => 'South Sudanese Pound', + 'code' => 728, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'STD' => [ + 'name' => 'Dobra', + 'code' => 678, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Db', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SVC' => [ + 'name' => 'El Salvador Colon', + 'code' => 222, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₡', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SYP' => [ + 'name' => 'Syrian Pound', + 'code' => 760, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '£S', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'SZL' => [ + 'name' => 'Lilangeni', + 'code' => 748, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'E', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'THB' => [ + 'name' => 'Baht', + 'code' => 764, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '฿', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TJS' => [ + 'name' => 'Somoni', + 'code' => 972, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ЅМ', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TMT' => [ + 'name' => 'Turkmenistan New Manat', + 'code' => 934, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'T', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TND' => [ + 'name' => 'Tunisian Dinar', + 'code' => 788, + 'precision' => 3, + 'subunit' => 1000, + 'symbol' => 'د.ت', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TOP' => [ + 'name' => 'Pa’anga', + 'code' => 776, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'T$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TRY' => [ + 'name' => 'Turkish Lira', + 'code' => 949, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₺', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'TTD' => [ + 'name' => 'Trinidad and Tobago Dollar', + 'code' => 780, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TWD' => [ + 'name' => 'New Taiwan Dollar', + 'code' => 901, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'TZS' => [ + 'name' => 'Tanzanian Shilling', + 'code' => 834, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Sh', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'UAH' => [ + 'name' => 'Hryvnia', + 'code' => 980, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '₴', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'UGX' => [ + 'name' => 'Uganda Shilling', + 'code' => 800, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'USh', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'USD' => [ + 'name' => 'US Dollar', + 'code' => 840, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'UYU' => [ + 'name' => 'Peso Uruguayo', + 'code' => 858, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'UZS' => [ + 'name' => 'Uzbekistan Sum', + 'code' => 860, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'лв', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'VEF' => [ + 'name' => 'Bolivar', + 'code' => 937, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'Bs F', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'VND' => [ + 'name' => 'Dong', + 'code' => 704, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => '₫', + 'symbol_first' => true, + 'decimal_mark' => ',', + 'thousands_separator' => '.', + ], + + 'VUV' => [ + 'name' => 'Vatu', + 'code' => 548, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Vt', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'WST' => [ + 'name' => 'Tala', + 'code' => 882, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'T', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XAF' => [ + 'name' => 'CFA Franc BEAC', + 'code' => 950, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XAG' => [ + 'name' => 'Silver', + 'code' => 961, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'oz t', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XAU' => [ + 'name' => 'Gold', + 'code' => 959, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'oz t', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XCD' => [ + 'name' => 'East Caribbean Dollar', + 'code' => 951, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XDR' => [ + 'name' => 'SDR (Special Drawing Right)', + 'code' => 960, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'SDR', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XOF' => [ + 'name' => 'CFA Franc BCEAO', + 'code' => 952, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'XPF' => [ + 'name' => 'CFP Franc', + 'code' => 953, + 'precision' => 0, + 'subunit' => 1, + 'symbol' => 'Fr', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'YER' => [ + 'name' => 'Yemeni Rial', + 'code' => 886, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '﷼', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ZAR' => [ + 'name' => 'Rand', + 'code' => 710, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'R', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ZMW' => [ + 'name' => 'Zambian Kwacha', + 'code' => 967, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => 'ZK', + 'symbol_first' => false, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], + + 'ZWL' => [ + 'name' => 'Zimbabwe Dollar', + 'code' => 932, + 'precision' => 2, + 'subunit' => 100, + 'symbol' => '$', + 'symbol_first' => true, + 'decimal_mark' => '.', + 'thousands_separator' => ',', + ], ], - 'AFN' => [ - 'name' => 'Afghani', - 'code' => 971, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '؋', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ALL' => [ - 'name' => 'Lek', - 'code' => 8, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'L', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'AMD' => [ - 'name' => 'Armenian Dram', - 'code' => 51, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'դր.', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ANG' => [ - 'name' => 'Netherlands Antillean Guilder', - 'code' => 532, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ƒ', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'AOA' => [ - 'name' => 'Kwanza', - 'code' => 973, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Kz', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ARS' => [ - 'name' => 'Argentine Peso', - 'code' => 32, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'AUD' => [ - 'name' => 'Australian Dollar', - 'code' => 36, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ' ', - ], - - 'AWG' => [ - 'name' => 'Aruban Florin', - 'code' => 533, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ƒ', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'AZN' => [ - 'name' => 'Azerbaijanian Manat', - 'code' => 944, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₼', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BAM' => [ - 'name' => 'Convertible Mark', - 'code' => 977, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'КМ', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BBD' => [ - 'name' => 'Barbados Dollar', - 'code' => 52, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BDT' => [ - 'name' => 'Taka', - 'code' => 50, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '৳', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BGN' => [ - 'name' => 'Bulgarian Lev', - 'code' => 975, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'лв', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => ' ', - ], - - 'BHD' => [ - 'name' => 'Bahraini Dinar', - 'code' => 48, - 'precision' => 3, - 'subunit' => 1000, - 'symbol' => 'ب.د', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BIF' => [ - 'name' => 'Burundi Franc', - 'code' => 108, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BMD' => [ - 'name' => 'Bermudian Dollar', - 'code' => 60, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BND' => [ - 'name' => 'Brunei Dollar', - 'code' => 96, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BOB' => [ - 'name' => 'Boliviano', - 'code' => 68, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Bs.', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BOV' => [ - 'name' => 'Mvdol', - 'code' => 984, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Bs.', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BRL' => [ - 'name' => 'Brazilian Real', - 'code' => 986, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'R$', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'BSD' => [ - 'name' => 'Bahamian Dollar', - 'code' => 44, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BTN' => [ - 'name' => 'Ngultrum', - 'code' => 64, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Nu.', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BWP' => [ - 'name' => 'Pula', - 'code' => 72, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'P', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'BYN' => [ - 'name' => 'Belarussian Ruble', - 'code' => 974, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Br', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => ' ', - ], - - 'BZD' => [ - 'name' => 'Belize Dollar', - 'code' => 84, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CAD' => [ - 'name' => 'Canadian Dollar', - 'code' => 124, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CDF' => [ - 'name' => 'Congolese Franc', - 'code' => 976, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CHF' => [ - 'name' => 'Swiss Franc', - 'code' => 756, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'CHF', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CLF' => [ - 'name' => 'Unidades de fomento', - 'code' => 990, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'UF', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'CLP' => [ - 'name' => 'Chilean Peso', - 'code' => 152, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'CNY' => [ - 'name' => 'Yuan Renminbi', - 'code' => 156, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '¥', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'COP' => [ - 'name' => 'Colombian Peso', - 'code' => 170, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'CRC' => [ - 'name' => 'Costa Rican Colon', - 'code' => 188, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₡', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'CUC' => [ - 'name' => 'Peso Convertible', - 'code' => 931, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CUP' => [ - 'name' => 'Cuban Peso', - 'code' => 192, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CVE' => [ - 'name' => 'Cape Verde Escudo', - 'code' => 132, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'CZK' => [ - 'name' => 'Czech Koruna', - 'code' => 203, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Kč', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'DJF' => [ - 'name' => 'Djibouti Franc', - 'code' => 262, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fdj', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'DKK' => [ - 'name' => 'Danish Krone', - 'code' => 208, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'kr', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'DOP' => [ - 'name' => 'Dominican Peso', - 'code' => 214, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'DZD' => [ - 'name' => 'Algerian Dinar', - 'code' => 12, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'د.ج', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'EGP' => [ - 'name' => 'Egyptian Pound', - 'code' => 818, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ج.م', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ERN' => [ - 'name' => 'Nakfa', - 'code' => 232, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Nfk', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ETB' => [ - 'name' => 'Ethiopian Birr', - 'code' => 230, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Br', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'EUR' => [ - 'name' => 'Euro', - 'code' => 978, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '€', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'FJD' => [ - 'name' => 'Fiji Dollar', - 'code' => 242, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'FKP' => [ - 'name' => 'Falkland Islands Pound', - 'code' => 238, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GBP' => [ - 'name' => 'Pound Sterling', - 'code' => 826, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GEL' => [ - 'name' => 'Lari', - 'code' => 981, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ლ', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GHS' => [ - 'name' => 'Ghana Cedi', - 'code' => 936, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₵', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GIP' => [ - 'name' => 'Gibraltar Pound', - 'code' => 292, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GMD' => [ - 'name' => 'Dalasi', - 'code' => 270, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'D', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GNF' => [ - 'name' => 'Guinea Franc', - 'code' => 324, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GTQ' => [ - 'name' => 'Quetzal', - 'code' => 320, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Q', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'GYD' => [ - 'name' => 'Guyana Dollar', - 'code' => 328, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'HKD' => [ - 'name' => 'Hong Kong Dollar', - 'code' => 344, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'HNL' => [ - 'name' => 'Lempira', - 'code' => 340, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'L', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'HRK' => [ - 'name' => 'Croatian Kuna', - 'code' => 191, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'kn', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'HTG' => [ - 'name' => 'Gourde', - 'code' => 332, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'G', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'HUF' => [ - 'name' => 'Forint', - 'code' => 348, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Ft', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'IDR' => [ - 'name' => 'Rupiah', - 'code' => 360, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Rp', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'ILS' => [ - 'name' => 'New Israeli Sheqel', - 'code' => 376, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₪', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'INR' => [ - 'name' => 'Indian Rupee', - 'code' => 356, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₹', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'IQD' => [ - 'name' => 'Iraqi Dinar', - 'code' => 368, - 'precision' => 3, - 'subunit' => 1000, - 'symbol' => 'ع.د', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'IRR' => [ - 'name' => 'Iranian Rial', - 'code' => 364, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '﷼', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ISK' => [ - 'name' => 'Iceland Krona', - 'code' => 352, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'kr', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'JMD' => [ - 'name' => 'Jamaican Dollar', - 'code' => 388, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'JOD' => [ - 'name' => 'Jordanian Dinar', - 'code' => 400, - 'precision' => 3, - 'subunit' => 100, - 'symbol' => 'د.ا', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'JPY' => [ - 'name' => 'Yen', - 'code' => 392, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => '¥', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KES' => [ - 'name' => 'Kenyan Shilling', - 'code' => 404, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'KSh', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KGS' => [ - 'name' => 'Som', - 'code' => 417, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'som', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KHR' => [ - 'name' => 'Riel', - 'code' => 116, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '៛', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KMF' => [ - 'name' => 'Comoro Franc', - 'code' => 174, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KPW' => [ - 'name' => 'North Korean Won', - 'code' => 408, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₩', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KRW' => [ - 'name' => 'Won', - 'code' => 410, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => '₩', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KWD' => [ - 'name' => 'Kuwaiti Dinar', - 'code' => 414, - 'precision' => 3, - 'subunit' => 1000, - 'symbol' => 'د.ك', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KYD' => [ - 'name' => 'Cayman Islands Dollar', - 'code' => 136, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'KZT' => [ - 'name' => 'Tenge', - 'code' => 398, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '〒', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LAK' => [ - 'name' => 'Kip', - 'code' => 418, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₭', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LBP' => [ - 'name' => 'Lebanese Pound', - 'code' => 422, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ل.ل', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LKR' => [ - 'name' => 'Sri Lanka Rupee', - 'code' => 144, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₨', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LRD' => [ - 'name' => 'Liberian Dollar', - 'code' => 430, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LSL' => [ - 'name' => 'Loti', - 'code' => 426, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'L', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LTL' => [ - 'name' => 'Lithuanian Litas', - 'code' => 440, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Lt', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LVL' => [ - 'name' => 'Latvian Lats', - 'code' => 428, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Ls', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'LYD' => [ - 'name' => 'Libyan Dinar', - 'code' => 434, - 'precision' => 3, - 'subunit' => 1000, - 'symbol' => 'ل.د', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MAD' => [ - 'name' => 'Moroccan Dirham', - 'code' => 504, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'د.م.', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MDL' => [ - 'name' => 'Moldovan Leu', - 'code' => 498, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'L', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MGA' => [ - 'name' => 'Malagasy Ariary', - 'code' => 969, - 'precision' => 2, - 'subunit' => 5, - 'symbol' => 'Ar', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MKD' => [ - 'name' => 'Denar', - 'code' => 807, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ден', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MMK' => [ - 'name' => 'Kyat', - 'code' => 104, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'K', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MNT' => [ - 'name' => 'Tugrik', - 'code' => 496, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₮', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MOP' => [ - 'name' => 'Pataca', - 'code' => 446, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'P', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MRO' => [ - 'name' => 'Ouguiya', - 'code' => 478, - 'precision' => 2, - 'subunit' => 5, - 'symbol' => 'UM', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MUR' => [ - 'name' => 'Mauritius Rupee', - 'code' => 480, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₨', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MVR' => [ - 'name' => 'Rufiyaa', - 'code' => 462, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'MVR', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MWK' => [ - 'name' => 'Kwacha', - 'code' => 454, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'MK', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MXN' => [ - 'name' => 'Mexican Peso', - 'code' => 484, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MYR' => [ - 'name' => 'Malaysian Ringgit', - 'code' => 458, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'RM', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'MZN' => [ - 'name' => 'Mozambique Metical', - 'code' => 943, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'MTn', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'NAD' => [ - 'name' => 'Namibia Dollar', - 'code' => 516, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'NGN' => [ - 'name' => 'Naira', - 'code' => 566, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₦', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'NIO' => [ - 'name' => 'Cordoba Oro', - 'code' => 558, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'C$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'NOK' => [ - 'name' => 'Norwegian Krone', - 'code' => 578, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'kr', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'NPR' => [ - 'name' => 'Nepalese Rupee', - 'code' => 524, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₨', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'NZD' => [ - 'name' => 'New Zealand Dollar', - 'code' => 554, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'OMR' => [ - 'name' => 'Rial Omani', - 'code' => 512, - 'precision' => 3, - 'subunit' => 1000, - 'symbol' => 'ر.ع.', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'PAB' => [ - 'name' => 'Balboa', - 'code' => 590, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'B/.', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'PEN' => [ - 'name' => 'Sol', - 'code' => 604, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'S/', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'PGK' => [ - 'name' => 'Kina', - 'code' => 598, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'K', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'PHP' => [ - 'name' => 'Philippine Peso', - 'code' => 608, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₱', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'PKR' => [ - 'name' => 'Pakistan Rupee', - 'code' => 586, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₨', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'PLN' => [ - 'name' => 'Zloty', - 'code' => 985, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'zł', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => ' ', - ], - - 'PYG' => [ - 'name' => 'Guarani', - 'code' => 600, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => '₲', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'QAR' => [ - 'name' => 'Qatari Rial', - 'code' => 634, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ر.ق', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'RON' => [ - 'name' => 'New Romanian Leu', - 'code' => 946, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Lei', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'RSD' => [ - 'name' => 'Serbian Dinar', - 'code' => 941, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'РСД', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'RUB' => [ - 'name' => 'Russian Ruble', - 'code' => 643, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₽', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'RWF' => [ - 'name' => 'Rwanda Franc', - 'code' => 646, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'FRw', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SAR' => [ - 'name' => 'Saudi Riyal', - 'code' => 682, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ر.س', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SBD' => [ - 'name' => 'Solomon Islands Dollar', - 'code' => 90, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SCR' => [ - 'name' => 'Seychelles Rupee', - 'code' => 690, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₨', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SDG' => [ - 'name' => 'Sudanese Pound', - 'code' => 938, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SEK' => [ - 'name' => 'Swedish Krona', - 'code' => 752, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'kr', - 'symbol_first' => false, - 'decimal_mark' => ',', - 'thousands_separator' => ' ', - ], - - 'SGD' => [ - 'name' => 'Singapore Dollar', - 'code' => 702, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SHP' => [ - 'name' => 'Saint Helena Pound', - 'code' => 654, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SLL' => [ - 'name' => 'Leone', - 'code' => 694, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Le', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SOS' => [ - 'name' => 'Somali Shilling', - 'code' => 706, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Sh', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SRD' => [ - 'name' => 'Surinam Dollar', - 'code' => 968, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SSP' => [ - 'name' => 'South Sudanese Pound', - 'code' => 728, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'STD' => [ - 'name' => 'Dobra', - 'code' => 678, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Db', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SVC' => [ - 'name' => 'El Salvador Colon', - 'code' => 222, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₡', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SYP' => [ - 'name' => 'Syrian Pound', - 'code' => 760, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '£S', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'SZL' => [ - 'name' => 'Lilangeni', - 'code' => 748, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'E', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'THB' => [ - 'name' => 'Baht', - 'code' => 764, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '฿', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TJS' => [ - 'name' => 'Somoni', - 'code' => 972, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ЅМ', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TMT' => [ - 'name' => 'Turkmenistan New Manat', - 'code' => 934, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'T', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TND' => [ - 'name' => 'Tunisian Dinar', - 'code' => 788, - 'precision' => 3, - 'subunit' => 1000, - 'symbol' => 'د.ت', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TOP' => [ - 'name' => 'Pa’anga', - 'code' => 776, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'T$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TRY' => [ - 'name' => 'Turkish Lira', - 'code' => 949, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₺', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'TTD' => [ - 'name' => 'Trinidad and Tobago Dollar', - 'code' => 780, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TWD' => [ - 'name' => 'New Taiwan Dollar', - 'code' => 901, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'TZS' => [ - 'name' => 'Tanzanian Shilling', - 'code' => 834, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Sh', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'UAH' => [ - 'name' => 'Hryvnia', - 'code' => 980, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '₴', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'UGX' => [ - 'name' => 'Uganda Shilling', - 'code' => 800, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'USh', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'USD' => [ - 'name' => 'US Dollar', - 'code' => 840, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'UYU' => [ - 'name' => 'Peso Uruguayo', - 'code' => 858, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'UZS' => [ - 'name' => 'Uzbekistan Sum', - 'code' => 860, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'лв', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'VEF' => [ - 'name' => 'Bolivar', - 'code' => 937, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'Bs F', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'VND' => [ - 'name' => 'Dong', - 'code' => 704, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => '₫', - 'symbol_first' => true, - 'decimal_mark' => ',', - 'thousands_separator' => '.', - ], - - 'VUV' => [ - 'name' => 'Vatu', - 'code' => 548, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Vt', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'WST' => [ - 'name' => 'Tala', - 'code' => 882, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'T', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XAF' => [ - 'name' => 'CFA Franc BEAC', - 'code' => 950, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XAG' => [ - 'name' => 'Silver', - 'code' => 961, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'oz t', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XAU' => [ - 'name' => 'Gold', - 'code' => 959, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'oz t', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XCD' => [ - 'name' => 'East Caribbean Dollar', - 'code' => 951, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XDR' => [ - 'name' => 'SDR (Special Drawing Right)', - 'code' => 960, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'SDR', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XOF' => [ - 'name' => 'CFA Franc BCEAO', - 'code' => 952, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'XPF' => [ - 'name' => 'CFP Franc', - 'code' => 953, - 'precision' => 0, - 'subunit' => 1, - 'symbol' => 'Fr', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'YER' => [ - 'name' => 'Yemeni Rial', - 'code' => 886, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '﷼', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ZAR' => [ - 'name' => 'Rand', - 'code' => 710, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'R', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ZMW' => [ - 'name' => 'Zambian Kwacha', - 'code' => 967, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => 'ZK', - 'symbol_first' => false, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], - - 'ZWL' => [ - 'name' => 'Zimbabwe Dollar', - 'code' => 932, - 'precision' => 2, - 'subunit' => 100, - 'symbol' => '$', - 'symbol_first' => true, - 'decimal_mark' => '.', - 'thousands_separator' => ',', - ], ]; diff --git a/database/factories/Currency.php b/database/factories/Currency.php index 79569a65e..df4359da2 100644 --- a/database/factories/Currency.php +++ b/database/factories/Currency.php @@ -21,7 +21,7 @@ class Currency extends Factory */ public function definition() { - $currencies = config('money'); + $currencies = config('money.currencies'); Model::pluck('code')->each(function ($db_code) use (&$currencies) { unset($currencies[$db_code]); diff --git a/database/seeds/Currencies.php b/database/seeds/Currencies.php index 44e9946ae..275ca3d39 100644 --- a/database/seeds/Currencies.php +++ b/database/seeds/Currencies.php @@ -36,11 +36,11 @@ class Currencies extends Seeder 'code' => 'USD', 'rate' => '1.00', 'enabled' => '1', - 'precision' => config('money.USD.precision'), - 'symbol' => config('money.USD.symbol'), - 'symbol_first' => config('money.USD.symbol_first'), - 'decimal_mark' => config('money.USD.decimal_mark'), - 'thousands_separator' => config('money.USD.thousands_separator'), + 'precision' => config('money.currencies.USD.precision'), + 'symbol' => config('money.currencies.USD.symbol'), + 'symbol_first' => config('money.currencies.USD.symbol_first'), + 'decimal_mark' => config('money.currencies.USD.decimal_mark'), + 'thousands_separator' => config('money.currencies.USD.thousands_separator'), ], ]; diff --git a/tests/Feature/PaymentTestCase.php b/tests/Feature/PaymentTestCase.php index 8f7a28e3d..d3cffd18c 100644 --- a/tests/Feature/PaymentTestCase.php +++ b/tests/Feature/PaymentTestCase.php @@ -75,13 +75,13 @@ class PaymentTestCase extends FeatureTestCase } elseif ($this->invoice_currency != null) { $this->dispatch(new CreateCurrency([ 'company_id' => company_id(), - 'name' => config('money.' . $this->invoice_currency . '.name'), + 'name' => config('money.currencies.' . $this->invoice_currency . '.name'), 'code' => $this->invoice_currency, 'rate' => config(['money.' . $this->invoice_currency . '.rate' => 1]), 'enabled' => 1, - 'symbol_first' => config('money.' . $this->invoice_currency . '.symbol_first'), - 'decimal_mark' => config('money.' . $this->invoice_currency . '.decimal_mark'), - 'thousands_separator' => config('money.' . $this->invoice_currency . '.thousands_separator'), + 'symbol_first' => config('money.currencies.' . $this->invoice_currency . '.symbol_first'), + 'decimal_mark' => config('money.currencies.' . $this->invoice_currency . '.decimal_mark'), + 'thousands_separator' => config('money.currencies.' . $this->invoice_currency . '.thousands_separator'), 'default_currency' => true, ])); }