mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Use correct methods.
This commit is contained in:
@@ -106,6 +106,8 @@ trait RecurringTransactionTrait
|
|||||||
throw new FireflyException(sprintf('Destination invalid: %s', $validator->destError)); // @codeCoverageIgnore
|
throw new FireflyException(sprintf('Destination invalid: %s', $validator->destError)); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO typeOverrule: the account validator may have another opinion on the transaction type.
|
||||||
|
|
||||||
$transaction = new RecurrenceTransaction(
|
$transaction = new RecurrenceTransaction(
|
||||||
[
|
[
|
||||||
'recurrence_id' => $recurrence->id,
|
'recurrence_id' => $recurrence->id,
|
||||||
|
@@ -362,6 +362,8 @@ class JournalUpdateService
|
|||||||
$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)));
|
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.
|
||||||
|
|
||||||
// validate submitted info:
|
// validate submitted info:
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -394,6 +396,8 @@ class JournalUpdateService
|
|||||||
$result = $validator->validateSource($sourceId, $sourceName, null);
|
$result = $validator->validateSource($sourceId, $sourceName, null);
|
||||||
Log::debug(sprintf('hasValidSourceAccount(%d, "%s") will return %s', $sourceId, $sourceName, var_export($result, true)));
|
Log::debug(sprintf('hasValidSourceAccount(%d, "%s") will return %s', $sourceId, $sourceName, var_export($result, true)));
|
||||||
|
|
||||||
|
// TODO typeOverrule: the account validator may have another opinion on the transaction type.
|
||||||
|
|
||||||
// validate submitted info:
|
// validate submitted info:
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user