Automate invoice dispatch based on specific conditions