From 49fe71d671d5257a068f36ca23dd7acabb70ee3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Thu, 27 Mar 2025 01:00:25 +0300 Subject: [PATCH] updated import currency thousands separator --- app/Traits/Import.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/Traits/Import.php b/app/Traits/Import.php index c9858fd92..7db337881 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -126,15 +126,16 @@ trait Import try { $data = [ - 'company_id' => company_id(), - 'code' => $row['currency_code'], - 'name' => isset($row['currency_name']) ? $row['currency_name'] : currency($row['currency_code'])->getName(), - 'rate' => isset($row['currency_rate']) ? $row['currency_rate'] : 1, - 'symbol' => isset($row['currency_symbol']) ? $row['currency_symbol'] : currency($row['currency_code'])->getSymbol(), - 'precision' => isset($row['currency_precision']) ? $row['currency_precision'] : currency($row['currency_code'])->getPrecision(), - 'decimal_mark' => isset($row['currency_decimal_mark']) ? $row['currency_decimal_mark'] : currency($row['currency_code'])->getDecimalMark(), - 'created_from' => !empty($row['created_from']) ? $row['created_from'] : $this->getSourcePrefix() . 'import', - 'created_by' => !empty($row['created_by']) ? $row['created_by'] : user()?->id, + 'company_id' => company_id(), + 'code' => $row['currency_code'], + 'name' => isset($row['currency_name']) ? $row['currency_name'] : currency($row['currency_code'])->getName(), + 'rate' => isset($row['currency_rate']) ? $row['currency_rate'] : 1, + 'symbol' => isset($row['currency_symbol']) ? $row['currency_symbol'] : currency($row['currency_code'])->getSymbol(), + 'precision' => isset($row['currency_precision']) ? $row['currency_precision'] : currency($row['currency_code'])->getPrecision(), + 'decimal_mark' => isset($row['currency_decimal_mark']) ? $row['currency_decimal_mark'] : currency($row['currency_code'])->getDecimalMark(), + 'thousands_separator' => isset($row['currency_thousands_separator']) ? $row['currency_thousands_separator'] : currency($row['currency_code'])->getThousandsSeparator(), + 'created_from' => !empty($row['created_from']) ? $row['created_from'] : $this->getSourcePrefix() . 'import', + 'created_by' => !empty($row['created_by']) ? $row['created_by'] : user()?->id, ]; } catch (\OutOfBoundsException $e) { return default_currency();