Cash Refund

A cash refund transaction records the return of money to a customer who immediately paid for goods or services using cash, a check or a credit card.

For help working with this record in the UI, see Refunding a Cash Sale.

The internal ID for this record is cashrefund.

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

Supported Functions

The cash refund 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 Multi-Partner Management feature must be enabled in your account for the Partners sublist to appear.

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.

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.

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

Refunding a Cash Sale
Working with the SuiteScript Records Browser
SuiteCloud Supported Records
Transactions

General Notices