ANS-1713 · SUITESCRIPT DEVELOPMENT

How to Update Accounting Periods When Changing Transaction Dates via Script?

NetSuite scripts that modify transaction dates must also explicitly update the associated accounting period to maintain data integrity.

Short answer

When a transaction's date is altered programmatically in NetSuite, the system does not automatically adjust the corresponding accounting period. To ensure data consistency and accurate financial reporting, any script performing a date change must also include logic to explicitly update the transaction's accounting period field to align with the new date.

Scenario

When a NetSuite transaction's date is modified through scripting, the system does not automatically update the associated accounting period. This can lead to discrepancies where a transaction's date falls into a different period than the one currently assigned, potentially causing reporting inaccuracies.

Solution

When a transaction date is modified via script, NetSuite does not automatically update the associated accounting period. Consequently, scripts that alter transaction dates must also include logic to explicitly manage and update the transaction's accounting period to ensure alignment with the new date.

Expert NetSuite Support

Need help with this NetSuite issue?

SuiteScript Development consulting and configuration support

Talk to a consultant