Hi Everybody......i have a very specific situation...
# suitescript
f
Hi Everybody......i have a very specific situation....a client requires that we exclude some items from the shipping calculations in Sales Orders..... we have already determined that using promotions for this particular case is not possible........so the only workaround we found out, was using a ClientScript, attached to "fieldchanged" event of the "shippingcost" on the sales order....and whenever that field change...we recalculate it with the right amount. This approach has 2 issues so far that i will really appreciate your help with: 1) Its not working from the webstore shopping cart (webstore completely ignores the event.....and the shipping cost auto calculates without my script) 2) in the UI, when updating a SO, you click the calculator button next to Shipping Cost......and it calculates the right value (using my script)......however, the Summary Box -> Shipping cost (at the middle right of the screen)....it shows the wrong value Any help on these issues please?
p
i believe there is a checkbox called “exclude from rate calculations” on sales order transaction lines. Have you tried using that instead of recalculating yourself? As for the webstore: client scripts on the sales order deployed to webstore context are known as “Scriptable cart”. Scriptable carts work different and execute events different to client script in the sales order. They also execute with different permissions (because they run with customer role) and server side. The “to-go” recommendation is to code logic in the recalc function for them.