Skip to content
NetSuite Reference

salesinvoiced

viewSubsidiary-scopedLocation-scopedView

The invoiced-sales analytics view: the ordered twin plus a posting period, one row per invoiced transaction line with amount, quantity and the estimated cost and gross-profit columns.

Module: TransactionsSubsidiary- and location-scoped
Grain note

the same view caveat as salesordered — its rows are transaction lines. Ordered and invoiced are two views of two different document sets, so subtracting one from the other is not a backlog.

Notes

Browser page name is salesInvoiced (label "Sales (Invoiced)"). The one structural difference from salesordered is postingperiod, which is what makes it the quicker read for a period-aligned revenue number. As with its twin, land the spine for anything that has to reconcile — and the same location caveat applies: line-level location is NULL on accounts without multi-location inventory, so the generated location anchor can silently exclude rows and should be removed when site scoping isn't wanted.

What the badges mean
master
Data class: what the record holds — master data, transaction documents, control/configuration, or a documented convenience record. NetSuite has no product-family or schema axis, so this is the whole classification.

Structural facts — how the record is partitioned, not a trap by itself

Subsidiary-scoped
The record carries a subsidiary column that partitions its rows, so the generated SQL anchors it. On a few records the column is a multiselect rather than a scalar foreign key — the table notes say which (see the quirks guide).
Location-scoped
The record carries a location column — an org segment in NetSuite before it is a warehouse — and the generated SQL anchors it the same way.

Join & extract hazards — verify before you rely on this

View
A documented convenience record rather than a stored one. Land the records it stands in for instead of assuming it extracts as-is — the table notes say where the rows actually live.
In field listings, the Key chip marks a primary-key field, and the T/F chip marks a check-box column Connect returns as a 'T'/'F' string.

Fields

23 fields · 3 key

23 fields.

Table fields: position, field name, description, data type, and flags. 23 fields.
#FieldDescriptionTypeFlags
1uniquekeyUnique keyNUMBER
Primary-key field
2transactionTransaction (internal id) — the tie-back to the spineNUMBER
Primary-key field
3tranlineTransaction line (internal id)NUMBER
Primary-key field
4trandateTransaction dateDATE
The record's primary analysis date — a real DATE/TIMESTAMP column, no conversion needed
5postingperiodPosting period (internal id) — the column salesordered does not haveNUMBER
6typeDocument type — values are discoverable in-account onlyVARCHAR
7entityCustomer (internal id)NUMBER
8itemItem (internal id)NUMBER
9amountInvoiced amountNUMBER
10amountnetInvoiced amount, netNUMBER
11itemcountQuantity — the column is named itemcount, not quantityNUMBER
12costestimateEstimated cost — NetSuite's own computationNUMBER
13estgrossprofitEstimated gross profit — a computed column, not a posted amountNUMBER
14estgrossprofitpercentEstimated gross profit percentageNUMBER
15accountGL account (internal id)NUMBER
16subsidiarySubsidiary (internal id)NUMBER
17locationLocation (internal id)NUMBER
18departmentDepartment (internal id)NUMBER
19classClass (internal id) — the classification recordNUMBER
20partnerPartner (internal id)NUMBER
21employeeSales rep (internal id)NUMBER
22promotioncombinationsPromotion combinations — MULTISELECT, not a scalar foreign keyVARCHAR
23memoMemoVARCHAR

Field provenance: hand-curated. 3 key fields.

Boilerplate SQL

Starting point for reading the Connect-landed copy of salesinvoiced on Databricks — dates are real DATE/TIMESTAMP columns and need no conversion, and the partition anchors are already in place. This record carries no modification stamp, and the snippet says so where the watermark would otherwise go. Set your Unity Catalog location, schema, and filter values below; they’re substituted into the SQL and the copy button.

Query parameters

8 parameters not filled: <catalog>, <schema>, <subsidiary_id>, <location_id>, <uniquekey>, <transaction>, <DATE_FROM>, <DATE_TO>

-- ============================================================
-- Table  : salesinvoiced — The invoiced-sales analytics view: the ordered twin plus a posting period, one row per invoiced transaction line with amount, quantity and the estimated cost and gross-profit columns.
-- Purpose: Column-selected read of salesinvoiced — auto-generated from field metadata
-- Grain  : One row per uniquekey + transaction + tranline
-- Caution: the same view caveat as salesordered — its rows are transaction lines. Ordered and invoiced are two views of two different document sets, so subtracting one from the other is not a backlog.
-- Notes  : Auto-generated skeleton for NetSuite data landed in your lakehouse from a SuiteAnalytics Connect (or SuiteQL) extract — it never addresses live NetSuite. Identifiers are lowercase as NetSuite2.com renders them. Select-type columns hold numeric internal ids: BUILTIN.DF() display resolution exists only at extraction time, so decode ids by joining the landed list records; see quirks #display-values. Check-box columns arrive as 'T'/'F' strings; see quirks #tf-booleans. Documented convenience record — land the records it stands in for; see the table notes.
-- ============================================================
SELECT
  t.uniquekey AS "Unique key",
  t.transaction AS "Transaction (internal id) — the tie-back to the spine",
  t.tranline AS "Transaction line (internal id)",
  t.trandate AS "Transaction date",
  t.postingperiod AS "Posting period (internal id) — the column salesordered does not have",
  t.type AS "Document type — values are discoverable in-account only",
  t.entity AS "Customer (internal id)",
  t.item AS "Item (internal id)",
  t.amount AS "Invoiced amount",
  t.amountnet AS "Invoiced amount, net",
  t.itemcount AS "Quantity — the column is named itemcount, not quantity",
  t.costestimate AS "Estimated cost — NetSuite's own computation",
  t.estgrossprofit AS "Estimated gross profit — a computed column, not a posted amount",
  t.estgrossprofitpercent AS "Estimated gross profit percentage",
  t.account AS "GL account (internal id)",
  t.subsidiary AS "Subsidiary (internal id)",
  t.location AS "Location (internal id)",
  t.department AS "Department (internal id)",
  t.class AS "Class (internal id) — the classification record",
  t.partner AS "Partner (internal id)",
  t.employee AS "Sales rep (internal id)",
  t.promotioncombinations AS "Promotion combinations — MULTISELECT, not a scalar foreign key",
  t.memo AS "Memo"
FROM <catalog>.<schema>.salesinvoiced t
WHERE
  t.subsidiary = <subsidiary_id>  -- OneWorld partition — see quirks guide #oneworld
  AND t.location = <location_id>  -- location scope — see quirks guide #oneworld
  -- AND t.uniquekey = <uniquekey>
  -- AND t.transaction = <transaction>
  -- AND t.trandate >= DATE '<DATE_FROM>'
  -- AND t.trandate <= DATE '<DATE_TO>'
  -- no lastmodifieddate on this record — there is no watermark column, so incremental extraction must full-refresh it (see quirks #deletes)
ORDER BY t.uniquekey;

Verified August 2026 · Analytics Browser 2021.1 · corroborated 2025.2

Select columns hold internal ids, not display text — see decoding display values.

Relationships

Diagram of 1-hop neighbors — join details below. Document-link edges are highlighted; they chain one document to the next and are the joins newcomers most often get wrong.

Extraction note

salesinvoiced is a documented convenience record. Land the records it stands in for rather than assuming it extracts as-is — see the table notes for where the stored rows live.

Browse more Transactions tables

More Transactions tables

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice

Not affiliated with or endorsed by Oracle or NetSuite. NetSuite is a registered trademark of Oracle and/or its affiliates.