diff --git a/app/Abstracts/View/Components/Transactions/Show.php b/app/Abstracts/View/Components/Transactions/Show.php index 64bb0994e..35d6e5d2c 100644 --- a/app/Abstracts/View/Components/Transactions/Show.php +++ b/app/Abstracts/View/Components/Transactions/Show.php @@ -1082,14 +1082,14 @@ abstract class Show extends Component return $textRecurringType; } - $default_key = config('type.' . $type . '.translation.prefix'); + $default_key = config('type.transaction.' . $type . '.translation.transactions'); - $translation = $this->getTextFromConfig($type, 'recurring_tye', $default_key); + $translation = $this->getTextFromConfig($type, 'recurring_type', $default_key); if (! empty($translation)) { return $translation; } - return 'general.revenues'; + return 'general.incomes'; } } diff --git a/app/Jobs/Common/DuplicateContact.php b/app/Jobs/Common/DuplicateContact.php index 86eb32cdd..b13e9f002 100644 --- a/app/Jobs/Common/DuplicateContact.php +++ b/app/Jobs/Common/DuplicateContact.php @@ -1,27 +1,27 @@ -model = $model; - - parent::__construct($model); - } - - public function handle(): Contact - { - \DB::transaction(function () { - $this->clone = $this->model->duplicate(); - }); - - return $this->clone; - } -} +model = $model; + + parent::__construct($model); + } + + public function handle(): Contact + { + \DB::transaction(function () { + $this->clone = $this->model->duplicate(); + }); + + return $this->clone; + } +} diff --git a/config/type.php b/config/type.php index fe2a1bacf..c27514990 100644 --- a/config/type.php +++ b/config/type.php @@ -326,7 +326,7 @@ return [ 'translation' => [ 'prefix' => 'transactions', // this translation file name. 'new' => 'general.recurring_incomes', - 'transactions' => 'general.expenses', + 'transactions' => 'general.incomes', ], 'image_empty_page' => 'public/img/empty_pages/recurring_templates.png', 'script' => [ @@ -377,7 +377,9 @@ return [ //'create' => 'create-banking-transactions', ], 'translation' => [ + 'prefix' => 'transactions', // this translation file name. 'new' => 'general.recurring_expenses', + 'transactions' => 'general.expenses', ], 'image_empty_page' => 'public/img/empty_pages/recurring_templates.png', 'script' => [ diff --git a/resources/views/components/transactions/show/schedule.blade.php b/resources/views/components/transactions/show/schedule.blade.php index 9a67cf7dc..df4d28e6c 100644 --- a/resources/views/components/transactions/show/schedule.blade.php +++ b/resources/views/components/transactions/show/schedule.blade.php @@ -26,7 +26,7 @@ @if ($next = $transaction->recurring->getNextRecurring()) {{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }}
- @if (($transaction->recurring->limit_by == 'count')) + @if ($transaction->recurring->limit_by == 'count') @if ($transaction->recurring->limit_count == 0) {{ trans('recurring.ends_never') }} @else