Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Setting the Tax Rate on a Sales Order (Transaction Was Not In Balance)
When I (a) set the Tax Item on a salesOrder, it is ignored - no tax is charged. When I explicitly set the taxRate, I get an error (eg: "Transaction was not in balance. Total = 0.36") You can see an example of my code below. If I remove the taxRate, I don't get the error, but of course no tax is calculated on the SalesOrder. Any idea what's throwing that error? For the record, that 36 cents in the error quoted above is because I set the taxRate to 9.00 (%) and the subtotal of the order was $4.00
oRefClass.internalId = NS_CLASS_ID;
oRefDept.internalId = NS_DEPT_ID;
0