Discussions
Line Item Amount Doesn't Change With Suite Script
Ok so here is the scenario:
I have product a and I use a server script to replace it with product b. Product's b price is different than product a. Also product b's price is different depending on the price level for the customer.
Here is the issue:
When substituting product a with product b via suitescript, the sourcing of price occurs AFTER the record is submitted. After submission the new product and it's sourced fields including price show up correctly. The problem is that the total "amount" of the line item does not change according to the new rates. I imagine that it is designed this way because the amount field can be overwritten and it seems like it is independent of the rate and quantity.