On the record payment screen it is requiring the user to assign a payment number even if they do not want to assign one. Then if they use a number that is already in existence they get an error message.
In instances when the user does not want to assign a payment number the system should randomly assign one for them if it is a required field.