Error creating opening entry

When creating a opening entry in sales of a person who is both supplier and customer it opening balance is showing paid.