Data entity

FreeTextInvoiceHeaderEntity

Holds customer free text invoice headers. It includes the customer, dates, currency, payment terms, cash discount and posting status. It also joins fiscal data for Brazil and direct debit mandates. The key is the unique invoice identifier.

Entity name
FreeTextInvoiceHeaderEntity
Public entity name
FreeTextInvoiceHeader
OData collection
FreeTextInvoiceHeaders
Category
Document
Module
Accounts receivable
Read-only
No
Data management enabled
No
Configuration key
LedgerBasic
Keys
InvoiceIdentifier
Staging table
None

Use it in Power BI and Power Platform

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

Data sources

  • CustInvoiceTable · root
  • CustBillingClassification · OuterJoin to CustInvoiceTable · read-only
  • CustDirectDebitMandate · OuterJoin to CustInvoiceTable · read-only
  • CFOPTable_BR · OuterJoin to CustInvoiceTable · read-only
  • FiscalDocumentType_BR · OuterJoin to CustInvoiceTable · read-only
  • FiscalEstablishment_BR · OuterJoin to CustInvoiceTable · read-only
  • SalesPurchOperationType_BR · OuterJoin to CustInvoiceTable · read-only
  • TransportationDocument · OuterJoin to CustInvoiceTable · read-only
  • DefaultDimensionDAVS (table DimensionSetEntity) · OuterJoin to CustInvoiceTable · read-only

Fields (82)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
InvoiceIdentifierA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesCustInvoiceTable.RecId
FreeTextNumberThe free text invoice number shown to users. It is a text value.String (20)NoYescomputed
CustomerAccountCustomer account the invoice is for. It points to a customer record.String (20)
CustAccount
YesYesCustTable.AccountNumCustInvoiceTable.OrderAccount
InvoiceDateDate of the invoice.Date
TransDate
YesYesCustInvoiceTable.InvoiceDate
InvoiceIdInvoice number. It relates to the customer invoice journal.String (20)
CustInvoiceId
NoNo (private)CustInvoiceTable.InvoiceId
CurrencyCodeCurrency of the invoice.String (3)
CustCurrencyCode
YesYesCurrency.CurrencyCodeCustInvoiceTable.CurrencyCode
DueDateDate on which payment is due.Date
DueDate
NoYesCustInvoiceTable.DueDate
AdjustingInvoiceDateDate of the invoice that this invoice adjusts.Date
TransDate
NoYesCustInvoiceTable.AdjustingInvoiceDate
CentralBankPurposeCodePayment purpose code required for central bank reporting.String
BankCentralBankPurposeCode
NoYesBankCentralBankPurpose.CodeCustInvoiceTable.BankCentralBankPurposeCode
CentralBankPurposeTextFree text that explains the central bank payment purpose.String (210)
BankCentralBankPurposeText
NoYesCustInvoiceTable.BankCentralBankPurposeText
PaymentTermsBaseDateDate from which the payment terms are counted.Date
CashDiscBaseDate
NoYesCustInvoiceTable.CashDiscBaseDate
PaymentTermsBaseDaysNumber of days used as the base for the payment terms.Integer
CashDiscBaseDays
NoYesCustInvoiceTable.CashDiscBaseDays
CashDiscountCodeCash discount code that applies to the invoice.String
CustCashDiscCode
NoYesCashDisc.CashDiscCodeCustInvoiceTable.CashDiscCode
CashDiscountDateLast date on which the cash discount can be taken.Date
CustCashDiscDate
NoYesCustInvoiceTable.CashDiscDate
CashDiscountPercentagePercentage rate of the cash discount.Real
DiscPct
NoYesCustInvoiceTable.CashDiscPercent
ComplimentedInvoiceIdInvoice that this invoice complements.String (50)
InvoiceId
NoYesCustInvoiceTable.ComplementedInvoiceId
ContactPersonIdContact person recorded for the invoice.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdCustInvoiceTable.ContactPersonId
CorrectionReasonCodeReason reference that explains the correction.Int64
ReasonRefRecID
NoNo (private)ReasonTableRef.RecIdCustInvoiceTable.CorrectionReasonCode
CashFlowForecastStatus number linked to cash flow forecast.low confidenceInteger
CovStatus
NoYesCustInvoiceTable.CovStatus
BankAccountIdBank account of the invoice account customer.String
CustBankAccountId
NoYesCustBankAccount.AccountIDCustInvoiceTable.CustBankAccountId
BillingClassificationIdBilling classification linked to the invoice.Int64
RefRecId
NoNo (private)CustBillingClassification.RecIdCustInvoiceTable.CustBillingClassification
CustomerReferenceReference text supplied by the customer.String (60)
CustRef
NoYesCustInvoiceTable.CustomerRef
DirectDebitMandateIdDirect debit mandate of the customer used for this invoice.Int64
CustDirectDebitMandateRecId
NoNo (private)CustDirectDebitMandate.RecIdCustInvoiceTable.DirectDebitMandate
DocumentDateDate shown on the source document.Date
DocumentDate
NoYesCustInvoiceTable.DocumentDate
IsPostedViaIntercompanyShows whether the invoice was posted through intercompany.Enum
InterCompanyPosted
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.InterCompanyPosted
InvoiceAccountCustomer account that is invoiced.String (20)
CustInvoiceAccount
NoYesCustTable.AccountNumCustInvoiceTable.InvoiceAccount
LanguageIdLanguage used for the invoice.String (7)
CustLanguageId
NoYesLanguageTable.LanguageIdCustInvoiceTable.LanguageId
InvoiceNameName printed on the invoice.String (100)
LogisticsInvoiceName
NoYesCustInvoiceTable.Name
numberSequenceGroupNumber sequence group used for the invoice.String
NumberSequenceGroupId
NoYesNumberSequenceGroup.numberSequenceGroupIdCustInvoiceTable.numberSequenceGroup
IsOneTimeCustomerShows whether the invoice is for a one-time customer.Enum
OneTimeCustomer
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.OneTimeCustomer
TermsOfPaymentTerms of payment for the invoice.String (100)
CustPaymTermId
NoYesPaymTerm.PaymTermIdCustInvoiceTable.Payment
PaymentSchedulePayment schedule for the invoice.String (30)
PaymSchedId
NoYesPaymSched.NameCustInvoiceTable.PaymentSched
MethodOfPaymentMethod of payment for the customer.String
CustPaymMode
NoYesCustPaymModeTable.PaymModeCustInvoiceTable.PaymMode
IsPostedShows whether the invoice has been posted.Enum
Posted
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.Posted
PostingProfileCustomer posting profile used for the invoice.String
CustPostingProfile
NoYesCustLedger.PostingProfileCustInvoiceTable.PostingProfile
CustomerRequisitionCustomer requisition number.String (20)
CustPurchaseOrder
NoYesCustInvoiceTable.PurchOrderFormNum
SalesTaxGroupIdSales tax group for the invoice.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupCustInvoiceTable.TaxGroup
SalesTaxItemGroupIdItem sales tax group for the invoice.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupCustInvoiceTable.TaxItemGroup
EInvoiceAccountCodeAccount code for the dimension used in electronic invoices.String (35)
EInvoiceAccountCode
NoYesCustInvoiceTable.EInvoiceAccountCode
EInvoiceIsLineSpecificShows whether the electronic invoice uses line-specific settings.Enum
EInvoiceLineSpecific
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.EInvoiceLineSpec
GiroTypeType of payment slip attached to the invoice, such as FIK, BBS or a coloured slip.Enum
PaymentStubInvoiceId
PaymentStub
  • None 0
  • FIK 1
  • BBS 2
  • ESR_blue_PTT 3
  • ESR_red_bank 4
  • FIK762 5
  • ESR_orange 6
  • BelSMS101 7
  • BelSMS102 8
  • Finnish 9
  • FIK751 10
  • FIK752 11
  • QRBill 12
NoYesCustInvoiceTable.GiroType
IsLumpSumRecoveryTextPrintedShows whether the lump sum recovery text is printed, used for France.Enum
PrintOverdueFineTxt_FR
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.PrintOverdueFineTxt_FR
CustomerGroupCustomer group of the customer.String
CustGroupId
NoYesCustGroup.CustGroupCustInvoiceTable.CustGroup
DirectDebitMandateReferenceUnique ID of the mandate.String (35)
CustMandateId
NoYesCustDirectDebitMandate.MandateReference
ExchangeRateExchange rate applied to the invoice.Real
CustExchRate
NoYesCustInvoiceTable.ExchRate_W
SalesDateSales date of the invoice.Date
SalesDate_W
NoYesCustInvoiceTable.SalesDate_W
VatDueDateDate the invoice enters the VAT register.Date
VatDueDate_W
NoYesCustInvoiceTable.VatDueDate_W
BillingClassificationShort code that identifies the billing classification.String (15)
BillingClassification
NoYesCustBillingClassification.BillingClassification
InclTaxShows whether prices include sales tax.Enum
InclTax
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.InclTax
PostponedVATShows whether VAT is postponed, used for the Czech Republic.Enum
CzPostponeVAT
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.PostponeVAT
ComplementaryFiscalDocumentTypeType of complementary fiscal document: none, price or tax. Used for Brazil.Enum
InvoiceComplementaryType_BR
  • Blank 0
  • Price 1
  • Tax 4
NoYesCustInvoiceTable.InvoiceComplementaryType
CFOPTableRecIdFiscal operation code (CFOP) for the invoice, used for Brazil.Int64
RefRecId
NoNo (private)CFOPTable_BR.RecIdCustInvoiceTable.CFOPTable_BR
CFPSCodeCFPS code, used for Brazil.String (4)
CFPSId_BR
NoYesCustInvoiceTable.CFPSId_BR
IsFinalUserShows whether the customer is a final user, used for Brazil.Enum
CustVendFinalUser_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.CustFinalUser_BR
CustomerPaymentFineCodeFine code, used for Brazil.String
CustFineCode_BR
NoYesCustFineSetup_BR.FineCodeCustInvoiceTable.FineCode_BR
FiscalDocumentTypeRecIdFiscal document type, used for Brazil.Int64
FiscalDocumentTypeRecID_BR
NoNo (private)FiscalDocumentType_BR.RecIdCustInvoiceTable.FiscalDocumentType_BR
FiscalEstablishmentRecIdFiscal establishment linked to the invoice, used for Brazil.Int64
FiscalEstablishmentRecId_BR
NoNo (private)FiscalEstablishment_BR.RecIdCustInvoiceTable.FiscalEstablishment_BR
CustomerPaymentFinancialInterestCodeInterest code, used for Brazil.String
CustInterestCode_BR
NoYesCustInterestSetup_BR.InterestCodeCustInvoiceTable.InterestCode_BR
FiscalOperationPresenceTypeHow the buyer was present, such as in person, internet or telesales. Used for Brazil.Enum
EFDocPresenceType_BR
  • DoesNotApply 0
  • InPerson 1
  • Internet 2
  • Telesales 3
  • InPersonOut 5
  • Others 9
NoYesCustInvoiceTable.PresenceType_BR
SalesPurchOperationTypeRecIdOperation type for the invoice, used for Brazil.Int64
SalesPurchOperationTypeRecId_BR
NoNo (private)SalesPurchOperationType_BR.RecIdCustInvoiceTable.SalesPurchOperationType_BR
IsServiceDeliveryAddressBasedShows whether the service code comes from the delivery address, used for Brazil.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.ServiceCodeOnDlvAddress_BR
CFOPCodeCFOP code.String (5)
CustVendCFOPId_BR
YesYesCFOPTable_BR.CFOPId
FiscalDocumentTypeIdID of the fiscal document type, part of the key.String
FiscalDocumentTypeId_BR
YesYesFiscalDocumentType_BR.FiscalDocumentTypeId
FiscalEstablishmentIdUnique ID of the fiscal establishment. It is the business key of the table.String
FiscalEstablishmentId_BR
NoYesFiscalEstablishment_BR.FiscalEstablishmentId
FiscalDocumentOperationTypeIdUnique ID of the operation type.String
OperationTypeID_BR
YesYesSalesPurchOperationType_BR.OperationTypeID
TransportationDocumentLineIdUnique GUID that identifies the record.Guid
SysGuid
NoYesTransportationDocument.LineId
ExternalInvoiceIdInvoice number from an external source.String (60)
CustomerExternalInvoiceId
NoYesCustInvoiceTable.ExternalInvoiceId
ConsigneeAccountCustomer account of the consignee, used for Russia.String (20)
CustAccountConsignee_RU
NoYesCustTable.AccountNumCustInvoiceTable.ConsigneeAccount_RU
ConsignorAccountVendor account of the shipper, used for Russia.String (20)
VendAccountConsignor_RU
NoYesVendTable.AccountNumCustInvoiceTable.ConsignorAccount_RU
IsCorrectionShows whether the document is a corrective document, used for Russia.Enum
Correct_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.Correct_RU
CorrectedFactureDateDate of the facture being corrected, used for Russia.Date
FactureDate_RU
NoYesCustInvoiceTable.CorrectedFactureDate_RU
CorrectedFactureExternalIdExternal number of the facture being corrected, used for Russia.String (30)
FactureExternalId_RU
NoYesCustInvoiceTable.CorrectedFactureExternalId_RU
CorrectedInvoiceDateDate of the invoice being corrected, used for Russia.Date
CorrectedInvoiceDate_RU
NoYesCustInvoiceTable.CorrectedInvoiceDate_RU
CorrectedInvoiceIdNumber of the invoice being corrected, used for Russia.String (50)
CorrectedInvoiceId_RU
NoYesCustInvoiceTable.CorrectedInvoiceId_RU
CorrectedPeriodPeriod that the correction applies to, used for Russia.Date
TransDate
NoYesCustInvoiceTable.CorrectedPeriod_RU
CorrectionTypeKind of correction: none, correction or revision. Used for Russia.Enum
FactureCorrectionType_RU
  • Unknown 0
  • Correction 1
  • Revision 2
NoYesCustInvoiceTable.CorrectionType_RU
NonRealRevenueShows whether the revenue is unrealised, used for Russia.Enum
NonRealRevenue_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.NonRealRevenue_RU
VATOnPaymentShows whether VAT is handled on payment, used for Russia.Enum
VATOnPayment_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.VATOnPayment_RU
InvoiceOriginCodeOrigin code of the customer invoice.String
CustomerInvoiceOriginId
NoYesCustomerInvoiceOrigin.OriginIdCustInvoiceTable.CustomerInvoiceOriginId
DefaultDimensionDefault financial dimension values set for the invoice.Int64
LedgerDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdCustInvoiceTable.DefaultDimension
DefaultDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
OverrideSalesTaxShows whether the sales tax set by tax calculation is overridden.Enum
TaxIntegrationOverrideSalesTax
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceTable.OverrideSalesTax

Foreign keys (29)

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

Email sales@drdynamics.co.uk