Skip to content
Snippets Groups Projects
Commit 99f0b35d authored by Robert Goldmann's avatar Robert Goldmann
Browse files

cleanup

parent 9a8a1b34
Branches
Tags
No related merge requests found
Pipeline #610 passed
...@@ -128,13 +128,13 @@ public class TransactionService implements Resetable ...@@ -128,13 +128,13 @@ public class TransactionService implements Resetable
{ {
Transaction transactionToDelete = transactionRepository.findOne(ID); Transaction transactionToDelete = transactionRepository.findOne(ID);
// handle repeating transactions // handle repeating transactions
if(transactionToDelete.getRepeatingOption() != null) if(transactionToDelete.getRepeatingOption() == null)
{ {
repeatingOptionRepository.delete(transactionToDelete.getRepeatingOption().getID()); transactionRepository.delete(ID);
} }
else else
{ {
transactionRepository.delete(ID); repeatingOptionRepository.delete(transactionToDelete.getRepeatingOption().getID());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment