mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Some light refactoring. No changes.
This commit is contained in:
@@ -30,6 +30,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
* Class ExportJob.
|
||||
*
|
||||
* @property User $user
|
||||
* @property string $key
|
||||
*/
|
||||
class ExportJob extends Model
|
||||
{
|
||||
|
@@ -66,6 +66,7 @@ use Watson\Validating\ValidatingTrait;
|
||||
* @property string $transaction_currency_symbol
|
||||
* @property int $transaction_currency_dp
|
||||
* @property string $transaction_currency_code
|
||||
* @property string $description
|
||||
*/
|
||||
class Transaction extends Model
|
||||
{
|
||||
|
@@ -28,6 +28,9 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/**
|
||||
* Class TransactionCurrency.
|
||||
*
|
||||
* @property string $code
|
||||
*
|
||||
*/
|
||||
class TransactionCurrency extends Model
|
||||
{
|
||||
|
@@ -92,8 +92,6 @@ class TransactionJournal extends Model
|
||||
if (auth()->check()) {
|
||||
$journalId = intval($value);
|
||||
$journal = auth()->user()->transactionJournals()->where('transaction_journals.id', $journalId)
|
||||
->with('transactionType')
|
||||
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
|
||||
->first(['transaction_journals.*']);
|
||||
if (!is_null($journal)) {
|
||||
return $journal;
|
||||
|
Reference in New Issue
Block a user