From 20e5b575627391d5088da18f7158d3e4d02a399c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Denis=20Duli=C3=A7i?=
Date: Mon, 10 Jul 2023 12:53:43 +0300
Subject: [PATCH 1/3] updated `money` package to 5.0 version
---
app/Http/Controllers/Modals/Currencies.php | 2 +-
app/Http/Controllers/Settings/Currencies.php | 2 +-
app/Http/Middleware/Money.php | 6 +-
.../CreateBankingDocumentTransaction.php | 4 +-
app/Jobs/Banking/CreateTransfer.php | 2 +-
.../MatchBankingDocumentTransaction.php | 2 +-
app/Jobs/Banking/SplitTransaction.php | 2 +-
.../UpdateBankingDocumentTransaction.php | 6 +-
app/Jobs/Banking/UpdateTransfer.php | 2 +-
app/Jobs/Document/CreateDocumentItem.php | 2 +-
.../Document/CreateDocumentItemsAndTotals.php | 2 +-
app/Models/Banking/Transaction.php | 2 +-
app/Models/Document/Document.php | 6 +-
app/Models/Setting/Currency.php | 10 +-
app/Traits/Charts.php | 10 +-
app/Traits/Import.php | 8 +-
app/Utilities/Overrider.php | 16 +-
app/View/Components/Index/Currency.php | 2 +-
app/Widgets/CashFlow.php | 4 +-
app/Widgets/ProfitLoss.php | 2 +-
composer.json | 2 +-
composer.lock | 38 +-
config/money.php | 3612 +++++++++--------
database/factories/Currency.php | 2 +-
database/seeds/Currencies.php | 10 +-
tests/Feature/PaymentTestCase.php | 8 +-
26 files changed, 1887 insertions(+), 1877 deletions(-)
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,
]));
}
From bfb37c62c6ae320fb4ba5635f6a552fb17379fde Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Denis=20Duli=C3=A7i?=
Date: Tue, 11 Jul 2023 12:03:14 +0300
Subject: [PATCH 2/3] applied new features of `money` package
---
.../View/Components/Contacts/Index.php | 4 ++--
.../View/Components/Documents/Index.php | 4 ++--
app/Http/Controllers/Banking/Accounts.php | 6 ++---
.../Controllers/Banking/Reconciliations.php | 10 ++++----
app/Http/Controllers/Banking/Transactions.php | 6 ++---
.../Modals/DocumentTransactions.php | 6 ++---
app/Http/Middleware/Money.php | 2 +-
app/Http/Resources/Banking/Account.php | 4 ++--
app/Http/Resources/Banking/Reconciliation.php | 2 +-
app/Http/Resources/Banking/Transaction.php | 2 +-
app/Http/Resources/Banking/Transfer.php | 2 +-
app/Http/Resources/Common/Item.php | 4 ++--
app/Http/Resources/Document/Document.php | 2 +-
app/Http/Resources/Document/DocumentItem.php | 4 ++--
.../Resources/Document/DocumentItemTax.php | 2 +-
app/Http/Resources/Document/DocumentTotal.php | 2 +-
.../CreateBankingDocumentTransaction.php | 4 ++--
.../MatchBankingDocumentTransaction.php | 4 ++--
app/Jobs/Banking/SplitTransaction.php | 2 +-
.../UpdateBankingDocumentTransaction.php | 4 ++--
app/Notifications/Banking/Transaction.php | 2 +-
app/Notifications/Portal/PaymentReceived.php | 4 ++--
app/Notifications/Purchase/Bill.php | 4 ++--
app/Notifications/Sale/Invoice.php | 4 ++--
app/Observers/Transaction.php | 2 +-
app/Traits/Charts.php | 2 +-
app/Utilities/Overrider.php | 3 +++
app/View/Components/Contacts/Show/Content.php | 6 ++---
.../Components/Documents/Show/GetPaid.php | 2 +-
.../Components/Documents/Show/MakePayment.php | 2 +-
app/Widgets/AccountBalance.php | 2 +-
app/Widgets/CashFlow.php | 6 ++---
app/Widgets/Payables.php | 8 +++----
app/Widgets/Receivables.php | 8 +++----
composer.lock | 24 +++++++++----------
config/money.php | 4 +++-
.../views/banking/accounts/show.blade.php | 2 +-
.../views/banking/transfers/index.blade.php | 2 +-
.../documents/show/get-paid.blade.php | 4 ++--
.../documents/show/make-payment.blade.php | 4 ++--
.../reports/detail/table/footer.blade.php | 4 ++--
.../reports/detail/table/row.blade.php | 12 +++++-----
.../reports/summary/table/body.blade.php | 4 ++--
.../reports/summary/table/row.blade.php | 6 ++---
.../widgets/payment_history.blade.php | 4 ++--
.../views/portal/invoices/preview.blade.php | 2 +-
.../views/portal/invoices/show.blade.php | 2 +-
.../views/portal/invoices/signed.blade.php | 2 +-
.../views/portal/payments/preview.blade.php | 2 +-
.../views/portal/payments/show.blade.php | 2 +-
.../views/portal/payments/signed.blade.php | 4 ++--
51 files changed, 110 insertions(+), 105 deletions(-)
diff --git a/app/Abstracts/View/Components/Contacts/Index.php b/app/Abstracts/View/Components/Contacts/Index.php
index 9f3b4e9e2..9d223bf0d 100644
--- a/app/Abstracts/View/Components/Contacts/Index.php
+++ b/app/Abstracts/View/Components/Contacts/Index.php
@@ -283,8 +283,8 @@ abstract class Index extends Component
$items[] = [
'title' => ($key == 'overdue') ? trans('general.overdue') : trans('documents.statuses.' . $key),
//'href' => route($route, ['search' => 'status:' . $key]),
- 'amount' => money($total, default_currency(), true)->formatForHumans(),
- 'tooltip' => money($total, default_currency(), true)->format(),
+ 'amount' => money($total)->formatForHumans(),
+ 'tooltip' => money($total)->format(),
];
}
diff --git a/app/Abstracts/View/Components/Documents/Index.php b/app/Abstracts/View/Components/Documents/Index.php
index 7671ca2f5..887043449 100644
--- a/app/Abstracts/View/Components/Documents/Index.php
+++ b/app/Abstracts/View/Components/Documents/Index.php
@@ -392,8 +392,8 @@ abstract class Index extends Component
foreach ($totals as $key => $total) {
$title = ($key == 'overdue') ? trans('general.overdue') : trans('documents.statuses.' . $key);
$href = route($route, ['search' => 'status:' . $key]);
- $amount = money($total, default_currency(), true)->formatForHumans();
- $tooltip = money($total, default_currency(), true)->format();
+ $amount = money($total)->formatForHumans();
+ $tooltip = money($total)->format();
$items[] = [
'title' => $title,
diff --git a/app/Http/Controllers/Banking/Accounts.php b/app/Http/Controllers/Banking/Accounts.php
index a8bcfcc5f..622e0bd06 100644
--- a/app/Http/Controllers/Banking/Accounts.php
+++ b/app/Http/Controllers/Banking/Accounts.php
@@ -42,9 +42,9 @@ class Accounts extends Controller
->orWhereHas('income_transaction', fn ($query) => $query->where('account_id', $account->id))
->collect(['expense_transaction.paid_at' => 'desc']);
- $incoming_amount = money($account->income_balance, $account->currency_code, true);
- $outgoing_amount = money($account->expense_balance, $account->currency_code, true);
- $current_amount = money($account->balance, $account->currency_code, true);
+ $incoming_amount = money($account->income_balance, $account->currency_code);
+ $outgoing_amount = money($account->expense_balance, $account->currency_code);
+ $current_amount = money($account->balance, $account->currency_code);
$summary_amounts = [
'incoming_exact' => $incoming_amount->format(),
diff --git a/app/Http/Controllers/Banking/Reconciliations.php b/app/Http/Controllers/Banking/Reconciliations.php
index 1bef98173..e3dab8708 100644
--- a/app/Http/Controllers/Banking/Reconciliations.php
+++ b/app/Http/Controllers/Banking/Reconciliations.php
@@ -24,8 +24,8 @@ class Reconciliations extends Controller
{
$reconciliations = Reconciliation::with('account')->collect();
- $reconciled_amount = money($reconciliations->where('reconciled', 1)->sum('closing_balance'), default_currency(), true);
- $in_progress_amount = money($reconciliations->where('reconciled', 0)->sum('closing_balance'), default_currency(), true);
+ $reconciled_amount = money($reconciliations->where('reconciled', 1)->sum('closing_balance'));
+ $in_progress_amount = money($reconciliations->where('reconciled', 0)->sum('closing_balance'));
$summary_amounts = [
'amount_exact' => $reconciled_amount->format(),
@@ -246,9 +246,9 @@ class Reconciliations extends Controller
$difference = $closing_balance - $cleared_amount;
- $json->closing_balance = money($closing_balance, $currency_code, true)->format();
- $json->cleared_amount = money($cleared_amount, $currency_code, true)->format();
- $json->difference = money($difference, $currency_code, true)->format();
+ $json->closing_balance = money($closing_balance, $currency_code)->format();
+ $json->cleared_amount = money($cleared_amount, $currency_code)->format();
+ $json->difference = money($difference, $currency_code)->format();
$json->difference_raw = (int) $difference;
return response()->json($json);
diff --git a/app/Http/Controllers/Banking/Transactions.php b/app/Http/Controllers/Banking/Transactions.php
index b3c2a2caa..15680841c 100644
--- a/app/Http/Controllers/Banking/Transactions.php
+++ b/app/Http/Controllers/Banking/Transactions.php
@@ -56,9 +56,9 @@ class Transactions extends Controller
$totals['profit'] = $totals['income'] - $totals['expense'];
- $incoming_amount = money($totals['income'], default_currency(), true);
- $expense_amount = money($totals['expense'], default_currency(), true);
- $profit_amount = money($totals['profit'], default_currency(), true);
+ $incoming_amount = money($totals['income']);
+ $expense_amount = money($totals['expense']);
+ $profit_amount = money($totals['profit']);
$summary_amounts = [
'incoming_exact' => $incoming_amount->format(),
diff --git a/app/Http/Controllers/Modals/DocumentTransactions.php b/app/Http/Controllers/Modals/DocumentTransactions.php
index 2e1654535..6dfc29b6e 100644
--- a/app/Http/Controllers/Modals/DocumentTransactions.php
+++ b/app/Http/Controllers/Modals/DocumentTransactions.php
@@ -51,9 +51,9 @@ class DocumentTransactions extends Controller
$document->{$document_total->code} = $document_total->amount;
}
- $total = money($document->total, $currency->code, true)->format();
+ $total = money($document->total, $currency->code)->format();
- $document->grand_total = money($total, $currency->code)->getAmount();
+ $document->grand_total = money($total, $currency->code, false)->getAmount();
if (! empty($paid)) {
$document->grand_total = round($document->total - $paid, $currency->precision);
@@ -140,7 +140,7 @@ class DocumentTransactions extends Controller
$number = $transaction->number;
- $document->grand_total = money($transaction->amount, $currency->code)->getAmount();
+ $document->grand_total = money($transaction->amount, $currency->code, false)->getAmount();
$document->paid_at = $transaction->paid_at;
diff --git a/app/Http/Middleware/Money.php b/app/Http/Middleware/Money.php
index 668b2e612..6b15204c8 100644
--- a/app/Http/Middleware/Money.php
+++ b/app/Http/Middleware/Money.php
@@ -105,7 +105,7 @@ class Money
$money_format = Str::replaceFirst('.', config('money.currencies.' . $currency_code . '.decimal_mark'), $money_format);
}
- $amount = money($money_format, $currency_code)->getAmount();
+ $amount = money($money_format, $currency_code, false)->getAmount();
} catch (InvalidArgumentException | OutOfBoundsException | UnexpectedValueException $e) {
report($e);
diff --git a/app/Http/Resources/Banking/Account.php b/app/Http/Resources/Banking/Account.php
index 2ca0b75c7..942ae4a06 100644
--- a/app/Http/Resources/Banking/Account.php
+++ b/app/Http/Resources/Banking/Account.php
@@ -22,9 +22,9 @@ class Account extends JsonResource
'number' => $this->number,
'currency_code' => $this->currency_code,
'opening_balance' => $this->opening_balance,
- 'opening_balance_formatted' => money($this->opening_balance, $this->currency_code, true)->format(),
+ 'opening_balance_formatted' => money($this->opening_balance, $this->currency_code)->format(),
'current_balance' => $this->balance,
- 'current_balance_formatted' => money($this->balance, $this->currency_code, true)->format(),
+ 'current_balance_formatted' => money($this->balance, $this->currency_code)->format(),
'bank_name' => $this->bank_name,
'bank_phone' => $this->bank_phone,
'bank_address' => $this->bank_address,
diff --git a/app/Http/Resources/Banking/Reconciliation.php b/app/Http/Resources/Banking/Reconciliation.php
index 7ab6889ba..bc0d08c2f 100644
--- a/app/Http/Resources/Banking/Reconciliation.php
+++ b/app/Http/Resources/Banking/Reconciliation.php
@@ -22,7 +22,7 @@ class Reconciliation extends JsonResource
'started_at' => $this->started_at->toIso8601String(),
'ended_at' => $this->ended_at->toIso8601String(),
'closing_balance' => $this->closing_balance,
- 'closing_balance_formatted' => money($this->closing_balance, default_currency(), true)->format(),
+ 'closing_balance_formatted' => money($this->closing_balance)->format(),
'reconciled' => $this->reconciled,
'created_from' => $this->created_from,
'created_by' => $this->created_by,
diff --git a/app/Http/Resources/Banking/Transaction.php b/app/Http/Resources/Banking/Transaction.php
index 4789757b2..dec77f211 100644
--- a/app/Http/Resources/Banking/Transaction.php
+++ b/app/Http/Resources/Banking/Transaction.php
@@ -25,7 +25,7 @@ class Transaction extends JsonResource
'account_id' => $this->account_id,
'paid_at' => $this->paid_at->toIso8601String(),
'amount' => $this->amount,
- 'amount_formatted' => money($this->amount, $this->currency_code, true)->format(),
+ 'amount_formatted' => money($this->amount, $this->currency_code)->format(),
'currency_code' => $this->currency_code,
'currency_rate' => $this->currency_rate,
'document_id' => $this->document_id,
diff --git a/app/Http/Resources/Banking/Transfer.php b/app/Http/Resources/Banking/Transfer.php
index 72d477d1c..c8625186d 100644
--- a/app/Http/Resources/Banking/Transfer.php
+++ b/app/Http/Resources/Banking/Transfer.php
@@ -25,7 +25,7 @@ class Transfer extends JsonResource
'to_account' => $income_transaction->account->name,
'to_account_id' => $income_transaction->account->id,
'amount' => $expense_transaction->amount,
- 'amount_formatted' => money($expense_transaction->amount, $expense_transaction->currency_code, true)->format(),
+ 'amount_formatted' => money($expense_transaction->amount, $expense_transaction->currency_code)->format(),
'currency_code' => $expense_transaction->currency_code,
'paid_at' => $expense_transaction->paid_at ? $expense_transaction->paid_at->toIso8601String() : '',
'created_from' => $this->created_from,
diff --git a/app/Http/Resources/Common/Item.php b/app/Http/Resources/Common/Item.php
index 2c249a0ce..ce8cf7ced 100644
--- a/app/Http/Resources/Common/Item.php
+++ b/app/Http/Resources/Common/Item.php
@@ -23,9 +23,9 @@ class Item extends JsonResource
'name' => $this->name,
'description' => $this->description,
'sale_price' => $this->sale_price,
- 'sale_price_formatted' => money((double) $this->sale_price, default_currency(), true)->format(),
+ 'sale_price_formatted' => money((double) $this->sale_price)->format(),
'purchase_price' => $this->purchase_price,
- 'purchase_price_formatted' => money((double) $this->purchase_price, default_currency(), true)->format(),
+ 'purchase_price_formatted' => money((double) $this->purchase_price)->format(),
'category_id' => $this->category_id,
'picture' => $this->picture,
'enabled' => $this->enabled,
diff --git a/app/Http/Resources/Document/Document.php b/app/Http/Resources/Document/Document.php
index 96aaaf350..6100bcdf1 100644
--- a/app/Http/Resources/Document/Document.php
+++ b/app/Http/Resources/Document/Document.php
@@ -32,7 +32,7 @@ class Document extends JsonResource
'issued_at' => $this->issued_at ? $this->issued_at->toIso8601String() : '',
'due_at' => $this->due_at ? $this->due_at->toIso8601String() : '',
'amount' => $this->amount,
- 'amount_formatted' => money($this->amount, $this->currency_code, true)->format(),
+ 'amount_formatted' => money($this->amount, $this->currency_code)->format(),
'category_id' => $this->category_id,
'currency_code' => $this->currency_code,
'currency_rate' => $this->currency_rate,
diff --git a/app/Http/Resources/Document/DocumentItem.php b/app/Http/Resources/Document/DocumentItem.php
index c74464459..dd365fe1e 100644
--- a/app/Http/Resources/Document/DocumentItem.php
+++ b/app/Http/Resources/Document/DocumentItem.php
@@ -24,9 +24,9 @@ class DocumentItem extends JsonResource
'name' => $this->name,
'description' => $this->description,
'price' => $this->price,
- 'price_formatted' => money($this->price, $this->document->currency_code, true)->format(),
+ 'price_formatted' => money($this->price, $this->document->currency_code)->format(),
'total' => $this->total,
- 'total_formatted' => money($this->total, $this->document->currency_code, true)->format(),
+ 'total_formatted' => money($this->total, $this->document->currency_code)->format(),
'created_from' => $this->created_from,
'created_by' => $this->created_by,
'created_at' => $this->created_at ? $this->created_at->toIso8601String() : '',
diff --git a/app/Http/Resources/Document/DocumentItemTax.php b/app/Http/Resources/Document/DocumentItemTax.php
index b0bc5e0e2..0a74f9a99 100644
--- a/app/Http/Resources/Document/DocumentItemTax.php
+++ b/app/Http/Resources/Document/DocumentItemTax.php
@@ -24,7 +24,7 @@ class DocumentItemTax extends JsonResource
'tax_id' => $this->tax_id,
'name' => $this->name,
'amount' => $this->amount,
- 'amount_formatted' => money($this->amount, $this->document->currency_code, true)->format(),
+ 'amount_formatted' => money($this->amount, $this->document->currency_code)->format(),
'created_from' => $this->created_from,
'created_by' => $this->created_by,
'created_at' => $this->created_at ? $this->created_at->toIso8601String() : '',
diff --git a/app/Http/Resources/Document/DocumentTotal.php b/app/Http/Resources/Document/DocumentTotal.php
index 4992e62f1..6c770bc1a 100644
--- a/app/Http/Resources/Document/DocumentTotal.php
+++ b/app/Http/Resources/Document/DocumentTotal.php
@@ -22,7 +22,7 @@ class DocumentTotal extends JsonResource
'code' => $this->code,
'name' => $this->name,
'amount' => $this->amount,
- 'amount_formatted' => money($this->amount, $this->document->currency_code, true)->format(),
+ 'amount_formatted' => money($this->amount, $this->document->currency_code)->format(),
'sort_order' => $this->sort_order,
'created_from' => $this->created_from,
'created_by' => $this->created_by,
diff --git a/app/Jobs/Banking/CreateBankingDocumentTransaction.php b/app/Jobs/Banking/CreateBankingDocumentTransaction.php
index aa6806b56..e59298a69 100644
--- a/app/Jobs/Banking/CreateBankingDocumentTransaction.php
+++ b/app/Jobs/Banking/CreateBankingDocumentTransaction.php
@@ -112,7 +112,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate
$error_amount = round($converted_amount, $precision);
}
- $message = trans('messages.error.over_payment', ['amount' => money($error_amount, $code, true)]);
+ $message = trans('messages.error.over_payment', ['amount' => money($error_amount, $code)]);
throw new \Exception($message);
} else {
@@ -124,7 +124,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate
protected function createHistory(): void
{
- $history_desc = money((double) $this->transaction->amount, (string) $this->transaction->currency_code, true)->format() . ' ' . trans_choice('general.payments', 1);
+ $history_desc = money((double) $this->transaction->amount, (string) $this->transaction->currency_code)->format() . ' ' . trans_choice('general.payments', 1);
$this->dispatch(new CreateDocumentHistory($this->model, 0, $history_desc));
}
diff --git a/app/Jobs/Banking/MatchBankingDocumentTransaction.php b/app/Jobs/Banking/MatchBankingDocumentTransaction.php
index 49f6ebebb..2032f7ea6 100644
--- a/app/Jobs/Banking/MatchBankingDocumentTransaction.php
+++ b/app/Jobs/Banking/MatchBankingDocumentTransaction.php
@@ -71,7 +71,7 @@ class MatchBankingDocumentTransaction extends Job
$error_amount = round($converted_amount, $precision);
}
- $message = trans('messages.error.over_match', ['type' => ucfirst($this->model->type), 'amount' => money($error_amount, $code, true)]);
+ $message = trans('messages.error.over_match', ['type' => ucfirst($this->model->type), 'amount' => money($error_amount, $code)]);
throw new \Exception($message);
} else {
@@ -83,7 +83,7 @@ class MatchBankingDocumentTransaction extends Job
protected function createHistory(): void
{
- $history_desc = money((double) $this->transaction->amount, (string) $this->transaction->currency_code, true)->format() . ' ' . trans_choice('general.payments', 1);
+ $history_desc = money((double) $this->transaction->amount, (string) $this->transaction->currency_code)->format() . ' ' . trans_choice('general.payments', 1);
$this->dispatch(new CreateDocumentHistory($this->model, 0, $history_desc));
}
diff --git a/app/Jobs/Banking/SplitTransaction.php b/app/Jobs/Banking/SplitTransaction.php
index d3eed4432..694335894 100644
--- a/app/Jobs/Banking/SplitTransaction.php
+++ b/app/Jobs/Banking/SplitTransaction.php
@@ -65,7 +65,7 @@ class SplitTransaction extends Job implements ShouldUpdate
$message = trans('messages.error.same_amount', [
'transaction' => ucfirst(trans_choice('general.' . Str::plural($this->model->type), 1)),
- 'amount' => money($error_amount, $this->model->currency_code, true)
+ 'amount' => money($error_amount, $this->model->currency_code)
]);
throw new \Exception($message);
diff --git a/app/Jobs/Banking/UpdateBankingDocumentTransaction.php b/app/Jobs/Banking/UpdateBankingDocumentTransaction.php
index 2299c57e2..4f34fe468 100644
--- a/app/Jobs/Banking/UpdateBankingDocumentTransaction.php
+++ b/app/Jobs/Banking/UpdateBankingDocumentTransaction.php
@@ -112,7 +112,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate
$error_amount = round($converted_amount, $precision);
}
- $message = trans('messages.error.over_payment', ['amount' => money($error_amount, $code, true)]);
+ $message = trans('messages.error.over_payment', ['amount' => money($error_amount, $code)]);
throw new \Exception($message);
} else {
@@ -124,7 +124,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate
protected function createHistory(): void
{
- $history_desc = money((double) $this->transaction->amount, (string) $this->transaction->currency_code, true)->format() . ' ' . trans_choice('general.payments', 1);
+ $history_desc = money((double) $this->transaction->amount, (string) $this->transaction->currency_code)->format() . ' ' . trans_choice('general.payments', 1);
$this->dispatch(new CreateDocumentHistory($this->model, 0, $history_desc));
}
diff --git a/app/Notifications/Banking/Transaction.php b/app/Notifications/Banking/Transaction.php
index d3f77c6cf..d4df72404 100644
--- a/app/Notifications/Banking/Transaction.php
+++ b/app/Notifications/Banking/Transaction.php
@@ -118,7 +118,7 @@ class Transaction extends Notification
];
return [
- money($this->transaction->amount, $this->transaction->currency_code, true),
+ money($this->transaction->amount, $this->transaction->currency_code),
company_date($this->transaction->paid_at),
URL::signedRoute('signed.payments.show', $route_params),
route('transactions.show', $route_params),
diff --git a/app/Notifications/Portal/PaymentReceived.php b/app/Notifications/Portal/PaymentReceived.php
index 324404c56..4bc0a7dc9 100644
--- a/app/Notifications/Portal/PaymentReceived.php
+++ b/app/Notifications/Portal/PaymentReceived.php
@@ -129,13 +129,13 @@ class PaymentReceived extends Notification
return [
$this->invoice->document_number,
- money($this->invoice->amount, $this->invoice->currency_code, true),
+ money($this->invoice->amount, $this->invoice->currency_code),
company_date($this->invoice->due_at),
trans('documents.statuses.' . $this->invoice->status),
URL::signedRoute('signed.invoices.show', $route_params),
route('invoices.show', $route_params),
route('portal.invoices.show', $route_params),
- money($this->transaction->amount, $this->transaction->currency_code, true),
+ money($this->transaction->amount, $this->transaction->currency_code),
company_date($this->transaction->paid_at),
$this->transaction->payment_method,
$this->invoice->contact_name,
diff --git a/app/Notifications/Purchase/Bill.php b/app/Notifications/Purchase/Bill.php
index cd72f9551..4ec44e949 100644
--- a/app/Notifications/Purchase/Bill.php
+++ b/app/Notifications/Purchase/Bill.php
@@ -97,8 +97,8 @@ class Bill extends Notification
return [
$this->bill->document_number,
- money($this->bill->amount, $this->bill->currency_code, true),
- money($this->bill->amount_due, $this->bill->currency_code, true),
+ money($this->bill->amount, $this->bill->currency_code),
+ money($this->bill->amount_due, $this->bill->currency_code),
company_date($this->bill->issued_at),
company_date($this->bill->due_at),
route('bills.show', $route_params),
diff --git a/app/Notifications/Sale/Invoice.php b/app/Notifications/Sale/Invoice.php
index 8c5ebc97b..9a85fa451 100644
--- a/app/Notifications/Sale/Invoice.php
+++ b/app/Notifications/Sale/Invoice.php
@@ -142,8 +142,8 @@ class Invoice extends Notification
return [
$this->invoice->document_number,
- money($this->invoice->amount, $this->invoice->currency_code, true),
- money($this->invoice->amount_due, $this->invoice->currency_code, true),
+ money($this->invoice->amount, $this->invoice->currency_code),
+ money($this->invoice->amount_due, $this->invoice->currency_code),
company_date($this->invoice->issued_at),
company_date($this->invoice->due_at),
URL::signedRoute('signed.invoices.show', $route_params),
diff --git a/app/Observers/Transaction.php b/app/Observers/Transaction.php
index 3e051dfe5..7f6e2101c 100644
--- a/app/Observers/Transaction.php
+++ b/app/Observers/Transaction.php
@@ -60,7 +60,7 @@ class Transaction extends Observer
protected function getDescription($transaction)
{
- $amount = money((double) $transaction->amount, (string) $transaction->currency_code, true)->format();
+ $amount = money((double) $transaction->amount, (string) $transaction->currency_code)->format();
return trans('messages.success.deleted', ['type' => $amount . ' ' . trans_choice('general.payments', 1)]);
}
diff --git a/app/Traits/Charts.php b/app/Traits/Charts.php
index 0eaa09f3a..8392d2329 100644
--- a/app/Traits/Charts.php
+++ b/app/Traits/Charts.php
@@ -28,7 +28,7 @@ trait Charts
public function addMoneyToDonutChart($color, $amount, $description = '')
{
- $label = money($amount, default_currency(), true)->formatForHumans();
+ $label = money($amount)->formatForHumans();
if (!empty($description)) {
$label .= ' - ' . $description;
diff --git a/app/Utilities/Overrider.php b/app/Utilities/Overrider.php
index 51422c75a..fb3230291 100644
--- a/app/Utilities/Overrider.php
+++ b/app/Utilities/Overrider.php
@@ -62,6 +62,9 @@ class Overrider
// Set locale for Money package
Money::setLocale(app()->getLocale());
+ // Money
+ config(['money.defaults.currency' => setting('default.currency')]);
+
// Set app url dynamically if empty
if (! config('app.url')) {
config(['app.url' => url('/')]);
diff --git a/app/View/Components/Contacts/Show/Content.php b/app/View/Components/Contacts/Show/Content.php
index 60679d25e..46c83f38c 100644
--- a/app/View/Components/Contacts/Show/Content.php
+++ b/app/View/Components/Contacts/Show/Content.php
@@ -72,9 +72,9 @@ class Content extends Component
$totals['paid'] += $item->getAmountConvertedToDefault();
});
- $open_amount = money($totals['open'], default_currency(), true);
- $overdue_amount = money($totals['overdue'], default_currency(), true);
- $paid_amount = money($totals['paid'], default_currency(), true);
+ $open_amount = money($totals['open']);
+ $overdue_amount = money($totals['overdue']);
+ $paid_amount = money($totals['paid']);
$summary_amounts = [
'open_exact' => $open_amount->format(),
diff --git a/app/View/Components/Documents/Show/GetPaid.php b/app/View/Components/Documents/Show/GetPaid.php
index f1bf20056..83c9779f9 100644
--- a/app/View/Components/Documents/Show/GetPaid.php
+++ b/app/View/Components/Documents/Show/GetPaid.php
@@ -15,7 +15,7 @@ class GetPaid extends Component
*/
public function render()
{
- $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount_due, $this->document->currency_code, true) . '';
+ $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount_due, $this->document->currency_code) . '';
return view('components.documents.show.get-paid');
}
diff --git a/app/View/Components/Documents/Show/MakePayment.php b/app/View/Components/Documents/Show/MakePayment.php
index c2406dbd4..db3e413b9 100644
--- a/app/View/Components/Documents/Show/MakePayment.php
+++ b/app/View/Components/Documents/Show/MakePayment.php
@@ -15,7 +15,7 @@ class MakePayment extends Component
*/
public function render()
{
- $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount_due, $this->document->currency_code, true) . '';
+ $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount_due, $this->document->currency_code) . '';
return view('components.documents.show.make-payment');
}
diff --git a/app/Widgets/AccountBalance.php b/app/Widgets/AccountBalance.php
index fbe315e58..318e019ac 100644
--- a/app/Widgets/AccountBalance.php
+++ b/app/Widgets/AccountBalance.php
@@ -16,7 +16,7 @@ class AccountBalance extends Widget
public function show()
{
$accounts = Account::with('income_transactions', 'expense_transactions')->enabled()->take(5)->get()->map(function($account) {
- $account->balance_formatted = money($account->balance, $account->currency_code, true);
+ $account->balance_formatted = money($account->balance, $account->currency_code);
return $account;
})->all();
diff --git a/app/Widgets/CashFlow.php b/app/Widgets/CashFlow.php
index f5337528a..42eb5d3bc 100644
--- a/app/Widgets/CashFlow.php
+++ b/app/Widgets/CashFlow.php
@@ -53,9 +53,9 @@ class CashFlow extends Widget
->setDataset(trans('general.outgoing'), 'column', $expense)
->setDataset(trans_choice('general.profits', 1), 'line', $profit);
- $incoming_amount = money(array_sum($income), default_currency(), true);
- $outgoing_amount = money(abs(array_sum($expense)), default_currency(), true);
- $profit_amount = money(array_sum($profit), default_currency(), true);
+ $incoming_amount = money(array_sum($income));
+ $outgoing_amount = money(abs(array_sum($expense)));
+ $profit_amount = money(array_sum($profit));
$totals = [
'incoming_exact' => $incoming_amount->format(),
diff --git a/app/Widgets/Payables.php b/app/Widgets/Payables.php
index 9ca30f082..cb1ee525d 100644
--- a/app/Widgets/Payables.php
+++ b/app/Widgets/Payables.php
@@ -52,7 +52,7 @@ class Payables extends Widget
});
foreach ($periods as $period_name => $period_amount) {
- $periods[$period_name] = money($period_amount, default_currency(), true);
+ $periods[$period_name] = money($period_amount);
}
$has_progress = !empty($open) || !empty($overdue);
@@ -61,9 +61,9 @@ class Payables extends Widget
$grand = $open + $overdue;
$totals = [
- 'grand' => money($grand, default_currency(), true),
- 'open' => money($open, default_currency(), true),
- 'overdue' => money($overdue, default_currency(), true),
+ 'grand' => money($grand),
+ 'open' => money($open),
+ 'overdue' => money($overdue),
];
$grand_total_text = trans('widgets.total_unpaid_bills');
diff --git a/app/Widgets/Receivables.php b/app/Widgets/Receivables.php
index 532c012e7..e8195cb36 100644
--- a/app/Widgets/Receivables.php
+++ b/app/Widgets/Receivables.php
@@ -52,7 +52,7 @@ class Receivables extends Widget
});
foreach ($periods as $period_name => $period_amount) {
- $periods[$period_name] = money($period_amount, default_currency(), true);
+ $periods[$period_name] = money($period_amount);
}
$has_progress = !empty($open) || !empty($overdue);
@@ -61,9 +61,9 @@ class Receivables extends Widget
$grand = $open + $overdue;
$totals = [
- 'grand' => money($grand, default_currency(), true),
- 'open' => money($open, default_currency(), true),
- 'overdue' => money($overdue, default_currency(), true),
+ 'grand' => money($grand),
+ 'open' => money($open),
+ 'overdue' => money($overdue),
];
$grand_total_text = trans('widgets.total_unpaid_invoices');
diff --git a/composer.lock b/composer.lock
index dc93056c9..99ddf2278 100644
--- a/composer.lock
+++ b/composer.lock
@@ -409,16 +409,16 @@
},
{
"name": "akaunting/laravel-money",
- "version": "5.0.0",
+ "version": "5.1.0",
"source": {
"type": "git",
"url": "https://github.com/akaunting/laravel-money.git",
- "reference": "104d41aabc144150054d225fec6b2a0ae8b76d1d"
+ "reference": "dc6dd201aaf1c2b9ced3f98e208ddc6af1f0a722"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/akaunting/laravel-money/zipball/104d41aabc144150054d225fec6b2a0ae8b76d1d",
- "reference": "104d41aabc144150054d225fec6b2a0ae8b76d1d",
+ "url": "https://api.github.com/repos/akaunting/laravel-money/zipball/dc6dd201aaf1c2b9ced3f98e208ddc6af1f0a722",
+ "reference": "dc6dd201aaf1c2b9ced3f98e208ddc6af1f0a722",
"shasum": ""
},
"require": {
@@ -472,9 +472,9 @@
],
"support": {
"issues": "https://github.com/akaunting/laravel-money/issues",
- "source": "https://github.com/akaunting/laravel-money/tree/5.0.0"
+ "source": "https://github.com/akaunting/laravel-money/tree/5.1.0"
},
- "time": "2023-07-10T09:34:33+00:00"
+ "time": "2023-07-11T08:35:47+00:00"
},
{
"name": "akaunting/laravel-mutable-observer",
@@ -7867,16 +7867,16 @@
},
{
"name": "php-http/discovery",
- "version": "1.19.0",
+ "version": "1.19.1",
"source": {
"type": "git",
"url": "https://github.com/php-http/discovery.git",
- "reference": "1856a119a0b0ba8da8b5c33c080aa7af8fac25b4"
+ "reference": "57f3de01d32085fea20865f9b16fb0e69347c39e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-http/discovery/zipball/1856a119a0b0ba8da8b5c33c080aa7af8fac25b4",
- "reference": "1856a119a0b0ba8da8b5c33c080aa7af8fac25b4",
+ "url": "https://api.github.com/repos/php-http/discovery/zipball/57f3de01d32085fea20865f9b16fb0e69347c39e",
+ "reference": "57f3de01d32085fea20865f9b16fb0e69347c39e",
"shasum": ""
},
"require": {
@@ -7939,9 +7939,9 @@
],
"support": {
"issues": "https://github.com/php-http/discovery/issues",
- "source": "https://github.com/php-http/discovery/tree/1.19.0"
+ "source": "https://github.com/php-http/discovery/tree/1.19.1"
},
- "time": "2023-06-19T08:45:36+00:00"
+ "time": "2023-07-11T07:02:26+00:00"
},
{
"name": "php-http/guzzle7-adapter",
diff --git a/config/money.php b/config/money.php
index 543f6ea9d..90ff5c3a1 100644
--- a/config/money.php
+++ b/config/money.php
@@ -4,7 +4,9 @@ return [
'defaults' => [
- 'currency' => env('MONEY_DEFAULTS_CURRENCY', 'USD'),
+ 'currency' => env('MONEY_DEFAULTS_CURRENCY', 'USD'),
+
+ 'convert' => env('MONEY_DEFAULTS_CONVERT', true),
],
diff --git a/resources/views/banking/accounts/show.blade.php b/resources/views/banking/accounts/show.blade.php
index ba7c86f6c..59c7377d3 100644
--- a/resources/views/banking/accounts/show.blade.php
+++ b/resources/views/banking/accounts/show.blade.php
@@ -391,7 +391,7 @@
$item->name = trans('transfers.messages.delete', [
'from' => $item->expense_transaction->account->name,
'to' => $item->income_transaction->account->name,
- 'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code, true)
+ 'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code)
]);
@endphp
diff --git a/resources/views/banking/transfers/index.blade.php b/resources/views/banking/transfers/index.blade.php
index 88c1dba61..51efa9c73 100644
--- a/resources/views/banking/transfers/index.blade.php
+++ b/resources/views/banking/transfers/index.blade.php
@@ -94,7 +94,7 @@
$item->name = trans('transfers.messages.delete', [
'from' => $item->expense_transaction->account->name,
'to' => $item->income_transaction->account->name,
- 'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code, true)
+ 'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code)
]);
@endphp
diff --git a/resources/views/components/documents/show/get-paid.blade.php b/resources/views/components/documents/show/get-paid.blade.php
index 01a720103..1556f5645 100644
--- a/resources/views/components/documents/show/get-paid.blade.php
+++ b/resources/views/components/documents/show/get-paid.blade.php
@@ -62,7 +62,7 @@
- {!! trans('documents.transaction', [
- 'amount' => '' . money($transaction->amount, $transaction->currency_code, true) . '',
+ 'amount' => '' . money($transaction->amount, $transaction->currency_code) . '',
'account' => '' . $transaction->account->name . '',
]) !!}
@@ -103,7 +103,7 @@
@php
$message = trans('general.delete_confirm', [
- 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '',
+ 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code) . ' - ' . $transaction->account->name . '',
'type' => strtolower(trans_choice('general.transactions', 1))
]);
@endphp
diff --git a/resources/views/components/documents/show/make-payment.blade.php b/resources/views/components/documents/show/make-payment.blade.php
index 5b4dd39d5..9f3d29dcf 100644
--- a/resources/views/components/documents/show/make-payment.blade.php
+++ b/resources/views/components/documents/show/make-payment.blade.php
@@ -45,7 +45,7 @@
- {!! trans('documents.transaction', [
- 'amount' => '' . money($transaction->amount, $transaction->currency_code, true) . '',
+ 'amount' => '' . money($transaction->amount, $transaction->currency_code) . '',
'account' => '' . $transaction->account->name . '',
]) !!}
@@ -86,7 +86,7 @@
@php
$message = trans('general.delete_confirm', [
- 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '',
+ 'name' => '' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code) . ' - ' . $transaction->account->name . '',
'type' => strtolower(trans_choice('general.transactions', 1))
]);
@endphp
diff --git a/resources/views/components/reports/detail/table/footer.blade.php b/resources/views/components/reports/detail/table/footer.blade.php
index 5ed8ddd2b..a63604617 100644
--- a/resources/views/components/reports/detail/table/footer.blade.php
+++ b/resources/views/components/reports/detail/table/footer.blade.php
@@ -4,8 +4,8 @@
{{ trans_choice('general.totals', 1) }} |
@foreach($class->footer_totals[$table_key] as $total)
- {{ $class->has_money ? money($total, default_currency(), true) : $total }} |
+ {{ $class->has_money ? money($total) : $total }} |
@endforeach
- {{ $class->has_money ? money($grand_total, default_currency(), true) : $grand_total }} |
+ {{ $class->has_money ? money($grand_total) : $grand_total }} |
diff --git a/resources/views/components/reports/detail/table/row.blade.php b/resources/views/components/reports/detail/table/row.blade.php
index 56065c29c..f911de415 100644
--- a/resources/views/components/reports/detail/table/row.blade.php
+++ b/resources/views/components/reports/detail/table/row.blade.php
@@ -14,9 +14,9 @@
@endif
@foreach($rows as $row)
- {{ $class->has_money ? money($row, default_currency(), true) : $row }} |
+ {{ $class->has_money ? money($row) : $row }} |
@endforeach
- {{ $class->has_money ? money($row_total, default_currency(), true) : $row }} |
+ {{ $class->has_money ? money($row_total) : $row }} |
@endif
@endif
@@ -57,9 +57,9 @@
@foreach($parent_row_values as $row)
- {{ $class->has_money ? money($row, default_currency(), true) : $row }} |
+ {{ $class->has_money ? money($row) : $row }} |
@endforeach
- {{ $class->has_money ? money($row_total, default_currency(), true) : $row }} |
+ {{ $class->has_money ? money($row_total) : $row }} |
@endif
@@ -69,9 +69,9 @@
{{ $class->row_names[$table_key][$id] }} |
@foreach($rows as $row)
- {{ $class->has_money ? money($row, default_currency(), true) : $row }} |
+ {{ $class->has_money ? money($row) : $row }} |
@endforeach
- {{ $class->has_money ? money($row_total, default_currency(), true) : $row }} |
+ {{ $class->has_money ? money($row_total) : $row }} |
@endif
diff --git a/resources/views/components/reports/summary/table/body.blade.php b/resources/views/components/reports/summary/table/body.blade.php
index cee095c6a..25e552ae3 100644
--- a/resources/views/components/reports/summary/table/body.blade.php
+++ b/resources/views/components/reports/summary/table/body.blade.php
@@ -1,12 +1,12 @@
-
$is_print,
'flex items-center justify-between text-xl text-black-400 border-b pb-2' => !$is_print
])
>
{{ $table_name }}
- {{ $class->has_money ? money($grand_total, default_currency(), true) : $grand_total }}
+ {{ $class->has_money ? money($grand_total) : $grand_total }}
@if (!empty($class->row_values[$table_key]))
{{ $class->row_names[$table_key][$id] }}
- {{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}
+ {{ $class->has_money ? money($row_total) : $row_total }}
@endif
@@ -73,7 +73,7 @@
@endif
@endif
- {{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}
+ {{ $class->has_money ? money($row_total) : $row_total }}
@endif
@@ -91,7 +91,7 @@
{{ $class->row_names[$table_key][$id] }}
- {{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}
+ {{ $class->has_money ? money($row_total) : $row_total }}
@endif
diff --git a/resources/views/components/widgets/payment_history.blade.php b/resources/views/components/widgets/payment_history.blade.php
index 93d8c1c7a..5a054c520 100644
--- a/resources/views/components/widgets/payment_history.blade.php
+++ b/resources/views/components/widgets/payment_history.blade.php
@@ -7,9 +7,9 @@
@foreach ($payments as $item)
@if (! $item->document)
- {{ trans('portal.payment_history.description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code, true)]) }}
+ {{ trans('portal.payment_history.description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code)]) }}
@else
- {{ trans('portal.payment_history.invoice_description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code, true), 'invoice_nember' => $item->document->document_number]) }}
+ {{ trans('portal.payment_history.invoice_description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code), 'invoice_nember' => $item->document->document_number]) }}
@endif
@endforeach
diff --git a/resources/views/portal/invoices/preview.blade.php b/resources/views/portal/invoices/preview.blade.php
index 761c0124d..315b41932 100644
--- a/resources/views/portal/invoices/preview.blade.php
+++ b/resources/views/portal/invoices/preview.blade.php
@@ -111,7 +111,7 @@
- {!! trans('documents.transaction', [
- 'amount' => '' . money($transaction->amount, $transaction->currency_code, true) . '',
+ 'amount' => '' . money($transaction->amount, $transaction->currency_code) . '',
'account' => '' . $transaction->account->name . '',
]) !!}
diff --git a/resources/views/portal/invoices/show.blade.php b/resources/views/portal/invoices/show.blade.php
index 6e50408db..b7bdd5012 100644
--- a/resources/views/portal/invoices/show.blade.php
+++ b/resources/views/portal/invoices/show.blade.php
@@ -109,7 +109,7 @@
- {!! trans('documents.transaction', [
- 'amount' => '' . money($transaction->amount, $transaction->currency_code, true) . '',
+ 'amount' => '' . money($transaction->amount, $transaction->currency_code) . '',
'account' => '' . $transaction->account->name . '',
]) !!}
diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php
index 9a7c339d0..d9ccd7314 100644
--- a/resources/views/portal/invoices/signed.blade.php
+++ b/resources/views/portal/invoices/signed.blade.php
@@ -118,7 +118,7 @@
- {!! trans('documents.transaction', [
- 'amount' => '' . money($transaction->amount, $transaction->currency_code, true) . '',
+ 'amount' => '' . money($transaction->amount, $transaction->currency_code) . '',
'account' => '' . $transaction->account->name . '',
]) !!}
diff --git a/resources/views/portal/payments/preview.blade.php b/resources/views/portal/payments/preview.blade.php
index 27eb94439..4f8f64ca2 100644
--- a/resources/views/portal/payments/preview.blade.php
+++ b/resources/views/portal/payments/preview.blade.php
@@ -46,7 +46,7 @@
- {{ trans('portal.payment_detail.description', ['date' => date($payment->paid_at), 'amount' => money($payment->amount, $payment->currency_code, true)]) }}
+ {{ trans('portal.payment_detail.description', ['date' => date($payment->paid_at), 'amount' => money($payment->amount, $payment->currency_code)]) }}
@endif
diff --git a/resources/views/portal/payments/show.blade.php b/resources/views/portal/payments/show.blade.php
index e99d41985..2f15801e6 100644
--- a/resources/views/portal/payments/show.blade.php
+++ b/resources/views/portal/payments/show.blade.php
@@ -44,7 +44,7 @@
- {{ trans('portal.payment_detail.description', ['date' => date($payment->paid_at), 'amount' => money($payment->amount, $payment->currency_code, true)]) }}
+ {{ trans('portal.payment_detail.description', ['date' => date($payment->paid_at), 'amount' => money($payment->amount, $payment->currency_code)]) }}
@endif
diff --git a/resources/views/portal/payments/signed.blade.php b/resources/views/portal/payments/signed.blade.php
index a75ebcc0f..6fd5319ed 100644
--- a/resources/views/portal/payments/signed.blade.php
+++ b/resources/views/portal/payments/signed.blade.php
@@ -17,7 +17,7 @@
@stack('button_print_end')
-
+
@stack('button_dashboard_start')
@if (! user())
@@ -54,7 +54,7 @@
- {{ trans('portal.payment_detail.description', ['date' => date($payment->paid_at), 'amount' => money($payment->amount, $payment->currency_code, true)]) }}
+ {{ trans('portal.payment_detail.description', ['date' => date($payment->paid_at), 'amount' => money($payment->amount, $payment->currency_code)]) }}
@endif
From 49a04cd854a3ca170577de5f947c105d4fe01f4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Denis=20Duli=C3=A7i?=
Date: Tue, 11 Jul 2023 12:17:01 +0300
Subject: [PATCH 3/3] updated blade components
---
resources/views/banking/accounts/index.blade.php | 2 +-
resources/views/banking/accounts/show.blade.php | 8 ++++----
.../views/banking/reconciliations/create.blade.php | 10 +++++-----
resources/views/banking/reconciliations/edit.blade.php | 8 ++++----
.../views/banking/reconciliations/index.blade.php | 2 +-
.../banking/recurring_transactions/index.blade.php | 2 +-
resources/views/banking/transactions/index.blade.php | 2 +-
resources/views/banking/transfers/index.blade.php | 4 ++--
resources/views/common/items/index.blade.php | 6 +++---
.../views/components/contacts/index/content.blade.php | 4 ++--
.../views/components/contacts/show/content.blade.php | 6 +++---
.../components/documents/index/document.blade.php | 2 +-
.../components/documents/index/information.blade.php | 6 +++---
.../documents/index/recurring_templates.blade.php | 2 +-
.../components/documents/template/classic.blade.php | 8 ++++----
.../components/documents/template/default.blade.php | 6 +++---
.../components/documents/template/line-item.blade.php | 6 +++---
.../components/documents/template/modern.blade.php | 6 +++---
.../components/transactions/template/default.blade.php | 6 +++---
.../components/transfers/template/default.blade.php | 4 ++--
.../components/transfers/template/second.blade.php | 2 +-
.../components/transfers/template/third.blade.php | 2 +-
.../views/components/widgets/last_payment.blade.php | 2 +-
.../components/widgets/outstanding_balance.blade.php | 4 ++--
resources/views/portal/invoices/index.blade.php | 2 +-
resources/views/portal/payments/index.blade.php | 2 +-
.../views/reports/profit_loss/content/footer.blade.php | 4 ++--
.../views/reports/profit_loss/table/footer.blade.php | 4 ++--
.../views/reports/tax_summary/table/footer.blade.php | 4 ++--
29 files changed, 63 insertions(+), 63 deletions(-)
diff --git a/resources/views/banking/accounts/index.blade.php b/resources/views/banking/accounts/index.blade.php
index d86e3d743..88a4b8c61 100644
--- a/resources/views/banking/accounts/index.blade.php
+++ b/resources/views/banking/accounts/index.blade.php
@@ -97,7 +97,7 @@
-
+
diff --git a/resources/views/banking/accounts/show.blade.php b/resources/views/banking/accounts/show.blade.php
index 59c7377d3..36b18ecb5 100644
--- a/resources/views/banking/accounts/show.blade.php
+++ b/resources/views/banking/accounts/show.blade.php
@@ -178,7 +178,7 @@
-
+
@stack('opening_balance_input_end')
@@ -323,7 +323,7 @@
-
+
@@ -429,10 +429,10 @@
-
+
-
+
diff --git a/resources/views/banking/reconciliations/create.blade.php b/resources/views/banking/reconciliations/create.blade.php
index 51dea0ae1..6c8c26227 100644
--- a/resources/views/banking/reconciliations/create.blade.php
+++ b/resources/views/banking/reconciliations/create.blade.php
@@ -51,8 +51,8 @@
:currency="$currency"
/>
-
@@ -130,7 +130,7 @@
@if ($item->isIncome())
-
+
@@ -142,7 +142,7 @@
-
+
@endif
@@ -174,7 +174,7 @@
-
+
|
diff --git a/resources/views/banking/reconciliations/edit.blade.php b/resources/views/banking/reconciliations/edit.blade.php
index 9beb71956..fcaf83b5b 100644
--- a/resources/views/banking/reconciliations/edit.blade.php
+++ b/resources/views/banking/reconciliations/edit.blade.php
@@ -64,7 +64,7 @@
@if ($item->isIncome())
-
+
@@ -76,7 +76,7 @@
-
+
@endif
@@ -123,7 +123,7 @@
-
+
|
@@ -262,4 +262,4 @@
-
\ No newline at end of file
+
diff --git a/resources/views/banking/reconciliations/index.blade.php b/resources/views/banking/reconciliations/index.blade.php
index 0c442ec00..7edb7838e 100644
--- a/resources/views/banking/reconciliations/index.blade.php
+++ b/resources/views/banking/reconciliations/index.blade.php
@@ -103,7 +103,7 @@
@if ($item->closing_balance)
-
+
@else
@endif
diff --git a/resources/views/banking/recurring_transactions/index.blade.php b/resources/views/banking/recurring_transactions/index.blade.php
index 94dbee6d0..fad645a4a 100644
--- a/resources/views/banking/recurring_transactions/index.blade.php
+++ b/resources/views/banking/recurring_transactions/index.blade.php
@@ -121,7 +121,7 @@
-
+
diff --git a/resources/views/banking/transactions/index.blade.php b/resources/views/banking/transactions/index.blade.php
index 680784803..82a00ff07 100644
--- a/resources/views/banking/transactions/index.blade.php
+++ b/resources/views/banking/transactions/index.blade.php
@@ -185,7 +185,7 @@
-
+
diff --git a/resources/views/banking/transfers/index.blade.php b/resources/views/banking/transfers/index.blade.php
index 51efa9c73..f364b3842 100644
--- a/resources/views/banking/transfers/index.blade.php
+++ b/resources/views/banking/transfers/index.blade.php
@@ -136,10 +136,10 @@
-
+
-
+
diff --git a/resources/views/common/items/index.blade.php b/resources/views/common/items/index.blade.php
index 615990d46..65fb4fd79 100644
--- a/resources/views/common/items/index.blade.php
+++ b/resources/views/common/items/index.blade.php
@@ -86,7 +86,7 @@
{{ $item->name }}
-
+
@if (! $item->enabled)
@endif
@@ -117,14 +117,14 @@
@if ($item->sale_price)
-
+
@else
@endif
@if ($item->purchase_price)
-
+
@else
@endif
diff --git a/resources/views/components/contacts/index/content.blade.php b/resources/views/components/contacts/index/content.blade.php
index e1dde557a..f73f6a86a 100644
--- a/resources/views/components/contacts/index/content.blade.php
+++ b/resources/views/components/contacts/index/content.blade.php
@@ -221,7 +221,7 @@
@if (! $hideOpen)
@if ($item->open)
-
+
@else
@endif
@@ -233,7 +233,7 @@
@if (! $hideOverdue)
@if ($item->overdue)
-
+
@else
@endif
diff --git a/resources/views/components/contacts/show/content.blade.php b/resources/views/components/contacts/show/content.blade.php
index 72526bbfa..157a08edb 100644
--- a/resources/views/components/contacts/show/content.blade.php
+++ b/resources/views/components/contacts/show/content.blade.php
@@ -184,7 +184,7 @@
id="transactions"
name="{{ trans_choice('general.transactions', 2) }}"
/>
-
+
@stack('transactions_nav_end')
@@ -261,7 +261,7 @@
-
+
@@ -359,7 +359,7 @@
-
+
diff --git a/resources/views/components/documents/index/document.blade.php b/resources/views/components/documents/index/document.blade.php
index e553d414e..db54143a8 100644
--- a/resources/views/components/documents/index/document.blade.php
+++ b/resources/views/components/documents/index/document.blade.php
@@ -163,7 +163,7 @@
@if (! $hideAmount)
@stack('amount_td_inside_start')
-
+
@stack('amount_td_inside_end')
diff --git a/resources/views/components/documents/index/information.blade.php b/resources/views/components/documents/index/information.blade.php
index 5cd96cd61..88f72e26a 100644
--- a/resources/views/components/documents/index/information.blade.php
+++ b/resources/views/components/documents/index/information.blade.php
@@ -62,7 +62,7 @@
-
+
@@ -100,7 +100,7 @@
@if ($document->paid)
-
+
@endif
@@ -111,7 +111,7 @@
-
+
diff --git a/resources/views/components/documents/index/recurring_templates.blade.php b/resources/views/components/documents/index/recurring_templates.blade.php
index 5766765e2..ebe862f85 100644
--- a/resources/views/components/documents/index/recurring_templates.blade.php
+++ b/resources/views/components/documents/index/recurring_templates.blade.php
@@ -97,7 +97,7 @@
-
+
diff --git a/resources/views/components/documents/template/classic.blade.php b/resources/views/components/documents/template/classic.blade.php
index 603763e8f..c12ab4a16 100644
--- a/resources/views/components/documents/template/classic.blade.php
+++ b/resources/views/components/documents/template/classic.blade.php
@@ -236,7 +236,7 @@
-
+
@endif
@@ -353,7 +353,7 @@
-
+
@stack($total->code . '_total_tr_end')
@@ -366,7 +366,7 @@
- -
+ -
@stack('paid_total_tr_end')
@@ -379,7 +379,7 @@
-
+
@stack('grand_total_tr_end')
diff --git a/resources/views/components/documents/template/default.blade.php b/resources/views/components/documents/template/default.blade.php
index 1187eb3f4..563414be9 100644
--- a/resources/views/components/documents/template/default.blade.php
+++ b/resources/views/components/documents/template/default.blade.php
@@ -324,7 +324,7 @@
-
+
@stack($total->code . '_total_tr_end')
@@ -337,7 +337,7 @@
- -
+ -
@stack('paid_total_tr_end')
@@ -350,7 +350,7 @@
-
+
@stack('grand_total_tr_end')
diff --git a/resources/views/components/documents/template/line-item.blade.php b/resources/views/components/documents/template/line-item.blade.php
index 892d7e6bf..bfafd3d8c 100644
--- a/resources/views/components/documents/template/line-item.blade.php
+++ b/resources/views/components/documents/template/line-item.blade.php
@@ -31,7 +31,7 @@
@stack('price_td_start')
@if (! $hidePrice)
-
+
|
@endif
@stack('price_td_end')
@@ -59,7 +59,7 @@
@else
-
+
|
@endif
@stack('discount_td_end')
@@ -69,7 +69,7 @@
@stack('total_td_start')
@if (! $hideAmount)
-
+
|
@endif
@stack('total_td_end')
diff --git a/resources/views/components/documents/template/modern.blade.php b/resources/views/components/documents/template/modern.blade.php
index 9ef940c1b..812047ba4 100644
--- a/resources/views/components/documents/template/modern.blade.php
+++ b/resources/views/components/documents/template/modern.blade.php
@@ -321,7 +321,7 @@
-
+
@stack($total->code . '_total_tr_end')
@@ -334,7 +334,7 @@
- -
+ -
@stack('paid_total_tr_end')
@@ -347,7 +347,7 @@
-
+
@stack('grand_total_tr_end')
diff --git a/resources/views/components/transactions/template/default.blade.php b/resources/views/components/transactions/template/default.blade.php
index 9c19a8830..a1269a73a 100644
--- a/resources/views/components/transactions/template/default.blade.php
+++ b/resources/views/components/transactions/template/default.blade.php
@@ -354,12 +354,12 @@
@if (! $hideRelatedDocumentAmount)
-
+
@endif
@if (! $hideRelatedAmount)
-
+
@endif
|
@@ -379,7 +379,7 @@
{{ trans($textAmount) }}
-
+
diff --git a/resources/views/components/transfers/template/default.blade.php b/resources/views/components/transfers/template/default.blade.php
index a02dec706..ca90cfa5a 100644
--- a/resources/views/components/transfers/template/default.blade.php
+++ b/resources/views/components/transfers/template/default.blade.php
@@ -253,7 +253,7 @@
@stack('details_end')
-
+
@@ -264,7 +264,7 @@
{{ trans('general.amount') }}
-
+
|
diff --git a/resources/views/components/transfers/template/second.blade.php b/resources/views/components/transfers/template/second.blade.php
index 541caccda..8698b0d63 100644
--- a/resources/views/components/transfers/template/second.blade.php
+++ b/resources/views/components/transfers/template/second.blade.php
@@ -259,7 +259,7 @@
{{ trans('general.amount') }}
-
+
diff --git a/resources/views/components/transfers/template/third.blade.php b/resources/views/components/transfers/template/third.blade.php
index 35d0ac5e1..10c93dae8 100644
--- a/resources/views/components/transfers/template/third.blade.php
+++ b/resources/views/components/transfers/template/third.blade.php
@@ -273,7 +273,7 @@
{{ trans('general.amount') }}
-
+
diff --git a/resources/views/components/widgets/last_payment.blade.php b/resources/views/components/widgets/last_payment.blade.php
index 95ffdc9e4..7d33a9dc9 100644
--- a/resources/views/components/widgets/last_payment.blade.php
+++ b/resources/views/components/widgets/last_payment.blade.php
@@ -9,7 +9,7 @@
-
+
@else
diff --git a/resources/views/components/widgets/outstanding_balance.blade.php b/resources/views/components/widgets/outstanding_balance.blade.php
index b2ba3e013..e5edeee55 100644
--- a/resources/views/components/widgets/outstanding_balance.blade.php
+++ b/resources/views/components/widgets/outstanding_balance.blade.php
@@ -10,9 +10,9 @@
-
+
-
+
{{ trans('bills.make_payment') }}
diff --git a/resources/views/portal/invoices/index.blade.php b/resources/views/portal/invoices/index.blade.php
index 2193520c0..60b28c96d 100644
--- a/resources/views/portal/invoices/index.blade.php
+++ b/resources/views/portal/invoices/index.blade.php
@@ -137,7 +137,7 @@
@stack('amount_td_inside_start')
-
+
@stack('amount_td_inside_end')
diff --git a/resources/views/portal/payments/index.blade.php b/resources/views/portal/payments/index.blade.php
index ed0c754ac..94ef2d9bf 100644
--- a/resources/views/portal/payments/index.blade.php
+++ b/resources/views/portal/payments/index.blade.php
@@ -49,7 +49,7 @@
-
+
@endforeach
diff --git a/resources/views/reports/profit_loss/content/footer.blade.php b/resources/views/reports/profit_loss/content/footer.blade.php
index a0527c971..f811960b4 100644
--- a/resources/views/reports/profit_loss/content/footer.blade.php
+++ b/resources/views/reports/profit_loss/content/footer.blade.php
@@ -8,12 +8,12 @@
@foreach($class->net_profit as $profit)
-
+
|
@endforeach
-
+
|
diff --git a/resources/views/reports/profit_loss/table/footer.blade.php b/resources/views/reports/profit_loss/table/footer.blade.php
index d62bc329d..dd2b9f501 100644
--- a/resources/views/reports/profit_loss/table/footer.blade.php
+++ b/resources/views/reports/profit_loss/table/footer.blade.php
@@ -8,12 +8,12 @@
@foreach($class->footer_totals[$table_key] as $total)
-
+
|
@endforeach
-
+
|
diff --git a/resources/views/reports/tax_summary/table/footer.blade.php b/resources/views/reports/tax_summary/table/footer.blade.php
index 10ccf6a95..b0681108d 100644
--- a/resources/views/reports/tax_summary/table/footer.blade.php
+++ b/resources/views/reports/tax_summary/table/footer.blade.php
@@ -8,12 +8,12 @@
@foreach($class->footer_totals[$table_key] as $total)
-
+
|
@endforeach
-
+
|