You can use a sanitary T going from the horizontal to the vertical.
You may not use a sanitary T going from the vertical to the horizontal.
Some of the joyous pronouncements from the inspector man.
The plumbing drain lines just plain flunked and must be done over - about from scratch.
Oh and by the way you need a four inch line going into the turdbox even though three inch line is fine for the part that precedes it.
And I tell my self in the big picture of things this does not amount to much.