How to generate invoice on a work order