Data entity

SalesInvoiceHeaderV4Entity

Read-only list of sales invoice headers, version 4. It is keyed by invoice number, invoice date and voucher. It comes from the customer invoice journal and adds sales order, worker and address details. It includes sales tax, cash discount, total discount and line discount amounts.

Entity name
SalesInvoiceHeaderV4Entity
Public entity name
SalesInvoiceHeaderV4
OData collection
SalesInvoiceHeadersV4
Category
Document
Module
Accounts receivable
Read-only
Yes
Data management enabled
Yes
Configuration key
LogisticsBasic
Keys
InvoiceNumber, InvoiceDate, LedgerVoucher
Staging table
SalesInvoiceHeaderV4Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesInvoiceHeadersV4
Dataverse virtual table
mserp_salesinvoiceheaderv4entity. 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
  • LogisticsPostalAddress · OuterJoin to CustInvoiceJour
  • LogisticsAddressCountryRegion · OuterJoin to LogisticsPostalAddress · read-only

Fields (29)

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
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
YesYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
SalesOrderResponsiblePersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
SalesOrderOriginCodeOrder origin code showing where the order came from.String
SalesOriginId
NoYesSalesOrigin.OriginIdSalesTable.SalesOriginId
LedgerVoucherVoucher number linked to the invoice.String (20)
Voucher
NoYesCustInvoiceJour.LedgerVoucher
InvoiceAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesLogisticsPostalAddress.RecId
InvoiceAddressCountryRegionISOCodeTwo-letter ISO code.String (2)
LogisticsAddressCountryRegionISOCode
NoYesLogisticsAddressCountryRegion.ISOcode
InvoiceHeaderTaxAmountSales tax amount at header level.Real
TaxAmountCur
NoYesCustInvoiceJour.HeaderTax
CashDiscountCash discount amount on the invoice.Real
CustCashDiscAmount
NoYesCustInvoiceJour.CashDisc
EndDiscountTotal discount amount at order header level, in invoice currency.Real
SalesEndDiscAmount
NoYesCustInvoiceJour.EndDisc
TotalLineDiscountTotal of line discounts, in invoice currency.Real
SalesSumLineDiscAmount
NoYesCustInvoiceJour.SumLineDisc

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 SalesInvoiceHeaderV4Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk