Table

SubBillDetailLineSalesOrder

Billing invoice line sales orders table

Links a billing detail line to a sales order line. The key is the billing detail line record ID plus the sales line record ID. It also keeps the invoice, customer account, project proposal and customer split references for that sales line.

Table name
SubBillDetailLineSalesOrder
Module
Subscription billing
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
SalesLineRecId
Replacement key
SalesLineRecId
Key fields
BillingDetailLineRecId, SalesLineRecId
Model
SubscriptionBilling

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BillingDetailLineRecIdSystem record ID of the billing detail line.Int64
RefRecId
NoSubBillDetailLine.RecIdSubBillDetailLineSalesOrderBiEntity
SalesLineRecIdSystem record ID of the sales order line.Int64
RefRecId
NoSalesLine.RecIdSubBillDetailLineSalesOrderBiEntity
CustAccountCustomer account of the billing schedule, pointing to a customer record.String (20)
CustAccount
YesCustTable.AccountNumSubBillDetailLineSalesOrderBiEntity
CustomerInvoiceTransRecIdSystem record ID of the customer invoice line.Int64
RefRecId
NoCustInvoiceTrans.RecIdSubBillDetailLineSalesOrderBiEntity
CustomerSplitRecIdSystem record ID of the customer split line.Int64
RefRecId
NoSubBillCustomerSplitLine.RecIdSubBillDetailLineSalesOrderBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoSubBillDetailLineSalesOrderBiEntity
InvoiceDateDate of the invoice.Date
TransDate
NoSubBillDetailLineSalesOrderBiEntity
InvoiceIdInvoice identifier, related to the customer invoice journal.String (20)
CustInvoiceId
NoSubBillDetailLineSalesOrderBiEntity
MEADeferredRevenueAmountAmount of deferred revenue linked to the line.low confidenceReal
SubBillMEADefRevAmount
NoSubBillDetailLineSalesOrderBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjectInvoiceItemRecIdSystem record ID of the project invoice item.Int64
RefRecId
NoProjInvoiceItem.RecIdSubBillDetailLineSalesOrderBiEntity
ProjectProposalIdIdentifier of the project invoice proposal.String (50)
ProjProposalId
NoProjProposalJour.ProposalIdSubBillDetailLineSalesOrderBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoSubBillDetailLineSalesOrderBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoSubBillDetailLineSalesOrderBiEntity
SalesIdSales order number, pointing to a sales order.String (20)
SalesId
NoSalesTable.SalesIdSubBillDetailLineSalesOrderBiEntity
SalesLineAmountNet amount of the sales line.Real
SalesLineAmount
NoSubBillDetailLineSalesOrderBiEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (9)

Each relation joins SubBillDetailLineSalesOrder to another table on the fields shown.

  • DetailLine → SubBillDetailLine

    Join on BillingDetailLineRecId = SubBillDetailLine.RecId

    Many SubBillDetailLineSalesOrder records → exactly one SubBillDetailLine record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many SubBillDetailLineSalesOrder records → zero or one SalesTable record

  • SalesLine → SalesLine

    Join on SalesLineRecId = SalesLine.RecId

    Many SubBillDetailLineSalesOrder records → zero or one SalesLine record

  • CustInvoiceJour → CustInvoiceJour

    Join on InvoiceId = CustInvoiceJour.InvoiceId

    Many SubBillDetailLineSalesOrder records → zero or one CustInvoiceJour record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many SubBillDetailLineSalesOrder records → zero or one CustTable record

  • CustInvoiceTrans → CustInvoiceTrans

    Join on CustomerInvoiceTransRecId = CustInvoiceTrans.RecId

    Zero or one SubBillDetailLineSalesOrder record → zero or one CustInvoiceTrans record

  • ProjInvoiceItem → ProjInvoiceItem

    Join on ProjectInvoiceItemRecId = ProjInvoiceItem.RecId

    Zero or one SubBillDetailLineSalesOrder record → zero or one ProjInvoiceItem record

  • ProjProposalJour → ProjProposalJour

    Join on ProjectProposalId = ProjProposalJour.ProposalId

    Zero or one SubBillDetailLineSalesOrder record → zero or one ProjProposalJour record

  • CustomerSplitLine → SubBillCustomerSplitLine

    Join on CustomerSplitRecId = SubBillCustomerSplitLine.RecId

    Many SubBillDetailLineSalesOrder records → zero or one SubBillCustomerSplitLine record

Get this data out

Tables are not exposed directly. These public entities read from SubBillDetailLineSalesOrder; use one of them in Power BI, Power Platform or a data management project.

Need help with SubBillDetailLineSalesOrder in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk