We have developed an UI AddOn where we automatically compute and assign a tax value into the Freight1 matrix column, during a Sales Order creation. This tax amount depends on the line quantity, so that when the user changes it inside SBO, the tax amount is automatically computed and saved on the Sales Order.
However, we need to change the item quantity again of the Sales Order item via DI API in an additional process.
When we run the follwoing code:
pSalesOrder.SpecialLines.Freight1 = 10; // throws exception "column is read-only!
The second line always throws an exception, saying the column is read-only!
Is it possible to change the Freight1 value with DI API?
Is there any other way to do this with DI API ?