How to close ordered invoice?