ATYPE works on posting accounts only. The TATYPE procedure works on total accounts and it will correctly mark all posting accounts that total to it regardless of where they are located. In your example, all expense accounts that filter to the TE.T account will be marked as expense accounts.