mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Fix #4529
This commit is contained in:
@@ -70,6 +70,8 @@ class TransferCurrenciesCorrections extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$this->stupidLaravel();
|
$this->stupidLaravel();
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
|
@@ -63,23 +63,30 @@ class JournalUpdateService
|
|||||||
private array $metaString;
|
private array $metaString;
|
||||||
private ?Account $sourceAccount;
|
private ?Account $sourceAccount;
|
||||||
private ?Transaction $sourceTransaction;
|
private ?Transaction $sourceTransaction;
|
||||||
private TransactionGroup $transactionGroup;
|
private ?TransactionGroup $transactionGroup;
|
||||||
private TransactionJournal $transactionJournal;
|
private ?TransactionJournal $transactionJournal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JournalUpdateService constructor.
|
* JournalUpdateService constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->billRepository = app(BillRepositoryInterface::class);
|
$this->destinationAccount = null;
|
||||||
$this->categoryRepository = app(CategoryRepositoryInterface::class);
|
$this->destinationTransaction = null;
|
||||||
$this->budgetRepository = app(BudgetRepositoryInterface::class);
|
$this->sourceAccount = null;
|
||||||
$this->tagFactory = app(TagFactory::class);
|
$this->sourceTransaction = null;
|
||||||
$this->accountRepository = app(AccountRepositoryInterface::class);
|
$this->transactionGroup = null;
|
||||||
$this->currencyRepository = app(CurrencyRepositoryInterface::class);
|
$this->transactionJournal = null;
|
||||||
$this->metaString = ['sepa_cc', 'sepa_ct_op', 'sepa_ct_id', 'sepa_db', 'sepa_country', 'sepa_ep', 'sepa_ci', 'sepa_batch_id', 'recurrence_id',
|
$this->billRepository = app(BillRepositoryInterface::class);
|
||||||
'internal_reference', 'bunq_payment_id', 'external_id', 'external_uri'];
|
$this->categoryRepository = app(CategoryRepositoryInterface::class);
|
||||||
$this->metaDate = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date',];
|
$this->budgetRepository = app(BudgetRepositoryInterface::class);
|
||||||
|
$this->tagFactory = app(TagFactory::class);
|
||||||
|
$this->accountRepository = app(AccountRepositoryInterface::class);
|
||||||
|
$this->currencyRepository = app(CurrencyRepositoryInterface::class);
|
||||||
|
$this->metaString = ['sepa_cc', 'sepa_ct_op', 'sepa_ct_id', 'sepa_db', 'sepa_country', 'sepa_ep', 'sepa_ci', 'sepa_batch_id',
|
||||||
|
'recurrence_id',
|
||||||
|
'internal_reference', 'bunq_payment_id', 'external_id', 'external_uri'];
|
||||||
|
$this->metaDate = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date',];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user