@Yadigar Setup > Accounting > Accounting Preferences: check "Make Departments mandatory" and "allow per-line classifications on journals". but note: you'll have to customize your journal and other transaction forms to hide the header level department field, otherwise that field will be mandatory as well.