I'm trying to use the Invoice form (133) from code to create an invoice document based on one or more sales orders.
I can fill the matrix with copies of lines from the sales orders, but I can't set the base ref on these lines. Therefore the sales order is not getting closed.
Im doing this because I don't want to create the invoice in the database without showing it to the user first.
Have anybody tried doing it this way?
Message was edited by: Magnus Byrkjeflot