Invoice Line Items

Can you please assist?

I am trying to create invoices using an entry point. I can fill all fields except the group/line items section.

I first generate an invoice before I create a group using the “AOS_Line_Item_Groups” bean.

After that, I generate line items using the “AOS_Products_Quotes” bean.
I populate the parent_type with “AOS_Invoices” and parent_id with the invoices id.

This does populate the group/line items section with the products but as services. Does anyone know how to change this?

Thanks in advance
Roelf

The solution was to create a product via bean and add that generated id to the product id field in the product quotes bean.