Withdrawal directly from Piggy Bank - Fixes #6631

This commit is contained in:
Christian Desktop
2023-05-21 22:01:58 -06:00
committed by ChrisWin22
parent 6d0906c37b
commit 74992e95f2
5 changed files with 3 additions and 30 deletions

View File

@@ -65,12 +65,6 @@ class UpdatePiggybank implements ActionInterface
$type = TransactionType::find((int)$journalObj->transaction_type_id);
$journal['transaction_type_type'] = $type->type;
if (TransactionType::TRANSFER !== $journal['transaction_type_type']) {
Log::info(sprintf('Journal #%d is a "%s" so skip this action.', $journal['transaction_journal_id'], $journal['transaction_type_type']));
return false;
}
$piggyBank = $this->findPiggyBank($user);
if (null === $piggyBank) {
Log::info(