mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
new language strings and updated code
This commit is contained in:
@@ -40,12 +40,14 @@ class AccountDestroyService
|
||||
* @param Account|null $moveTo
|
||||
*
|
||||
* @return void
|
||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
||||
*/
|
||||
public function destroy(Account $account, ?Account $moveTo): void
|
||||
{
|
||||
if (null !== $moveTo) {
|
||||
DB::table('transactions')->where('account_id', $account->id)->update(['account_id' => $moveTo->id]);
|
||||
}
|
||||
$service = app(JournalDestroyService::class);
|
||||
|
||||
Log::debug('Now trigger account delete response #' . $account->id);
|
||||
/** @var Transaction $transaction */
|
||||
@@ -56,7 +58,7 @@ class AccountDestroyService
|
||||
if (null !== $journal) {
|
||||
Log::debug('Call for deletion of journal #' . $journal->id);
|
||||
/** @var JournalDestroyService $service */
|
||||
$service = app(JournalDestroyService::class);
|
||||
|
||||
$service->destroy($journal);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,10 @@ use Log;
|
||||
class RecurrenceDestroyService
|
||||
{
|
||||
/**
|
||||
* Delete recurrence.
|
||||
*
|
||||
* @param Recurrence $recurrence
|
||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
||||
*/
|
||||
public function destroy(Recurrence $recurrence): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user