🤖 Auto commit for release 'develop' on 2025-05-13

This commit is contained in:
JC5
2025-05-13 12:40:59 +02:00
parent 0f3fe45b06
commit 94961466f9
4 changed files with 18 additions and 17 deletions

View File

@@ -725,7 +725,7 @@ class JournalUpdateService
// but rather the normal amount and currency. This is new behavior.
$isTransfer = TransactionTypeEnum::TRANSFER->value === $this->transactionJournal->transactionType->type;
// also check if it is not between an asset account and a liability, because then the same rule applies.
$isBetween = $this->isBetweenAssetAndLiability();
$isBetween = $this->isBetweenAssetAndLiability();
if ($isTransfer || $isBetween) {
Log::debug('Switch amounts, store in amount and not foreign_amount');
@@ -772,6 +772,7 @@ class JournalUpdateService
$this->sourceTransaction->refresh();
$this->destinationTransaction->refresh();
}
private function isBetweenAssetAndLiability(): bool
{
/** @var Transaction $sourceTransaction */