Wondering if anyone has any ideas…We ship from dif...
# suitescript
m
Wondering if anyone has any ideas…We ship from different locations and the carrier depends on which location. When selling via SCA we would like to have generic shipping items(2 day, 3 day, and standard) with a set price per pound calculation. Once the Sales order is submitted I would like to update the sales order to Fedex or Ups per item depending on the location through a script. We have Multiple Locations and Multiple Shipping Route enabled. I’ve attempted to update the line items and shipping group but I get a “Transaction was not in balance” error. If I remove the MSR and attempt to update each fulfillment I get an error because the fulfillment form needs to reload the packages tab based on shipping carrier.I’m out of ideas. Any help is appreciated.
b
is this a client script?
m
User event/After submit
b
I've done quite a bit with scripts that change ship method, but haven't had to deal with MSR
m
and I’m not sure we need to use the MSR feature, but I’m not sure how else to do it
b
i've only had to set ship via at the header/body level.
MSR just means each SO line can have its own ship method?
m
Correct.
b
what is "shipping group" - header or line item on the SO?
m
Its a separate sublist on the shipping tab
b
it shows how to get shipping groups but not set - maybe those are read only?
m
I can set them through the UI
I think the problem is Netsuites calculation behind the scene
b
based on the same code, shouldn't you just set the
shipaddress
and
shipmethod
on the SO lines, and let NS worry about
shipgroup
?
m
It doesn’t update and then it errors out when trying to fulfill because the so lines and the shipgroup are different
r
Is the record object in dynamic mode or standard mode? If in dynamic mode, have you tried setting the fields in the same order as what you do in the UI?
m
the record loads in standard mode
r
Try loading it in dynamic mode
m
Updated to dynamic but I’m still getting TRANS_UNBALNCD