new language strings and updated code

This commit is contained in:
James Cole
2018-07-28 06:27:30 +02:00
parent 0ccc1271a6
commit 07ae64693e
49 changed files with 298 additions and 269 deletions

View File

@@ -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);
}
}

View File

@@ -35,7 +35,10 @@ use Log;
class RecurrenceDestroyService
{
/**
* Delete recurrence.
*
* @param Recurrence $recurrence
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
public function destroy(Recurrence $recurrence): void
{