How to generate invoice from a custom application


I am trying to create an custom app for testing services for industry which is similar to hospital lab testing. i find difficult to apply the business rule in Item, so i am creating a custom application for it. how to generate invoice for the testing service from the custom app???

This is my price list