Hi doctorini,
In the Company Profile for Adagio Payables, on the Batch Options tab, there is a setting for 'Validate ledger account'. There are choices to determine whether the account and/or department have to be valid in order to save distributions on invoice and cash invoice batch entries.
There isn't a specific choice to validate against a blank department code, but there are choices to validate against an existing account-department combination, and also to validate against existing separate account and department codes. Either of these choices would work for you, provided that you don't have an account defined in Ledger with a blank department code (which would pass the validation check).
_________________________
Regards,
Softrak Tech Support