Discussions
Recalculate Shipping Cost in Suitelet?
Does anyone know of a way to have the system recalculate real-time shipping costs via a Suitelet server-side script?
I have a custom suitelet that takes package information (provided in a POST request when the user submits a custom form) and transforms a sales order to an item fullfillment transaction via the nlapiTransformRecord function. The script adds the package lines to the item fulfillment with weight, declared value, etc...
I want to have the system perform a Shipping Cost recalculation based on the packages added to the new item fulfillment during script runtime.