Roll back of payment transaction
When entering a payment transaction the system sets invoices to paid. If an invoice gets overpaid the system generates a credit amount. When the paymnet transaction is removed or changed the credit amount and the paymnet status are not updated automatically. The invoice is still marked paid and in some cases there is a credit amount that is not corrected or removed.