Delivery Address Not Set Correctly in Sales Order

To resolve the issue of the delivery address not being set correctly in Sales Orders, ensure the Override checkbox is explicitly set to false when creating a Sales Order (SO). let shipaddrSubrecord = salesOrder.getSubrecord({ fieldId: ‘shippingaddress’ }); shipaddrSubrecord.setText({   fieldId: ‘country’,   value: shipTo?.Address[“@attributes”]?.isoCountryCode }); shipaddrSubrecord.setValue({ fieldId: ‘attention’, value: ” }); shipaddrSubrecord.setValue({   fieldId: ‘addressee’,   value: Array.isArray(shipTo.Address.PostalAddress.DeliverTo)     ?… Continue reading Delivery Address Not Set Correctly in Sales Order

Item Fulfillment – Address Update

Scenario A User Event script is loading the Item Fulfillment record dynamically and it appends details to the Attention (id: attention) field found in the Address subrecord. Appending values to the said field in the record level will automatically check the Override (id: override)checkbox that is also a part of the Address subrecord of the Item Fulfillment and set… Continue reading Item Fulfillment – Address Update

Working with Address Override

A user may want to set a default value, whether marked or unmarked as default, for the Override box in the Address field of their transaction recordsSolution:For transactions that will be created manually in the NetSuite UI. the default value of the Override box in the Address field of transaction records depends solely on the default value set on the Address field in the Customer/Vendor records.For instance,… Continue reading Working with Address Override