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· rootCustBillingClassification· OuterJoin toCustInvoiceTable· read-onlyCustDirectDebitMandate· OuterJoin toCustInvoiceTable· read-onlyCFOPTable_BR· OuterJoin toCustInvoiceTable· read-onlyFiscalDocumentType_BR· OuterJoin toCustInvoiceTable· read-onlyFiscalEstablishment_BR· OuterJoin toCustInvoiceTable· read-onlySalesPurchOperationType_BR· OuterJoin toCustInvoiceTable· read-onlyTransportationDocument· OuterJoin toCustInvoiceTable· read-onlyDefaultDimensionDAVS(tableDimensionSetEntity) · OuterJoin toCustInvoiceTable· read-only
Fields (82)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
InvoiceIdentifierA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | CustInvoiceTable.RecId | |
FreeTextNumberThe free text invoice number shown to users. It is a text value. | String (20) | No | Yes | computed | |
CustomerAccountCustomer account the invoice is for. It points to a customer record. | String (20)CustAccount | Yes | Yes | CustTable.AccountNum | CustInvoiceTable.OrderAccount |
InvoiceDateDate of the invoice. | DateTransDate | Yes | Yes | CustInvoiceTable.InvoiceDate | |
InvoiceIdInvoice number. It relates to the customer invoice journal. | String (20)CustInvoiceId | No | No (private) | CustInvoiceTable.InvoiceId | |
CurrencyCodeCurrency of the invoice. | String (3)CustCurrencyCode | Yes | Yes | Currency.CurrencyCode | CustInvoiceTable.CurrencyCode |
DueDateDate on which payment is due. | DateDueDate | No | Yes | CustInvoiceTable.DueDate | |
AdjustingInvoiceDateDate of the invoice that this invoice adjusts. | DateTransDate | No | Yes | CustInvoiceTable.AdjustingInvoiceDate | |
CentralBankPurposeCodePayment purpose code required for central bank reporting. | StringBankCentralBankPurposeCode | No | Yes | BankCentralBankPurpose.Code | CustInvoiceTable.BankCentralBankPurposeCode |
CentralBankPurposeTextFree text that explains the central bank payment purpose. | String (210)BankCentralBankPurposeText | No | Yes | CustInvoiceTable.BankCentralBankPurposeText | |
PaymentTermsBaseDateDate from which the payment terms are counted. | DateCashDiscBaseDate | No | Yes | CustInvoiceTable.CashDiscBaseDate | |
PaymentTermsBaseDaysNumber of days used as the base for the payment terms. | IntegerCashDiscBaseDays | No | Yes | CustInvoiceTable.CashDiscBaseDays | |
CashDiscountCodeCash discount code that applies to the invoice. | StringCustCashDiscCode | No | Yes | CashDisc.CashDiscCode | CustInvoiceTable.CashDiscCode |
CashDiscountDateLast date on which the cash discount can be taken. | DateCustCashDiscDate | No | Yes | CustInvoiceTable.CashDiscDate | |
CashDiscountPercentagePercentage rate of the cash discount. | RealDiscPct | No | Yes | CustInvoiceTable.CashDiscPercent | |
ComplimentedInvoiceIdInvoice that this invoice complements. | String (50)InvoiceId | No | Yes | CustInvoiceTable.ComplementedInvoiceId | |
ContactPersonIdContact person recorded for the invoice. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | CustInvoiceTable.ContactPersonId |
CorrectionReasonCodeReason reference that explains the correction. | Int64ReasonRefRecID | No | No (private) | ReasonTableRef.RecId | CustInvoiceTable.CorrectionReasonCode |
CashFlowForecastStatus number linked to cash flow forecast.low confidence | IntegerCovStatus | No | Yes | CustInvoiceTable.CovStatus | |
BankAccountIdBank account of the invoice account customer. | StringCustBankAccountId | No | Yes | CustBankAccount.AccountID | CustInvoiceTable.CustBankAccountId |
BillingClassificationIdBilling classification linked to the invoice. | Int64RefRecId | No | No (private) | CustBillingClassification.RecId | CustInvoiceTable.CustBillingClassification |
CustomerReferenceReference text supplied by the customer. | String (60)CustRef | No | Yes | CustInvoiceTable.CustomerRef | |
DirectDebitMandateIdDirect debit mandate of the customer used for this invoice. | Int64CustDirectDebitMandateRecId | No | No (private) | CustDirectDebitMandate.RecId | CustInvoiceTable.DirectDebitMandate |
DocumentDateDate shown on the source document. | DateDocumentDate | No | Yes | CustInvoiceTable.DocumentDate | |
IsPostedViaIntercompanyShows whether the invoice was posted through intercompany. | EnumInterCompanyPosted
| No | Yes | CustInvoiceTable.InterCompanyPosted | |
InvoiceAccountCustomer account that is invoiced. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | CustInvoiceTable.InvoiceAccount |
LanguageIdLanguage used for the invoice. | String (7)CustLanguageId | No | Yes | LanguageTable.LanguageId | CustInvoiceTable.LanguageId |
InvoiceNameName printed on the invoice. | String (100)LogisticsInvoiceName | No | Yes | CustInvoiceTable.Name | |
numberSequenceGroupNumber sequence group used for the invoice. | StringNumberSequenceGroupId | No | Yes | NumberSequenceGroup.numberSequenceGroupId | CustInvoiceTable.numberSequenceGroup |
IsOneTimeCustomerShows whether the invoice is for a one-time customer. | EnumOneTimeCustomer
| No | Yes | CustInvoiceTable.OneTimeCustomer | |
TermsOfPaymentTerms of payment for the invoice. | String (100)CustPaymTermId | No | Yes | PaymTerm.PaymTermId | CustInvoiceTable.Payment |
PaymentSchedulePayment schedule for the invoice. | String (30)PaymSchedId | No | Yes | PaymSched.Name | CustInvoiceTable.PaymentSched |
MethodOfPaymentMethod of payment for the customer. | StringCustPaymMode | No | Yes | CustPaymModeTable.PaymMode | CustInvoiceTable.PaymMode |
IsPostedShows whether the invoice has been posted. | EnumPosted
| No | Yes | CustInvoiceTable.Posted | |
PostingProfileCustomer posting profile used for the invoice. | StringCustPostingProfile | No | Yes | CustLedger.PostingProfile | CustInvoiceTable.PostingProfile |
CustomerRequisitionCustomer requisition number. | String (20)CustPurchaseOrder | No | Yes | CustInvoiceTable.PurchOrderFormNum | |
SalesTaxGroupIdSales tax group for the invoice. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | CustInvoiceTable.TaxGroup |
SalesTaxItemGroupIdItem sales tax group for the invoice. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | CustInvoiceTable.TaxItemGroup |
EInvoiceAccountCodeAccount code for the dimension used in electronic invoices. | String (35)EInvoiceAccountCode | No | Yes | CustInvoiceTable.EInvoiceAccountCode | |
EInvoiceIsLineSpecificShows whether the electronic invoice uses line-specific settings. | EnumEInvoiceLineSpecific
| No | Yes | CustInvoiceTable.EInvoiceLineSpec | |
GiroTypeType of payment slip attached to the invoice, such as FIK, BBS or a coloured slip. | EnumPaymentStubInvoiceId
| No | Yes | CustInvoiceTable.GiroType | |
IsLumpSumRecoveryTextPrintedShows whether the lump sum recovery text is printed, used for France. | EnumPrintOverdueFineTxt_FR
| No | Yes | CustInvoiceTable.PrintOverdueFineTxt_FR | |
CustomerGroupCustomer group of the customer. | StringCustGroupId | No | Yes | CustGroup.CustGroup | CustInvoiceTable.CustGroup |
DirectDebitMandateReferenceUnique ID of the mandate. | String (35)CustMandateId | No | Yes | CustDirectDebitMandate.MandateReference | |
ExchangeRateExchange rate applied to the invoice. | RealCustExchRate | No | Yes | CustInvoiceTable.ExchRate_W | |
SalesDateSales date of the invoice. | DateSalesDate_W | No | Yes | CustInvoiceTable.SalesDate_W | |
VatDueDateDate the invoice enters the VAT register. | DateVatDueDate_W | No | Yes | CustInvoiceTable.VatDueDate_W | |
BillingClassificationShort code that identifies the billing classification. | String (15)BillingClassification | No | Yes | CustBillingClassification.BillingClassification | |
InclTaxShows whether prices include sales tax. | EnumInclTax
| No | Yes | CustInvoiceTable.InclTax | |
PostponedVATShows whether VAT is postponed, used for the Czech Republic. | EnumCzPostponeVAT
| No | Yes | CustInvoiceTable.PostponeVAT | |
ComplementaryFiscalDocumentTypeType of complementary fiscal document: none, price or tax. Used for Brazil. | Enum
| No | Yes | CustInvoiceTable.InvoiceComplementaryType | |
CFOPTableRecIdFiscal operation code (CFOP) for the invoice, used for Brazil. | Int64RefRecId | No | No (private) | CFOPTable_BR.RecId | CustInvoiceTable.CFOPTable_BR |
CFPSCodeCFPS code, used for Brazil. | String (4)CFPSId_BR | No | Yes | CustInvoiceTable.CFPSId_BR | |
IsFinalUserShows whether the customer is a final user, used for Brazil. | EnumCustVendFinalUser_BR
| No | Yes | CustInvoiceTable.CustFinalUser_BR | |
CustomerPaymentFineCodeFine code, used for Brazil. | StringCustFineCode_BR | No | Yes | CustFineSetup_BR.FineCode | CustInvoiceTable.FineCode_BR |
FiscalDocumentTypeRecIdFiscal document type, used for Brazil. | Int64FiscalDocumentTypeRecID_BR | No | No (private) | FiscalDocumentType_BR.RecId | CustInvoiceTable.FiscalDocumentType_BR |
FiscalEstablishmentRecIdFiscal establishment linked to the invoice, used for Brazil. | Int64FiscalEstablishmentRecId_BR | No | No (private) | FiscalEstablishment_BR.RecId | CustInvoiceTable.FiscalEstablishment_BR |
CustomerPaymentFinancialInterestCodeInterest code, used for Brazil. | StringCustInterestCode_BR | No | Yes | CustInterestSetup_BR.InterestCode | CustInvoiceTable.InterestCode_BR |
FiscalOperationPresenceTypeHow the buyer was present, such as in person, internet or telesales. Used for Brazil. | Enum
| No | Yes | CustInvoiceTable.PresenceType_BR | |
SalesPurchOperationTypeRecIdOperation type for the invoice, used for Brazil. | Int64SalesPurchOperationTypeRecId_BR | No | No (private) | SalesPurchOperationType_BR.RecId | CustInvoiceTable.SalesPurchOperationType_BR |
IsServiceDeliveryAddressBasedShows whether the service code comes from the delivery address, used for Brazil. | EnumTaxServiceCodeOnDlvAddress_BR
| No | Yes | CustInvoiceTable.ServiceCodeOnDlvAddress_BR | |
CFOPCodeCFOP code. | String (5)CustVendCFOPId_BR | Yes | Yes | CFOPTable_BR.CFOPId | |
FiscalDocumentTypeIdID of the fiscal document type, part of the key. | StringFiscalDocumentTypeId_BR | Yes | Yes | FiscalDocumentType_BR.FiscalDocumentTypeId | |
FiscalEstablishmentIdUnique ID of the fiscal establishment. It is the business key of the table. | StringFiscalEstablishmentId_BR | No | Yes | FiscalEstablishment_BR.FiscalEstablishmentId | |
FiscalDocumentOperationTypeIdUnique ID of the operation type. | StringOperationTypeID_BR | Yes | Yes | SalesPurchOperationType_BR.OperationTypeID | |
TransportationDocumentLineIdUnique GUID that identifies the record. | GuidSysGuid | No | Yes | TransportationDocument.LineId | |
ExternalInvoiceIdInvoice number from an external source. | String (60)CustomerExternalInvoiceId | No | Yes | CustInvoiceTable.ExternalInvoiceId | |
ConsigneeAccountCustomer account of the consignee, used for Russia. | String (20)CustAccountConsignee_RU | No | Yes | CustTable.AccountNum | CustInvoiceTable.ConsigneeAccount_RU |
ConsignorAccountVendor account of the shipper, used for Russia. | String (20)VendAccountConsignor_RU | No | Yes | VendTable.AccountNum | CustInvoiceTable.ConsignorAccount_RU |
IsCorrectionShows whether the document is a corrective document, used for Russia. | EnumCorrect_RU
| No | Yes | CustInvoiceTable.Correct_RU | |
CorrectedFactureDateDate of the facture being corrected, used for Russia. | DateFactureDate_RU | No | Yes | CustInvoiceTable.CorrectedFactureDate_RU | |
CorrectedFactureExternalIdExternal number of the facture being corrected, used for Russia. | String (30)FactureExternalId_RU | No | Yes | CustInvoiceTable.CorrectedFactureExternalId_RU | |
CorrectedInvoiceDateDate of the invoice being corrected, used for Russia. | DateCorrectedInvoiceDate_RU | No | Yes | CustInvoiceTable.CorrectedInvoiceDate_RU | |
CorrectedInvoiceIdNumber of the invoice being corrected, used for Russia. | String (50)CorrectedInvoiceId_RU | No | Yes | CustInvoiceTable.CorrectedInvoiceId_RU | |
CorrectedPeriodPeriod that the correction applies to, used for Russia. | DateTransDate | No | Yes | CustInvoiceTable.CorrectedPeriod_RU | |
CorrectionTypeKind of correction: none, correction or revision. Used for Russia. | Enum
| No | Yes | CustInvoiceTable.CorrectionType_RU | |
NonRealRevenueShows whether the revenue is unrealised, used for Russia. | EnumNonRealRevenue_RU
| No | Yes | CustInvoiceTable.NonRealRevenue_RU | |
VATOnPaymentShows whether VAT is handled on payment, used for Russia. | EnumVATOnPayment_RU
| No | Yes | CustInvoiceTable.VATOnPayment_RU | |
InvoiceOriginCodeOrigin code of the customer invoice. | StringCustomerInvoiceOriginId | No | Yes | CustomerInvoiceOrigin.OriginId | CustInvoiceTable.CustomerInvoiceOriginId |
DefaultDimensionDefault financial dimension values set for the invoice. | Int64LedgerDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | CustInvoiceTable.DefaultDimension |
DefaultDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
OverrideSalesTaxShows whether the sales tax set by tax calculation is overridden. | EnumTaxIntegrationOverrideSalesTax
| No | Yes | CustInvoiceTable.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.
CustomerAccount→CustTable.AccountNum(key of CustTable)Many CustInvoiceTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many CustInvoiceTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CentralBankPurposeCode→BankCentralBankPurpose.Code(key of BankCentralBankPurpose)Many CustInvoiceTable records → zero or one BankCentralBankPurpose record
BankCentralBankPurpose details: see PaymentPurposeCodeEntity
CashDiscountCode→CashDisc.CashDiscCode(key of CashDisc)Many CustInvoiceTable records → zero or one CashDisc record
CashDisc details: see CashDiscountEntity, CredManCashDiscRankEntity, CashDiscBiEntity
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many CustInvoiceTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
CorrectionReasonCode→ReasonTableRef.RecId(key of ReasonTableRef)Many CustInvoiceTable records → zero or one ReasonTableRef record
ReasonTableRef details: see CustInvoiceJournalLineEntity, PurchPurchaseOrderConfirmationHeaderEntity, PurchPurchaseOrderHeaderEntity
BankAccountId→CustBankAccount.AccountID(key of CustBankAccount)Join on all of:
BankAccountId=CustBankAccount.AccountID,InvoiceAccount=CustBankAccount.CustAccountMany CustInvoiceTable records → zero or one CustBankAccount record
CustBankAccount details: see CustomerBankAccountEntity, BusinessDocumentSalesInvoiceBaseEntity, CustBankAccountCDREntity
BillingClassificationId→CustBillingClassification.RecId(key of CustBillingClassification)Many CustInvoiceTable records → exactly one CustBillingClassification record
CustBillingClassification details: see CustBillingClassificationEntity, CustBillingClassificationCodeEntity, JournalizingTransactionPostingDefinitionReceivableEntity
DirectDebitMandateId→CustDirectDebitMandate.RecId(key of CustDirectDebitMandate)Many CustInvoiceTable records → zero or one CustDirectDebitMandate record
CustDirectDebitMandate details: see CustDirectDebitMandateEntity, SalesOrderHeaderEntity, SalesOrderHeaderV2Entity
InvoiceAccount→CustTable.AccountNum(key of CustTable)Many CustInvoiceTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
LanguageId→LanguageTable.LanguageId(key of LanguageTable)Relation also requires LanguageTable.LabelFile = 1.
Many CustInvoiceTable records → exactly one LanguageTable record
LanguageTable details: see ConfirmingPOEntity, MainAccountTranslationEntity, RetailCatalogTranslationEntity
numberSequenceGroup→NumberSequenceGroup.numberSequenceGroupId(key of NumberSequenceGroup)Many CustInvoiceTable records → zero or one NumberSequenceGroup record
NumberSequenceGroup details: see NumberSequenceGroupEntity
TermsOfPayment→PaymTerm.PaymTermId(key of PaymTerm)Many CustInvoiceTable records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
PaymentSchedule→PaymSched.Name(key of PaymSched)Many CustInvoiceTable records → zero or one PaymSched record
PaymSched details: see PaymentScheduleEntity
MethodOfPayment→CustPaymModeTable.PaymMode(key of CustPaymModeTable)Many CustInvoiceTable records → zero or one CustPaymModeTable record
CustPaymModeTable details: see CustomerPaymentMethodEntity, BankCustPaymModeBankAccountsEntity, CustPaymModeTableBiEntity
PostingProfile→CustLedger.PostingProfile(key of CustLedger)Many CustInvoiceTable records → zero or one CustLedger record
CustLedger details: see CustCustomerPostingProfileHeaderEntity, CustCustomerPostingProfileLineEntity, InventInventoryProfileCustomerVendorLedgerEntity
SalesTaxGroupId→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many CustInvoiceTable records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
SalesTaxItemGroupId→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many CustInvoiceTable records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
CustomerGroup→CustGroup.CustGroup(key of CustGroup)Many CustInvoiceTable records → exactly one CustGroup record
CustGroup details: see CustCustomerGroupEntity, RetailPriceGroupApplicabilityRuleEntity, WHSCustomerGroupProductFilterEntity
CFOPTableRecId→CFOPTable_BR.RecId(key of CFOPTable_BR)Many CustInvoiceTable records → zero or one CFOPTable_BR record
CFOPTable_BR details: see CFOPCodesEntity, ProjectParameterEntity, InventTransferLineFiscalInfoEntity
CustomerPaymentFineCode→CustFineSetup_BR.FineCode(key of CustFineSetup_BR)Many CustInvoiceTable records → zero or one CustFineSetup_BR record
CustFineSetup_BR details: see CustCustomerPaymentFineCodeEntity
FiscalDocumentTypeRecId→FiscalDocumentType_BR.RecId(key of FiscalDocumentType_BR)Many CustInvoiceTable records → zero or one FiscalDocumentType_BR record
FiscalDocumentType_BR details: see FiscalDocumentTypeEntity, VendorInvoiceHeaderEntity, FiscalDocumentTypesForCustomersEntity
FiscalEstablishmentRecId→FiscalEstablishment_BR.RecId(key of FiscalEstablishment_BR)One or more CustInvoiceTable records → exactly one FiscalEstablishment_BR record
FiscalEstablishment_BR details: see FiscalEstablishmentEntity, EFDocTechResponsibleInformationEntity, FiscalOrganizationFiscalEstablishmentEntity
CustomerPaymentFinancialInterestCode→CustInterestSetup_BR.InterestCode(key of CustInterestSetup_BR)Many CustInvoiceTable records → zero or one CustInterestSetup_BR record
CustInterestSetup_BR details: see CustPaymentInterestCodeEntity
SalesPurchOperationTypeRecId→SalesPurchOperationType_BR.RecId(key of SalesPurchOperationType_BR)Many CustInvoiceTable records → zero or one SalesPurchOperationType_BR record
SalesPurchOperationType_BR details: see OperationTypeEntity, BrazilParametersEntity, CFOPMatrixEntity
ConsigneeAccount→CustTable.AccountNum(key of CustTable)Many CustInvoiceTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
ConsignorAccount→VendTable.AccountNum(key of VendTable)Many CustInvoiceTable records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
InvoiceOriginCode→CustomerInvoiceOrigin.OriginId(key of CustomerInvoiceOrigin)Many CustInvoiceTable records → zero or one CustomerInvoiceOrigin record
Not exposed by a public entity.
DefaultDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many CustInvoiceTable records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
Need help with FreeTextInvoiceHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.