To delete payment "%(payment)s" you must reset it to draft state. Payment "%(payment)s" overpays line "%(line)s". You cannot erase party "%(party)s" while they have pending payments with company "%(company)s". Line "%(line)s" is blocked for payment. The lines "%(names)s" for %(party)s could be grouped with the line "%(line)s".