Data entity

SalesInvoiceHeaderEntity

Read-only list of sales invoice headers, one per customer invoice. It is keyed by invoice number and invoice date. It combines the customer invoice journal with the related sales order, the worker and the postal address. It also carries the invoice totals, such as sales tax and discount.

Entity name
SalesInvoiceHeaderEntity
Public entity name
SalesInvoiceHeader
OData collection
SalesInvoiceHeaders
Category
Document
Module
Accounts receivable
Read-only
Yes
Data management enabled
Yes
Configuration key
LogisticsBasic
Keys
InvoiceNumber, InvoiceDate
Staging table
SalesInvoiceHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesInvoiceHeaders
Dataverse virtual table
mserp_salesinvoiceheaderentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • CustInvoiceJour · root · read-only
  • SalesTable · OuterJoin to CustInvoiceJour
  • HcmWorker · OuterJoin to SalesTable
  • LogisticsPostalAddressBaseEntity · OuterJoin to CustInvoiceJour
  • CustInvoiceJourTotalTaxAmountView · OuterJoin to CustInvoiceJour

Fields (25)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
InvoiceNumberIdentifier of the customer invoice.String (20)
CustInvoiceId
NoYesCustInvoiceJour.InvoiceId
InvoiceDateDate of the invoice.Date
TransDate
YesYesCustInvoiceJour.InvoiceDate
ContactPersonIdContact person for the order, linked to the contacts.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdSalesTable.ContactPersonId
CustomersOrderReferenceReference text supplied by the customer.String (60)
CustRef
NoYesSalesTable.CustomerRef
DeliveryModeCodeMode of delivery for the order.String
CustDlvModeId
NoYesDlvMode.CodeSalesTable.DlvMode
DeliveryTermsCodeTerms of delivery for the order.String
CustDlvTermId
NoYesDlvTerm.CodeSalesTable.DlvTerm
PaymentTermsNameTerms of payment for the order.String (100)
CustPaymTermId
NoYesPaymTerm.PaymTermIdSalesTable.Payment
TotalInvoiceAmountTotal invoice amount in invoice currency.Real
AmountCur
NoYesCustInvoiceJour.InvoiceAmount
CurrencyCodeCurrency of the invoice.String (3)
CustCurrencyCode
YesYesCurrency.CurrencyCodeCustInvoiceJour.CurrencyCode
InvoiceHeaderTaxAmountTotal sales tax amount on the invoice, in the invoice currency.Real
TaxAmountCur
NoYescomputed in view
TotalTaxAmountSales tax amount, in invoice currency.Real
TaxAmountCur
NoYesCustInvoiceJour.SumTax
TotalChargeAmountTotal charges on the invoice, in invoice currency.Real
MarkupSumSales
NoYesCustInvoiceJour.SumMarkup
TotalDiscountCustomerGroupCodeTotal discount amount at order header level, in invoice currency.Real
SalesEndDiscAmount
NoYesCustInvoiceJour.EndDisc
InvoiceCustomerAccountNumberCustomer account that receives the invoice.String (20)
CustInvoiceAccount
YesYesCustTable.AccountNumCustInvoiceJour.InvoiceAccount
SalesOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
YesYesSalesTable.SalesId
InvoiceAddressStateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdLogisticsPostalAddress.State
InvoiceAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
InvoiceAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
InvoiceAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
InvoiceAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
InvoiceAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
InvoiceAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
SalesOrderResponsiblePersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
TotalDiscountAmountTotal discount amount for the invoice. The metadata gives no label or further detail.low confidenceRealNoYescomputed
SalesOrderOriginCodeOrder origin code showing where the order came from.String
SalesOriginId
NoYesSalesOrigin.OriginIdSalesTable.SalesOriginId

Foreign keys (10)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with SalesInvoiceHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk