mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix #4663
This commit is contained in:
		| @@ -292,7 +292,7 @@ class JournalUpdateService | ||||
|         $validator->setTransactionType($expectedType); | ||||
|         $validator->setUser($this->transactionJournal->user); | ||||
|         $validator->source = $this->getValidSourceAccount(); | ||||
|         $result = $validator->validateDestination($destId, $destName, null); | ||||
|         $result            = $validator->validateDestination($destId, $destName, null); | ||||
|         Log::debug(sprintf('hasValidDestinationAccount(%d, "%s") will return %s', $destId, $destName, var_export($result, true))); | ||||
|  | ||||
|         // TODO typeOverrule: the account validator may have another opinion on the transaction type. | ||||
| @@ -527,6 +527,10 @@ class JournalUpdateService | ||||
|             Log::debug('Will update budget.'); | ||||
|             $this->storeBudget($this->transactionJournal, new NullArrayObject($this->data)); | ||||
|         } | ||||
|         // is transfer? remove budget | ||||
|         if (TransactionType::TRANSFER === $this->transactionJournal->transactionType->type) { | ||||
|             $this->transactionJournal->budgets()->sync([]); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user