NS User
02/27/2025, 5:16 PMCeligo AI
02/27/2025, 5:16 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To void an invoice in NetSuite, you can use the
transaction.void
method in SuiteScript. Here is a sample code snippet:
javascript
require(['N/transaction'], function(transaction){
transaction.void({type:transaction.Type.INVOICE, id:3 })
})
However, please note that you need to check your settings in NetSuite. If you have the 'void transactions using reversing journals' preference checked in Setup, you might encounter an "INVALID RECORD TYPE" error. Unchecking this setting should resolve the issue.
If you have an open invoice in a closed period and you need to create new invoices related to the original sales order, you don't necessarily need to void the old invoice. Instead, you can create a credit memo to close the liability of the old invoice, then create the new invoices and collect on those.
If you want to close an invoice without any payments or credit memos, you can refer to the NetSuite Help Center article on 'Closing or Voiding an Invoice'. However, the decision to void should be made in consultation with your functional team as it can have accounting implications.
Remember, these actions should be performed in accordance with your company's accounting policies and procedures.Celigo AI
02/27/2025, 5:16 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839959
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839838922
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839723825
Celigo AI
02/27/2025, 5:16 PM