Fix wrong group status
Remove invalid test (createPurchase needs to have a paymentMethodId not null)
Implement soft delete for invoice_payment_control_plugin_auto_pay_off
Minor refactoring of code.