Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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.
0