Hey scripting pros. I have question related to som...
# suitescript
a
Hey scripting pros. I have question related to some logic which I don't get it. There is a custom body field custbody_delivery_terms from Netsuite bundle "International Tax Reports". However this field is hidden and for some reason the user is asked to fill in delivery terms to scripted field custpage_delivery_terms and only after save the value is transferred from custpage_delivery_terms to custbody_delivery_terms. Why it is realized so complicated?
a
I'm guessing because there's some conditional code that gets ran on the field being populated, and so they only want to set it when other things have been validated, and they do that before setting the custbody value. its not a great way to do it because it does lead to this confusion but my guess would be they already had the suitelet (with custpage field) for other reasons and then when they needed to have conditional logic/validation based on delivery terms it was easier to just do that in the suitelet and be able to avoid a bunch of situations like people setting delivery terms on non-international orders or whatever.... but that's all basically speculation you're essentially asking us for the intent behind a design decision that we didn't make... no one knows for sure.