Cash Sale

A cash sale is a transaction that records the sale of goods or services for which you receive immediate payment. Enter a cash sale when payment for goods or services has been received at the time of delivery.

Record cash sales by adding each item sold from your Items list. Then, cash sale line-items specify the goods and services sold and their sales amounts. The sum of all sales amounts plus any applicable tax equals the total amount paid for this sale.

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

The internal ID for this record is cashsale.

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

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 cash sale record is scriptable in both client and server SuiteScript.

Supported Functions

The cash sale record is fully scriptable. It can be created, updated, copied, deleted, and searched using SuiteScript.

Usage Notes

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

The following cash sale 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.

Fields

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

Field Internal ID

Field UI Label

Note

Body Fields

ccnumber

Credit Card #

To prevent users from accessing sensitive information such as password and credit card data, this field cannot be read in beforeSubmit user event scripts for external role users (for example, shoppers, online form users (anonymous users), customer center).

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.

isrecurringpayment

Recurring Payment

A value for this field is stored only if the value for paymentmethod is a credit card.

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.

Also note that 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.

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.

Related Topics

Cash Sales
Working with the SuiteScript Records Browser
SuiteCloud Supported Records
Transactions

General Notices