Merge branch 'akaunting:master' into master
This commit is contained in:
commit
0825fd761f
@ -388,7 +388,14 @@ return [
|
||||
'id',
|
||||
'name' => ['searchable' => true],
|
||||
'enabled' => ['boolean' => true],
|
||||
'type',
|
||||
'type' => [
|
||||
'values' => [
|
||||
'income' => 'general.incomes',
|
||||
'expense' => 'general.expenses',
|
||||
'item' => 'general.items',
|
||||
'other' => 'general.others',
|
||||
],
|
||||
],
|
||||
'created_at' => ['date' => true],
|
||||
'updated_at' => ['date' => true],
|
||||
],
|
||||
|
@ -26,9 +26,8 @@ return [
|
||||
|
||||
'slider' => [
|
||||
'create' => ':user created this transfer on :date',
|
||||
'transactions' => 'In list here are the transactions that were created automatically.',
|
||||
'from_desc' => ':number transaction from :account',
|
||||
'to_desc' => ':number transaction to :account',
|
||||
'transactions' => 'List of transactions related to this transfer',
|
||||
'transactions_desc' => ':number transaction for :account',
|
||||
],
|
||||
|
||||
];
|
||||
|
@ -39,6 +39,7 @@
|
||||
label="{{ $field['title'] }}"
|
||||
data-field="settings"
|
||||
:attributes="$field['attributes']"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -49,16 +50,18 @@
|
||||
label="{{ $field['title'] }}"
|
||||
data-field="settings"
|
||||
:attributes="$field['attributes']"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@case('password')
|
||||
@case('passwordGroup')
|
||||
<x-form.group.email
|
||||
<x-form.group.password
|
||||
name="{{ $field['name'] }}"
|
||||
label="{{ $field['title'] }}"
|
||||
data-field="settings"
|
||||
:attributes="$field['attributes']"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -69,6 +72,7 @@
|
||||
label="{{ $field['title'] }}"
|
||||
data-field="settings"
|
||||
:attributes="$field['attributes']"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -83,6 +87,7 @@
|
||||
'model' => 'form.settings'.'.'.$field['name'],
|
||||
'show-date-format' => company_date_format(),
|
||||
], $field['attributes'])"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -92,9 +97,10 @@
|
||||
name="{{ $field['name'] }}"
|
||||
label="{{ $field['title'] }}"
|
||||
:options="$field['values']"
|
||||
:selected="$field['selected']"
|
||||
:selected="isset($report->settings->{$field['name']}) ? $report->settings->{$field['name']} : $field['selected']"
|
||||
data-field="settings"
|
||||
:attributes="$field['attributes']"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -106,6 +112,7 @@
|
||||
:attributes="array_merge([
|
||||
'data-field' => 'settings'
|
||||
], $field['attributes'])"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -117,6 +124,7 @@
|
||||
:attributes="array_merge([
|
||||
'data-field' => 'settings'
|
||||
], $field['attributes'])"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@break
|
||||
|
||||
@ -127,6 +135,7 @@
|
||||
:attributes="array_merge([
|
||||
'data-field' => 'settings'
|
||||
], $field['attributes'])"
|
||||
:dynamic-attributes="$field['attributes']"
|
||||
/>
|
||||
@endswitch
|
||||
@endforeach
|
||||
|
@ -1,3 +1,9 @@
|
||||
@php
|
||||
$link_class = 'to-black-400 hover:bg-full-2 bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize';
|
||||
$expense_number = '<a href="' . route('transactions.show', $transfer->expense_transaction->id) . '" class="' . $link_class . '">' . $transfer->expense_transaction->number . '</a>';
|
||||
$income_number = '<a href="' . route('transactions.show', $transfer->income_transaction->id) . '" class="' . $link_class . '">' . $transfer->income_transaction->number . '</a>';
|
||||
@endphp
|
||||
|
||||
<div class="border-b pb-4" x-data="{ transactions : null }">
|
||||
<button class="relative w-full text-left group" x-on:click="transactions !== 1 ? transactions = 1 : transactions = null">
|
||||
<span class="font-medium border-b border-transparent transition-all group-hover:border-black">
|
||||
@ -17,17 +23,11 @@
|
||||
x-bind:class="transactions === 1 ? 'h-auto' : 'scale-y-0 h-0'"
|
||||
>
|
||||
<div class="my-2">
|
||||
@php
|
||||
$number = '<a href="' . route('transactions.show', $transfer->expense_transaction->id) . '" class="text-purple">' . $transfer->expense_transaction->number . '</a>';
|
||||
@endphp
|
||||
{!! trans('transfers.slider.from_desc', ['number' => $number, 'account' => $transfer->expense_account->title]) !!}
|
||||
{!! trans('transfers.slider.transactions_desc', ['number' => $expense_number, 'account' => $transfer->expense_account->title]) !!}
|
||||
</div>
|
||||
|
||||
<div class="my-2">
|
||||
@php
|
||||
$number = '<a href="' . route('transactions.show', $transfer->income_transaction->id) . '" class="text-purple">' . $transfer->income_transaction->number . '</a>';
|
||||
@endphp
|
||||
{!! trans('transfers.slider.from_desc', ['number' => $number, 'account' => $transfer->income_account->title]) !!}
|
||||
{!! trans('transfers.slider.transactions_desc', ['number' => $income_number, 'account' => $transfer->income_account->title]) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user