formatting
This commit is contained in:
@ -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';
|
||||
}
|
||||
}
|
||||
|
@ -1,27 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Common;
|
||||
|
||||
use App\Abstracts\Job;
|
||||
use App\Models\Common\Contact;
|
||||
|
||||
class DuplicateContact extends Job
|
||||
{
|
||||
protected $clone;
|
||||
|
||||
public function __construct(Contact $model)
|
||||
{
|
||||
$this->model = $model;
|
||||
|
||||
parent::__construct($model);
|
||||
}
|
||||
|
||||
public function handle(): Contact
|
||||
{
|
||||
\DB::transaction(function () {
|
||||
$this->clone = $this->model->duplicate();
|
||||
});
|
||||
|
||||
return $this->clone;
|
||||
}
|
||||
}
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Common;
|
||||
|
||||
use App\Abstracts\Job;
|
||||
use App\Models\Common\Contact;
|
||||
|
||||
class DuplicateContact extends Job
|
||||
{
|
||||
protected $clone;
|
||||
|
||||
public function __construct(Contact $model)
|
||||
{
|
||||
$this->model = $model;
|
||||
|
||||
parent::__construct($model);
|
||||
}
|
||||
|
||||
public function handle(): Contact
|
||||
{
|
||||
\DB::transaction(function () {
|
||||
$this->clone = $this->model->duplicate();
|
||||
});
|
||||
|
||||
return $this->clone;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user