This was actually quite shocking, there was no validation preventing these from being deleted when there is payments attached to them
Previously it would just attempt to delete as much as it can (any employee Enrollments, etc), and it would leave the Payment records in a broken state.
Now it will still automatically destroy employee enrollments, but if there is any payments associated, it will not do anything and display an error.
Leave A Comment?