I'll get right to it, update soon.
Don't we have the $focus object available, which would eliminate the need to do a vtws_retrieve?
(08-05-2016, 08:30 AM)joebordes Wrote: No, off the top of my head I don't think there is anything like this.
My recommendation would be to use webservice: call vtws_retrieve to get the SO details, modify the values, look at getConvertSoToInvoice() in EditViewUtils.php and then send in the values to vtws_create.
Don't we have the $focus object available, which would eliminate the need to do a vtws_retrieve?