Table

SubBillTermScheduleLineAuditSalesOrder

Subscription billing termination audit including customer split table

Lists the sales orders and invoice lines affected by a termination audit row, including customer split cases. The key is the termination audit record plus the sales line. It links to sales orders, sales lines, customers and customer invoice lines.

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

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TerminationScheduleLineRecIdRecord ID of the termination schedule line audit row.Int64
RefRecId
NoSubBillTermScheduleLineAudit.RecIdNone
SalesLineRecIdRecord ID of the sales order line.Int64
RefRecId
NoSalesLine.RecIdNone
CustAccountCustomer account of the billing schedule, pointing to the customer record.String (20)
CustAccount
YesCustTable.AccountNumNone
CustomerInvoiceTransRecIdRecord ID of the customer invoice line.Int64
RefRecId
NoCustInvoiceTrans.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InvoiceDateDate of the invoice.Date
TransDate
NoNone
InvoiceIdInvoice number, related to the customer invoice journal.String (20)
CustInvoiceId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefundAmountAmount in the transaction currency.Real
AmountCur
NoNone
SalesIdSales order number, pointing to the sales order.String (20)
SalesId
NoSalesTable.SalesIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (6)

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

  • TermScheduleLine → SubBillTermScheduleLineAudit

    Join on TerminationScheduleLineRecId = SubBillTermScheduleLineAudit.RecId

    Many SubBillTermScheduleLineAuditSalesOrder records → exactly one SubBillTermScheduleLineAudit record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many SubBillTermScheduleLineAuditSalesOrder records → zero or one SalesTable record

  • SalesLine → SalesLine

    Join on SalesLineRecId = SalesLine.RecId

    Many SubBillTermScheduleLineAuditSalesOrder records → zero or one SalesLine record

  • CustInvoiceJour → CustInvoiceJour

    Join on InvoiceId = CustInvoiceJour.InvoiceId

    Many SubBillTermScheduleLineAuditSalesOrder records → zero or one CustInvoiceJour record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many SubBillTermScheduleLineAuditSalesOrder records → zero or one CustTable record

  • CustInvoiceTrans → CustInvoiceTrans

    Join on CustomerInvoiceTransRecId = CustInvoiceTrans.RecId

    Zero or one SubBillTermScheduleLineAuditSalesOrder record → zero or one CustInvoiceTrans record

Get this data out

No public entity reads from SubBillTermScheduleLineAuditSalesOrder. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk