Invoice

For help working with this record in the UI, see Invoices.

The internal ID for this record is invoice.

See the SuiteScript Records Browser for all internal IDs associated with this record.

See Invoice Record Actions for the actions associated with this record. For more information about actions and macros, see Overview of Record Action and Macro APIs.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The invoice record is scriptable in both client and server SuiteScript.

Supported Functions

The invoice record is fully scriptable. It can be created, updated, copied, deleted, and searched using SuiteScript. It can also be transformed.

Usage Notes

See the following sections for more details on working with this record:

Fields

The following table provides usage notes for specific fields on this record.

Field Internal ID

Field UI Label

Note

Body Fields

estgrossprofit

Est. Gross Profit

When this field is on the body of the form in edit mode, this field is scriptable and can be returned in a transaction search.

When this field appears on the sublist line level, this field is not scriptable.

estgrossprofitpercent

Est. Gross Profit Percent

When this field is on the body of the form in edit mode, this field is scriptable and can be returned in a transaction search.

When this field appears on the sublist line level, this field is not scriptable.

totalcostestimate

Est. Extended Cost

When this field is on the body of the form in edit mode, this field is scriptable and can be returned in a transaction search.

This record has available transforms. See the SuiteScript Records Browser for available transforms. In the NetSuite Help Center, see record.transform(options) for examples on how to transform records.

The following invoice record sublists are list sublists:

The Multi-Partner Management feature must be enabled in your account for the Partners sublist to appear.

The Shipping sublist’s Shipping Tax Code field, internal ID shippingtaxcode, appears only if per-line taxes have been set on the Item sublist.

Email Operations

NetSuite enables a user to email a copy of a transaction to a customer or another recipient.

If you deploy a beforeLoad user event script on a transaction, in general the script executes when the transaction is emailed. In these cases, the sending of the email is considered an operation of type email on the transaction. However, if the companywide preference Use Popup for Main Transaction Email Button is enabled, a beforeLoad script will not execute in certain cases, depending on how the email is sent. That is, the script will not execute if the user views the transaction and selects Actions > Email, or edits the transaction and sends the email by using the Communications tab. In these cases, the system displays a popup window that the user can work with to manually edit and send the email. Actions taken with this window are not considered operations on the transaction. If you have your system configured this way, and you want to deploy a beforeLoad script on emails sent using the popup, deploy the script on the Message record type.

An additional way of emailing a transaction is by editing the transaction and using the Save & Email button. Note that, even if the Use Popup for Main Transaction Email Button preference is enabled, the popup window is not available for emails sent this way. For that reason, a beforeLoad user event script deployed on the transaction will always be triggered by use of the Save & Email button.

For more information about the Use Popup for Main Transaction Email Button preference, see Setting Email Preferences. For details about emailing transactions, see Emailing Transactions.

General Notices