This commit is contained in:
Cüneyt Şentürk 2022-10-05 10:09:10 +03:00
parent 4e6988373c
commit 38c6ccd9c7
10 changed files with 46 additions and 46 deletions

View File

@ -171,7 +171,7 @@ abstract class Report
$sum += is_array($total) ? array_sum($total) : $total;
}
$total = $this->has_money ? money($sum, setting('default.currency'), true)->format() : $sum;
$total = $this->has_money ? money($sum, default_currency(), true)->format() : $sum;
} else {
$total = trans('general.na');
}

View File

@ -67,7 +67,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate
$currency_code = !empty($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
$this->request['company_id'] = $this->model->company_id;
$this->request['currency_code'] = isset($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
$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['account_id'] = isset($this->request['account_id']) ? $this->request['account_id'] : setting('default.account');

View File

@ -66,7 +66,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate
$currency_code = ! empty($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
$this->request['company_id'] = $this->model->company_id;
$this->request['currency_code'] = isset($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
$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['account_id'] = isset($this->request['account_id']) ? $this->request['account_id'] : setting('default.account');

View File

@ -66,7 +66,7 @@
<x-index.disable text="{{ trans_choice('general.currencies', 1) }}" />
@endif
@if ($item->code == setting("default.currency"))
@if ($item->code == default_currency())
<x-index.default text="{{ trans('currencies.default') }}" />
@endif
</x-slot>