new teamsplit query and slight mod to payment inspector for null dates