Service invoice based on a maintenance visit

ChatGPT said:

ChatGPT

I want to create a service invoice based on a maintenance visit. I need a script to transfer and link the customer’s name and all item codes from the maintenance visit table to the item table in the sales invoice.