I have a script module that creates sales orders. It works great but I just encountered a situation where it creates the SO but it shows 0.00 for the Unit Price column (field: rate) on the order line and also shows 0.00 for the Amount column. It doesn’t behave like that on the other SOs. For testing purposes, I hard-coded a fixed value of 99 for the rate and it showed up on the order line and the amount column shows the amount I am feeding into it. I have a theory that it has to do with how the price levels are set on the item but the behavior doesn’t support the theory since the other SOs have items that are configured the same way on price levels. Has anyone else encountered something similar and if so what is the cause and the solution?