Hi,
We have a custom workflow on Sales order form. The requirement is that when a sales order status is set to approved, the sales order type should be changed to Sales order from Journal.
If we use the doupdate method of sales line to change the type, it is getting changed but since the others methods are not getting called, the inventrans is not getting created for those lines, if we use the update method, inventtrans is getting created but the unit price in sales line is getting changed to zero.
Also, one thing I've noticed is that sales line history is also not there in the saleslinehistory table for the approved sales order.
May I know if I'm missing anything in this case.