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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
*Dangerous* Client Side Script Is Able to Post Transaction in Closed Period
I have a client side script that creates a bill credit automatically on a user click of a button on a custom form.
I've just discovered that this script is able to create transactions in closed period. Surely this is NOT GOOD?
The relevant part of the script is:
var billcredit = nlapiCreateRecord('vendorcredit');
billcredit.setFieldValue('entity', partner);
billcredit.setFieldValue('custbody_loanpoonbillcredit', id);
billcredit.setFieldValue('trandate', startdate);
billcredit.setFieldValue('memo', 'Deposit for ' + name);
billcredit.setLineItemValue('expense', 'memo', 1, 'Deposit for ' + name);
billcredit.setLineItemValue('expense', 'taxcode', 1, 5);
billcredit.setLineItemValue('expense', 'department', 1, '1');
billcredit.setLineItemValue('expense', 'location', 1, location);
billcredit.setLineItemValue('expense', 'amount', 1, depositamount);