Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Updating the quantity on a Sales Order Item does not update the item's gross amount!
I am trying to update the quantity on a Sales Order Line Item. The quantity value changes, but the line total amount is not updated!
The update() call returns a warning indicating that the line's total amount is incorrect!
If I try to update the line's total amount, the new amount is ignored!
proxy.preferences = new Preferences();
proxy.preferences.useConditionalDefaultsOnAdd = true;
proxy.preferences.useConditionalDefaultsOnAddSpecified = true;
proxy.preferences.useConditionalDefaultsOnUpdate = true;
proxy.preferences.useConditionalDefaultsOnUpdateSpecified = true;
RecordRef request = new RecordRef();
request.internalId = "2302";
request.type = RecordType.salesOrder;
request.typeSpecified = true;
ReadResponse rr = proxy.get(request);
SalesOrder so = rr.record as SalesOrder;
SalesOrder updSo = new SalesOrder();