Resources / Article
SuiteScript cash sale no subsidiary options
Why a RESTlet cash sale shows no subsidiary options, what Oracle documents about cash sale fields, and the record checks to run first.
Start with the customer record, because Oracle marks Customer as required on a cash sale import. Then check the subsidiary the customer sits under and read the script to see the order in which it assigns fields.
What Oracle documents about cash sale fields
Oracle's CSV import mapping for cash sales marks Customer as required, and Date and Handling Mode as required too (Importing Cash Sale Transactions and Assigning Lots). The same page lists the optional columns: External ID, Location, and the item, quantity and inventory detail fields. It also says you create a saved CSV import first and note its script ID.
The cash sale sync page says customer and subsidiary should already exist in Salesforce as Account and Subsidiary before a cash sale syncs (Cash Sale Sync Triggers). That page describes the Salesforce integration, so read it for how the two fields are handled there. It also lists the sync trigger options, with sync on creation as the default.
To enter a cash sale by hand, go to Transactions > Sales > Enter Cash Sales (Override China Cash Flow Item). Oracle's Colombia electronic invoicing page lists the cash sale header fields it reads as terms, currency and exchange rate, and puts tax code, tax basis, tax and tax amount under Taxes (Colombia Context).
Oracle's Cash 360 preferences page says one set of general preferences applies to every custom role with SuiteApp access in a given subsidiary (Setting Cash 360 Preferences). Subsidiary scoping shows up in several places in the account, and this is one of them.
Consultants hit this often enough that it turns up on Stack Overflow:
"Inability to select a subsidiary for a Cash Sale in SuiteScript" (Stack Overflow)
Check the customer and subsidiary records
- Open the customer record in the NetSuite UI.
- Read the Subsidiary field.
- If it is empty, set it and save.
- If the customer sits under a parent, open the parent and read its Subsidiary field too.
- Note the internal ID of the subsidiary the client wants on the transaction.
- Open that subsidiary record and confirm it is the one the account uses for this trade.
Oracle's import mapping puts Customer at the top of the required columns (Importing Cash Sale Transactions and Assigning Lots). A cash sale without a customer fails the import, so confirm the customer before you look anywhere else.
For Indian GSTIN mapping, see NetSuite subsidiaries for India GSTINs.
Build the transaction in the order Oracle's mapping uses
- Set the customer on the record.
- Set the external ID if the client uses one.
- Set the handling mode.
- Set the location.
- Set the date.
- Add the item lines, then the quantities.
- Save the record.
- Open the saved record in the UI and read the subsidiary it carries.
Oracle's import mapping lists its columns in this sequence, with Customer first and the item lines last (Importing Cash Sale Transactions and Assigning Lots). Set the fields in this order and check each one on the saved record.
Location is one of the optional columns on that page. If the client runs stock in more than one place, see NetSuite multi-location inventory.
What to check in the script
Read the RESTlet source and write down the order in which it assigns fields. Note the record type it creates and the point at which it saves. Check whether the script sets a subsidiary at all, and whether it reads one from the customer record first. If the script never assigns the subsidiary field, the customer record and the subsidiary setup are the next places to check.
Keep the finding in writing, with the internal IDs you used. The next consultant on the account will want the same trail.
Example
A consultant is asked to create a cash sale of INR 1,25,000 through a RESTlet on an account with two subsidiaries. The customer record has no Subsidiary set. The consultant sets it, notes the internal ID of the subsidiary the client wants, and rebuilds the transaction so the customer is assigned before the subsidiary. The saved record is then opened in the UI to confirm which subsidiary it carries.
Trade-offs
Checking the customer record by hand gives a clear answer about the data, and it is quick. Reading the script shows the field order it uses, which the record check cannot tell you. The account's subsidiary setup is a separate check, and it stands on its own.
Oracle's pages cover the import mapping, the Salesforce sync and electronic invoicing. Write down which parts of the answer you verified in the account and which parts came from the script.
Common mistakes
- Leaving the customer's Subsidiary field blank.
- Building the transaction without a customer, which Oracle marks as required.
- Setting fields in a different order from the import mapping.
- Skipping the check of the saved record in the UI.
Write the finding into the BRD template for ERP implementation so the next consultant does not repeat the search.
FAQ
Why does the subsidiary field show no options in my RESTlet?
Check the customer record and the subsidiary setup in the account first, then read the script.
Is customer a required field on a cash sale?
Yes. Oracle's import mapping marks Customer as required (Importing Cash Sale Transactions and Assigning Lots).
Where do I enter a cash sale by hand to compare?
Go to Transactions > Sales > Enter Cash Sales (Override China Cash Flow Item).
Which cash sale fields does Oracle list under Taxes?
Tax code, tax basis, tax and tax amount (Colombia Context).
What does the import mapping say about the saved CSV import?
You create a saved CSV import first and note its script ID (Importing Cash Sale Transactions and Assigning Lots).
The quick way is mark.: it reads the client's NetSuite account read only and names the record or setting behind the empty subsidiary list. Try it free.
Sources
- docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_164251996938.html
- docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_0526025040.html
- docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1524039505.html
- docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_156775521116.html
- docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_164259347800.html
- docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_164974435218.html
Have mark. check this against the client's own files
mark. reads the client's files and sets each point against them, with the source beside it.
Twenty minutes on one client folder. Your 21-day trial opens on the call.