Purchase Invoice yielding wrong double entry in Version 13 Better

We have processed a purchase invoice and ticked update stock. Instead of debiting Stock and Crediting it is yielding the double entry below. Kindly assist on what could be the problem.