How to customize invoice sending criteria