convert setting('default.currency') to default_currency() helper function..
This commit is contained in:
@ -25,13 +25,13 @@
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="from_currency_code" v-model="form.from_currency_code" />
|
||||
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="to_currency_code" v-model="form.to_currency_code" />
|
||||
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<x-form.group.date name="transferred_at" label="{{ trans('general.date') }}" icon="calendar_today" value="{{ Date::now()->toDateString() }}" show-date-format="{{ company_date_format() }}" date-format="Y-m-d" autocomplete="off" />
|
||||
|
@ -20,25 +20,25 @@
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="from_currency_code" :value="$transfer->from_currency_code" v-model="form.from_currency_code" />
|
||||
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="to_currency_code" :value="$transfer->to_currency_code" v-model="form.to_currency_code" />
|
||||
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
@else
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="from_currency_code" :value="$transfer->from_currency_code" v-model="form.from_currency_code" />
|
||||
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="to_currency_code" :value="$transfer->to_currency_code" v-model="form.to_currency_code" />
|
||||
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
@ -119,14 +119,14 @@
|
||||
<x-table.td class="w-6/12 sm:w-3/12" kind="amount">
|
||||
<x-slot name="first">
|
||||
@if ($item->sale_price)
|
||||
<x-money :amount="$item->sale_price" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->sale_price" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
</x-slot>
|
||||
<x-slot name="second">
|
||||
@if ($item->purchase_price)
|
||||
<x-money :amount="$item->purchase_price" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->purchase_price" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
|
@ -221,7 +221,7 @@
|
||||
@if (! $hideOpen)
|
||||
<x-slot name="first">
|
||||
@if ($item->open)
|
||||
<x-money :amount="$item->open" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->open" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
@ -233,7 +233,7 @@
|
||||
@if (! $hideOverdue)
|
||||
<x-slot name="second">
|
||||
@if ($item->overdue)
|
||||
<x-money :amount="$item->overdue" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->overdue" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script src="{{ asset('public/vendor/js-cookie/js.cookie.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var company_currency_code = '{{ setting("default.currency") }}';
|
||||
var company_currency_code = '{{ default_currency() }}';
|
||||
</script>
|
||||
|
||||
@stack('scripts_start')
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script src="{{ asset('public/vendor/js-cookie/js.cookie.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var company_currency_code = '{{ setting("default.currency") }}';
|
||||
var company_currency_code = '{{ default_currency() }}';
|
||||
</script>
|
||||
|
||||
@stack('scripts_start')
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script src="{{ asset('public/vendor/js-cookie/js.cookie.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var company_currency_code = '{{ setting("default.currency") }}';
|
||||
var company_currency_code = '{{ default_currency() }}';
|
||||
</script>
|
||||
|
||||
@stack('scripts_start')
|
||||
|
@ -73,7 +73,7 @@
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
<span>{{ $class->has_money ? money($row_total, setting('default.currency'), true) : $row_total }}</span>
|
||||
<span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@ -91,7 +91,7 @@
|
||||
<div style="display:flex; align-items: center; padding-left: {{ ($tree_level + 1) * 20 }}px;">
|
||||
<span>{{ $class->row_names[$table_key][$id] }}</span>
|
||||
</div>
|
||||
<span>{{ $class->has_money ? money($row_total, setting('default.currency'), true) : $row_total }}</span>
|
||||
<span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
<x-form.group.text name="thousands_separator" label="{{ trans('currencies.thousands_separator') }}" not-required />
|
||||
|
||||
<x-form.group.toggle name="default_currency" label="{{ trans('currencies.default') }}" :value="$currency->default_currency" :disabled="(setting('default.currency') == $currency->code)" />
|
||||
<x-form.group.toggle name="default_currency" label="{{ trans('currencies.default') }}" :value="$currency->default_currency" :disabled="(default_currency() == $currency->code)" />
|
||||
</x-slot>
|
||||
</x-form.section>
|
||||
|
||||
|
Reference in New Issue
Block a user