Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Fields not sourcing in beforeSubmit scripts
Either I am completely out to lunch or there has been a strange change to the behavior of server-side user event scripts. A wide variety of fields are not sourcing when related fields are set. Here are three cases:
Case 1: Setting a discount item on a transaction before submit.
This should cause the corresponding discount rate to populate and the discount amount to calculate. Instead, just the discount item field is set.
Case 2: Setting a subtotal or discount line item
invoice.setLineItemValue("item","item",invoice.getLineItemCount("item")+1,-2)
When the invoice is loaded, the subtotal is there but has not calculated the subtotal, it calculates if you manually edit a line on the invoice that is returned.