To prevent inactive records from being included, you can adjust your Business Rules:

1. In Student Billing, select Configuration, Business Rules
2. Select Automatic Application
3. Uncheck the option to include inactive students/individuals/organizations
User-added image