On an elliptic extension of the Kadomtsev–Petviashvili equation