Data entity

BusinessDocumentSalesInvoiceBaseEntity

Read-only header-level data for posted customer invoices, built from the customer invoice journal. It combines invoice amounts, dates and currency with company, invoice account, bank and address details. The key is invoice ID and invoice date. Several fields are used for Italy.

Entity name
BusinessDocumentSalesInvoiceBaseEntity
Public entity name
BusinessDocumentSalesInvoiceBase
OData collection
BusinessDocumentSalesInvoiceBases
Category
Document
Module
Other (no module in the metadata)
Read-only
Yes
Data management enabled
Yes
Configuration key
None
Keys
InvoiceId, InvoiceDate
Staging table
BusinessDocumentSalesInvoiceBaseStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/BusinessDocumentSalesInvoiceBases
Dataverse virtual table
mserp_businessdocumentsalesinvoicebaseentity. 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
  • DeliveryPostalAddress (table LogisticsPostalAddressBaseEntity) · OuterJoin to CustInvoiceJour
  • CompanyInfo · InnerJoin to CustInvoiceJour
  • EInvoiceParameters_IT · OuterJoin to CompanyInfo
  • LogisticsAddressCountryRegionCompany (table LogisticsAddressCountryRegion) · OuterJoin to EInvoiceParameters_IT
  • LogisticsAddressCountryRegionTaxRep (table LogisticsAddressCountryRegion) · OuterJoin to EInvoiceParameters_IT
  • LogisticsAddressCountryRegionTrn (table LogisticsAddressCountryRegion) · OuterJoin to EInvoiceParameters_IT
  • ContactPerson · OuterJoin to CustInvoiceJour
  • CustTrans · OuterJoin to CustInvoiceJour
  • BankAccountTable · OuterJoin to CustTrans
  • CustBankAccount · OuterJoin to CustTrans
  • CustTable · InnerJoin to CustInvoiceJour
  • Currency · InnerJoin to CustInvoiceJour

Fields (136)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CompanyNameFull name of the party.String (160)
DirPartyName
YesYesDirPartyTable.Name
CompanyTaxRegNumberTax registration number of the company that issued the invoice.String (25)
CompanyCoRegNum
NoYesvirtual
CustomerAccountNumCustomer account that receives the invoice.String (20)
CustInvoiceAccount
YesYesCustTable.AccountNumCustInvoiceJour.InvoiceAccount
InvoiceAmountTotal invoice amount in invoice currency.Real
AmountCur
NoYesCustInvoiceJour.InvoiceAmount
InvoiceAmountMSTTotal invoice amount in accounting currency.Real
AmountMST
NoYesCustInvoiceJour.InvoiceAmountMST
ContactPersonIdCode that identifies the contact.String (20)
ContactPersonId
YesYesContactPerson.ContactPersonId
CurrencyCodeCurrency of the invoice.String (3)
CustCurrencyCode
YesYesCurrency.CurrencyCodeCustInvoiceJour.CurrencyCode
InvoiceDateDate of the invoice.Date
TransDate
YesYesCustInvoiceJour.InvoiceDate
InvoiceDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesCustInvoiceJour.CreatedDateTime
CityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
CountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
CountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
StateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdLogisticsPostalAddress.State
StreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
StreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
ZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
InvoiceIdIdentifier of the customer invoice.String (20)
CustInvoiceId
NoYesCustInvoiceJour.InvoiceId
EndDiscTotal discount amount at order header level, in invoice currency.Real
SalesEndDiscAmount
NoYesCustInvoiceJour.EndDisc
VATNumTax exempt number on the invoice.String (20)
VATNumJournal
NoYesCustInvoiceJour.VATNum
SumTaxSales tax amount, in invoice currency.Real
TaxAmountCur
NoYesCustInvoiceJour.SumTax
Rfc_MXRFC number of the company; used for Mexico.String (13)
Rfc_MX
NoYesCompanyInfo.Rfc_MX
CoRegNumTax registration number of the company.String (25)
CompanyCoRegNum
NoYesCompanyInfo.CoRegNum
CustInvoiceJourRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesCustInvoiceJour.RecId
CustInvoiceJourTableIdA system number that identifies the table.Integer
TableId
NoYesCustInvoiceJour.TableId
CustomerOrderAccountNumCustomer account that placed the order, pointing to the customer record.String (20)
CustAccount
YesYesCustTable.AccountNumCustInvoiceJour.OrderAccount
CustomerEmailEmail address of the customer.String (80)
Email
NoYesvirtual
CustTransAmountCurTransaction amount in the transaction currency, with debit and credit sign.Real
AmountCurDebCred
NoYesCustTrans.AmountCur
CustTransPaymModeMethod of payment used for the customer transaction.String
CustPaymMode
NoYesCustPaymModeTable.PaymModeCustTrans.PaymMode
BankNameName of the bank account used on the invoice.String (60)
Name
NoYesvirtual
BankIBANIBAN of the bank account used on the invoice.String (48)
BankIBAN
NoYesvirtual
BankSWIFTSWIFT code of the bank used on the invoice.String (20)
SWIFTNo
NoYesvirtual
CompanyBankNameName of the bank account.String (60)
Name
NoYesBankAccountTable.Name
CompanyBankSWIFTSWIFT code of the bank.String (20)
SWIFTNo
NoYesBankAccountTable.SWIFTNo
CompanyBankIBANInternational bank account number (IBAN).String (48)
BankIBAN
NoYesBankAccountTable.IBAN
IsBillOfExchangeYes or no value showing whether the invoice relates to a bill of exchange.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesvirtual
PaymentAccountTypeType of payment account, shown as text.low confidenceString (20)
String50
NoYesvirtual
PaymentModeMethod of payment used for the customer transaction.String
CustPaymMode
NoYesCustPaymModeTable.PaymModeCustTrans.PaymMode
ThirdPartyBankNameName of the bank account.String (60)
Name
NoYesCustBankAccount.Name
ThirdPartyBankSWIFTSWIFT code of the bank.String (20)
SWIFTNo
NoYesCustBankAccount.SWIFTNo
ThirdPartyBankIBANInternational Bank Account Number (IBAN) of the account.String (48)
BankIBAN
NoYesCustBankAccount.BankIBAN
CashDiscountCash discount amount on the invoice.Real
CustCashDiscAmount
NoYesCustInvoiceJour.CashDisc
CompanyInfoRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesCompanyInfo.RecId
CompanyAddressFull address of the company as one text value.String (250)
LogisticsAddressing
NoYesvirtual
CompanyCityCity of the company address.String (60)
LogisticsAddressCityName
NoYesvirtual
CompanyCountryISOCodeISO code of the country or region in the company address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesvirtual
CompanyStateState of the company address.String
LogisticsAddressStateId
NoYesvirtual
CompanyStreetStreet of the company address.String (250)
LogisticsAddressStreet
NoYesvirtual
CompanyZipCodeZIP or postal code of the company address.String
LogisticsAddressZipCodeId
NoYesvirtual
CompanyCountyCounty of the company address.String (30)
LogisticsAddressCountyId
NoYesvirtual
CompanyCountyAdditionalCounty of a second, additional company address.String (30)
LogisticsAddressCountyId
NoYesvirtual
CompanyAddressAdditionalFull text of a second, additional company address.String (250)
LogisticsAddressing
NoYesvirtual
CompanyCityAdditionalCity of the additional company address.String (60)
LogisticsAddressCityName
NoYesvirtual
CompanyCountryISOCodeAdditionalCountry or region ISO code of the additional company address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesvirtual
CompanyStateAdditionalState of the additional company address.String
LogisticsAddressStateId
NoYesvirtual
CompanyStreetAdditionalStreet of the additional company address.String (250)
LogisticsAddressStreet
NoYesvirtual
CompanyZipCodeAdditionalZIP or postal code of the additional company address.String
LogisticsAddressZipCodeId
NoYesvirtual
ParametersITArt2250registrationYes/no setting for Art. 2250 registration.Enum
IsArt2250_IT
NoYes

Platform enum: values not in the metadata extract.

NoYesEInvoiceParameters_IT.IsArt2250
ParametersITArtLiquidationLiquidation status of the company: not specified, not in liquidation or in liquidation.Enum
Liquidation_IT
  • NotSpecified 0
  • LN 1
  • LS 2
NoYesEInvoiceParameters_IT.ArtLiquidation
ParametersITArtLiquidationStrText value of the liquidation setting in the eInvoice parameters used for Italy.String (50)
String50
NoYesvirtual
ParametersITArtProvinceProvince code of the company registration.String (2)
Province_IT
NoYesEInvoiceParameters_IT.ArtProvince
ParametersITArtRegistrationNumCompany registration number.String (20)
RegistrationNum_IT
NoYesEInvoiceParameters_IT.ArtRegistrationNum
ParametersITArtShareCapitalShare capital of the company.String (15)
ShareCapital_IT
NoYesEInvoiceParameters_IT.ArtShareCapital
ParametersITArtSoleShareholderWhether the company has a sole shareholder or several.Enum
SoleShareholder_IT
  • Empty 0
  • SU 1
  • SM 2
NoYesEInvoiceParameters_IT.ArtSoleShareholder
ParametersITArtSoleShareholderStrText value of the sole shareholder setting in the eInvoice parameters used for Italy.String (50)
String50
NoYesvirtual
ParametersITCompanyCountryISOcodeTwo-letter ISO code.String (2)
LogisticsAddressCountryRegionISOCode
NoYesLogisticsAddressCountryRegion.ISOcode
ParametersITCompanyDesignationLegal designation of the company.String (80)
CompanyDesignation_IT
NoYesEInvoiceParameters_IT.CompanyDesignation
ParametersITCompanyEmailEmail address of the company.String (256)
TransmitterEmail_IT
NoYesEInvoiceParameters_IT.Email
ParametersITCompanyCodeEORIEORI code of the company.String (17)
CodeEORI_IT
NoYesEInvoiceParameters_IT.CodeEORI
ParametersITCompanyTeleFaxFax number of the company.String (20)
TeleFax
NoYesEInvoiceParameters_IT.TeleFax
ParametersITCompanyFiscalCodeFiscal code of the company, used for Italy.String (16)
FiscalCode
NoYesEInvoiceParameters_IT.FiscalCode_IT
ParametersITCompanyIdentificatioinCodeIdentification code of the company.String (20)
IdentificatioinCode_IT
NoYesEInvoiceParameters_IT.IdentificatioinCode
ParametersITCompanyPhoneTelephone number of the company.String (20)
Phone
NoYesEInvoiceParameters_IT.Phone
ParametersITCompanyProfRegDateDate the company was entered in the professional register.Date
ProfRegDate_IT
NoYesEInvoiceParameters_IT.ProfRegDate
ParametersITCompanyProfRegNameName of the professional register.String (60)
ProfRegName_IT
NoYesEInvoiceParameters_IT.ProfRegName
ParametersITCompanyProfRegNumberNumber in the professional register.String (60)
ProfRegNumber_IT
NoYesEInvoiceParameters_IT.ProfRegNumber
ParametersITCompanyProfRegProvinceProvince of the professional register.String (2)
ProfRegProvince_IT
NoYesEInvoiceParameters_IT.ProfRegProvince
ParametersITCompanyTaxSystemCode of the tax system.String (4)
TaxSystem_IT
NoYesEInvoiceParameters_IT.TaxSystem
ParametersITCustomerAuthorityOfficeCode of the authority office, used for Italy.String (7)
AuthorityOffice_IT
NoYesCustTable.AuthorityOffice_IT
ParametersITTaxRepCountryRegionISOcodeTwo-letter ISO code.String (2)
LogisticsAddressCountryRegionISOCode
NoYesLogisticsAddressCountryRegion.ISOcode
ParametersITTaxRepCodeEORIEORI code of the tax representative.String (17)
CodeEORI_IT
NoYesEInvoiceParameters_IT.TaxRepCodeEORI
ParametersITTaxRepCompanyDesignationLegal designation of the tax representative.String (80)
CompanyDesignation_IT
NoYesEInvoiceParameters_IT.TaxRepCompanyDesignation
ParametersITTaxRepCountryCodeCountry or region of the tax representative.String
AddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdEInvoiceParameters_IT.TaxRepCountryCode
ParametersITTaxRepFirstNameFirst name of the tax representative.String (60)
FirstName_IT
NoYesEInvoiceParameters_IT.TaxRepFirstName
ParametersITTaxRepFiscalCodeFiscal code of the tax representative.String (16)
FiscalCode
NoYesEInvoiceParameters_IT.TaxRepFiscalCode
ParametersITTaxRepIsCompanyYes/no setting for whether the tax representative is a legal entity.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesEInvoiceParameters_IT.TaxRepIsCompany
ParametersITTaxRepLastNameLast name of the tax representative.String (60)
LastName_IT
NoYesEInvoiceParameters_IT.TaxRepLastName
ParametersITTaxRepTaxExempNumberTax registration number of the tax representative.String (28)
TaxExemptNumber_IT
NoYesEInvoiceParameters_IT.TaxRepTaxExempNumber
ParametersITTaxRepTitleTitle of the tax representative.String
Title
NoYesEInvoiceParameters_IT.TaxRepTitle
ParametersITTrnEInvoiceTransmissionNameName of the electronic invoice transmission setting used for Italy.StringNoYesvirtual
ParametersITTrnCountryRegionISOcodeTwo-letter ISO code.String (2)
LogisticsAddressCountryRegionISOCode
NoYesLogisticsAddressCountryRegion.ISOcode
ParametersITTrnEmailEmail address of the transmitter.String (256)
TransmitterEmail_IT
NoYesEInvoiceParameters_IT.TrnEmail
ParametersITTrnIsFilingForSameLegalEntityYes/no setting for whether the transmitter files for the same legal entity.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesEInvoiceParameters_IT.TrnIsFilingForSameLegalEntity
ParametersITTrnPhoneTelephone number of the transmitter.String (12)
TransmitterPhone_IT
NoYesEInvoiceParameters_IT.TrnPhone
ParametersITTrnTaxExempNumberTax registration number of the transmitter.String (28)
TaxExemptNumber_IT
NoYesEInvoiceParameters_IT.TrnTaxExempNumber
CompanyInfoTableIdA system number that identifies the table.Integer
TableId
NoYesCompanyInfo.TableId
CustTableRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesCustTable.RecId
CustTableTableIdA system number that identifies the table.Integer
TableId
NoYesCustTable.TableId
CurrencyCodeISOISO alphabetic code of the currency.String (3)
CurrencyCodeISO
YesYesISOCurrencyCode.ISCCurrencyCodeAlphaCurrency.CurrencyCodeISO
SalesIdSales order that the invoice came from.String (20)
SalesIdBase
NoYesSalesTable.SalesIdCustInvoiceJour.SalesId
DevileryReasonDescription of the reason for delivery.String (60)
Description
NoYesvirtual
DueDateDate the invoice is due for payment.Date
DueDate
NoYesCustInvoiceJour.DueDate
GoodsForFreeEnum value showing whether goods are supplied free of charge.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesvirtual
IntentLetterIdCustomer intent letter number, used for Italy.String (17)
IntentLetterId_IT
NoYesCustInvoiceJour.IntentLetterId_IT
InvoiceAccountFirstNameFirst name of the invoice account contact.String (50)
FirstName
NoYesvirtual
InvoiceAccountLastNameLast name of the invoice account contact.String (50)
LastName
NoYesvirtual
InvoiceAccountMiddleNameMiddle name of the invoice account contact.String (50)
MiddleName
NoYesvirtual
InvoiceAccountNameName of the invoice account.String (60)
Name
NoYesvirtual
InvoiceAccountFiscalCodeFiscal code of the customer.String (16)
FiscalCode
NoYesCustTable.FiscalCode
IsOrganizationEnum value showing whether the invoice account is an organisation.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesvirtual
InvoiceAccountAddressFull address of the invoice account as one text value.String (250)
LogisticsAddressing
NoYesvirtual
InvoiceAccountCityCity of the invoice account address.String (60)
LogisticsAddressCityName
NoYesvirtual
InvoiceAccountCountryISOCodeISO code of the country or region in the invoice account address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesvirtual
InvoiceAccountStateState of the invoice account address.String
LogisticsAddressStateId
NoYesvirtual
InvoiceAccountStreetStreet of the invoice account address.String (250)
LogisticsAddressStreet
NoYesvirtual
InvoiceAccountZipCodeZIP or postal code of the invoice account address.String
LogisticsAddressZipCodeId
NoYesvirtual
InvoiceAccountCountyCounty of the invoice account address.String (30)
LogisticsAddressCountyId
NoYesvirtual
InvoiceAccountCountyAdditionalCounty of a second, additional invoice account address.String (30)
LogisticsAddressCountyId
NoYesvirtual
InvoiceAccountAddressAdditionalFull text of a second, additional invoice account address.String (250)
LogisticsAddressing
NoYesvirtual
InvoiceAccountCityAdditionalCity of the additional invoice account address.String (60)
LogisticsAddressCityName
NoYesvirtual
InvoiceAccountCountryISOCodeAdditionalCountry or region ISO code of the additional invoice account address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesvirtual
InvoiceAccountStateAdditionalState of the additional invoice account address.String
LogisticsAddressStateId
NoYesvirtual
InvoiceAccountStreetAdditionalStreet of the additional invoice account address.String (250)
LogisticsAddressStreet
NoYesvirtual
InvoiceAccountZipCodeAdditionalZIP or postal code of the additional invoice account address.String
LogisticsAddressZipCodeId
NoYesvirtual
InvoiceAccountVATNumTax exempt number of the customer.String (20)
VATNum
NoYesCustTable.VATNum
InclTaxYes/no flag showing whether prices include sales tax.Enum
InclTax
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceJour.InclTax
CustTablePartyPoints to the customer's name record in the global address book.Int64
DirPartyRecId
NoYesDirPartyTable.RecIdCustTable.Party
SumLineDiscountTotal of line discounts, in invoice currency.Real
SalesSumLineDiscAmount
NoYesCustInvoiceJour.SumLineDisc
LedgerVoucherVoucher number linked to the invoice.String (20)
Voucher
NoYesCustInvoiceJour.LedgerVoucher
EndDiscPercentTotal discount given on the invoice, as a percentage.Real
EndDiscPct
NoYesvirtual
ParametersITTaxRepIsTaxRepYes/no setting for whether a tax representative is used.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesEInvoiceParameters_IT.IsTaxRep
IsSelfInvoiceEnum value showing whether this is a self-invoice.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesvirtual
SelfInvoiceAccountIdCustomer invoice account used for a self-invoice.String (20)
CustInvoiceAccount
NoYesvirtual
DataAreaThe company (legal entity) that the record belongs to.String (4)
DataAreaId
NoYesCustInvoiceJour.DataAreaId
TaxInvoiceSalesIdTax invoice identifier for the sale.String (50)
TaxInvoiceSalesId
NoYesCustInvoiceJour.TaxInvoiceSalesId
PrepaymentYes/no flag for a prepayment journal voucher.Enum
CustVendPrepayment
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceJour.Prepayment
InvoiceAccountVATRegistrationNumberVAT registration number of the invoice account.String (60)
TaxRegistrationNumber
NoYesvirtual

Foreign keys (12)

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

Email sales@drdynamics.co.uk