Prevent recorded deduction deletion #217
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
Related deductions can be removed from an eco account's detail view. Deductions which are related to an already recorded intervention, can be deleted as well. The related intervention will be unrecorded automatically by this action.
Fix
Deductions, which are related to an already recorded intervention, should not be deletable. Instead render the default "Data is recorded and cannot be edited" message.
Deleting deductions related to an unrecorded intervention is fine and works as intended.
Merged in #220