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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Shippingcost fields returning wrong value
I am losing my mind trying to get the right shipping costs out of a sales order.
Scenario
When a customer places an order on our webstore, they are charged a flat $5.00 for shipping, as is set up by our Shipping Items.
The customer can also enter a promo code which grants them free shipping.
When the order is placed, the shiping cost is taken from the SO and displayed in an order confirmation email that is sent to the customer via Suitescript.
Problem
The Suitescript API consistently returns the wrong value when the above scenario happens.
There are two fields from which we can potentially get the shipping cost on an order:
0