Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Change in the Default Behaviour of Shipping Cost
According to Suite Answer Id: 12660, we set the default shipping rate for our in house trucking to Flat Rate =0. This was done several years ago.
Sales will manually calculate the charge and enter it into the shippingcost field on an estimate or salesorder. Up until 6/13/2019 when an estimate or salesorder was edited (item removed, a subtotal recalculation occurred, etc.) and the corresponding SuiteScript triggered, the shipping cost was never affected. Now whenever an edit occurs the shipping cost changes back to the flat rate of Zero.
I found Answer ID 12034 that describes this as a default behavior. I can fix most of the code using NS's suggestion of saving the shipping cost after the loadRecord and resetting the field value just before the submitRecord.