Cash Sale

A cash sale transaction records the sale of goods or services for which immediate payment is received at the time of delivery. 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 the transaction.

For more details about this transaction, see Cash Sales.

The cash sale record is defined in the tranSales (sales) XSD.

Supported Operations

The following operations can be used with cash sale records:

add | addList | attach / detach | delete | deleteList | get | getDeleted | getList | getSavedSearch | getSelectValue | initialize / initializeList | search | update | updateList | upsert | upsertList

Note:

You can also use the asynchronous equivalents of SOAP web services list operations. For information about asynchronous operations, see SOAP Web Services Asynchronous Operations. For more information about request processing, see Synchronous Versus Asynchronous Request Processing.

Field Definitions

The SOAP Schema Browser includes definitions for all body fields, sublist fields, search filters, and search joins available to this record. For details, see the SOAP Schema Browser’s cash sale reference page.

Note:

For information about using the SOAP Schema Browser, see SOAP Schema Browser.

Usage Notes

Working with Credit Card Data

When working with credit card data, be aware of the following security features:

Initializing Cash Sales

You can initialize a cash sale from a Customer, Estimate/Quote, Opportunity, or Sales Order.

The SOAP web services initialize operation emulates the UI workflow by prepopulating fields on transaction line items with values from a related record. For more information about this operation, see initialize / initializeList.

Note:

To initialize a cash sale from a sales order that is in the Pending fulfillment status, you must enable the Invoice in Advance of Fulfillment preference. You can enable this preference at Setup > Accounting > Preferences > Accounting Preferences (Administrator), on the Order Management subtab. For more information, see Caching Behavior in SOAP Web Services.

Working with Cash Sale Sublists

The SOAP Schema Browser includes all sublists associated with the cash sale record. See the following information for usage notes regarding specific cash sale sublists. Usage notes are not provided for every sublist type.

CashSaleSalesTeamList

The CashSaleSalesTeam list defines the sales team for a specific cash sale. This list is only available when the Team Selling feature is enabled in the account.

On add, a single line item is entered by default when a sales rep is currently associated with the entity set in the entity field. When a sales group is currently associated with the entity, the list is populated by the group.

CashSaleItemList

The orderLine field in this sublist establishes the relationship with an existing sales order, if any. You must set a value for orderLine to populate the createdFromfield.

Cash SaleItemCostList

These fields map to the Billable Items subtab on the Item list of a cash sale record. This is where you define how and when to bill item costs back to a customer. Billing items back to customers enables you to purchase items and supplies for an order or job, and then bill the cost to the customer. The Bill Costs To Customers feature must be enabled to use this list.

CashSaleExpCostList

These fields map to the Billable Expenses subtab on the Item list of a cash sale record. This is where you define how and when to bill expenses back to a customer. The Bill Costs To Customers feature must be enabled to use this list.

CashSaleTimeList

These fields map to the Billable Time subtab on the Item list of a cash sale record. This is where you define how and when to bill time back to a customer. The Bill Costs To Customers feature must be enabled to use this list.

GiftCertRedemptionList

This sublist is available on the invoice, sales order, and cash sale records.

Promotion Code Validation

Note that validation of promotion code date range for a cash sale transaction generated from a sales order is different in SOAP web services than in the user interface. In the user interface, if the sales order date was within the promotion code date range, cash sale can be generated without error, even if cash sale date is outside of promotion code date range. In SOAP web services, cash sale date must be within promotion code date range.

Associating Cash Sales with Opportunities

You can associate estimates, cash sales, sales orders, and invoices with opportunities. After a transaction other than an estimate is associated with an opportunity, the opportunity's status is automatically set to Closed Won. After an opportunity's status is set to Closed Won, it is no longer available to be selected on other cash sale, sales order, or invoice records.

Accessing Serial/Lot or Bin Data for Line Items

As of the 2011.2 endpoint, code to access serial number, lot number, and bin number data varies according to whether the Advanced Bin Management / Numbered Inventory Management feature is enabled.

For more details, see Updating SOAP Web Services Code When Advanced Bin / Numbered Inventory Management is Enabled.

Related Topics

Transactions
Usage Notes for Transaction Record Types
Transaction Search
Multiple Shipping Routes in SOAP Web Services
How to Use the SOAP Web Services Records Help
SOAP Web Services Supported Records
SOAP Schema Browser
SuiteTalk SOAP Web Services Platform Overview

General Notices