The service invoicing happens in a same way as the purchase invoicing. That means running a simple function that will automatically create a purchase invoice with all the necessary data.