mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
🤖 Auto commit for release 'develop' on 2025-11-09
This commit is contained in:
@@ -78,6 +78,7 @@ trait AccountServiceTrait
|
||||
// not set, so false.
|
||||
return false;
|
||||
}
|
||||
|
||||
// if is set, but is empty:
|
||||
return (array_key_exists('opening_balance', $data) && '' === $data['opening_balance'])
|
||||
|| (array_key_exists('opening_balance_date', $data) && '' === $data['opening_balance_date']);
|
||||
|
||||
@@ -41,9 +41,9 @@ use Illuminate\Support\Facades\Log;
|
||||
class CreditRecalculateService
|
||||
{
|
||||
private ?Account $account = null;
|
||||
private ?TransactionGroup $group = null;
|
||||
private ?TransactionGroup $group = null;
|
||||
private AccountRepositoryInterface $repository;
|
||||
private array $work = [];
|
||||
private array $work = [];
|
||||
|
||||
public function recalculate(): void
|
||||
{
|
||||
|
||||
@@ -105,6 +105,7 @@ class GroupUpdateService
|
||||
|
||||
$result = array_diff($existing, $updated);
|
||||
Log::debug('Result of DIFF: ', $result);
|
||||
|
||||
/** @var string $deletedId */
|
||||
foreach ($result as $deletedId) {
|
||||
/** @var TransactionJournal $journal */
|
||||
|
||||
@@ -63,11 +63,11 @@ class JournalUpdateService
|
||||
private CurrencyRepositoryInterface $currencyRepository;
|
||||
private TransactionGroupRepositoryInterface $transactionGroupRepository;
|
||||
private array $data;
|
||||
private ?Account $destinationAccount = null;
|
||||
private ?Transaction $destinationTransaction = null;
|
||||
private array $metaDate = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date',
|
||||
private ?Account $destinationAccount = null;
|
||||
private ?Transaction $destinationTransaction = null;
|
||||
private array $metaDate = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date',
|
||||
'invoice_date', ];
|
||||
private array $metaString = [
|
||||
private array $metaString = [
|
||||
'sepa_cc',
|
||||
'sepa_ct_op',
|
||||
'sepa_ct_id',
|
||||
@@ -82,11 +82,11 @@ class JournalUpdateService
|
||||
'external_id',
|
||||
'external_url',
|
||||
];
|
||||
private ?Account $sourceAccount = null;
|
||||
private ?Transaction $sourceTransaction = null;
|
||||
private ?TransactionGroup $transactionGroup = null;
|
||||
private ?Account $sourceAccount = null;
|
||||
private ?Transaction $sourceTransaction = null;
|
||||
private ?TransactionGroup $transactionGroup = null;
|
||||
private ?TransactionJournal $transactionJournal = null;
|
||||
private string $startCompareHash = '';
|
||||
private string $startCompareHash = '';
|
||||
|
||||
/**
|
||||
* JournalUpdateService constructor.
|
||||
|
||||
Reference in New Issue
Block a user