Data entity

CustAdvancedInvoiceEntity

Holds advance invoices for customers, one row per invoice line. It combines the invoice header with its lines, the responsible worker, addresses and financial dimensions. Header data includes customer and invoice accounts, status, amounts, currency, dates, and VAT and posting settings. The key is the advance invoice ID and line number.

Entity name
CustAdvancedInvoiceEntity
Public entity name
CustAdvancedInvoice
OData collection
CustAdvancedInvoices
Category
Document
Module
Accounts receivable
Read-only
No
Data management enabled
Yes
Configuration key
None
Keys
HeadId, LineNum
Staging table
CustAdvancedInvoiceStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/CustAdvancedInvoices
Dataverse virtual table
mserp_custadvancedinvoiceentity. 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

  • CzCustAdvanceInvoiceTable · root
  • HcmWorker · OuterJoin to CzCustAdvanceInvoiceTable · read-only
  • LogisticsPostalAddressBaseEntity · OuterJoin to CzCustAdvanceInvoiceTable
  • DimensionSetEntity · OuterJoin to CzCustAdvanceInvoiceTable · read-only
  • CzCustAdvanceInvoiceLine · OuterJoin to CzCustAdvanceInvoiceTable
  • DimensionCombinationEntity · OuterJoin to CzCustAdvanceInvoiceLine · read-only

Fields (82)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CustomerAccountThe customer account of the order.String (20)
CustAccount
YesYesCustTable.AccountNumCzCustAdvanceInvoiceTable.OrderAccount
InvoiceAccountThe customer account that is invoiced.String (20)
CustInvoiceAccount
YesYesCustTable.AccountNumCzCustAdvanceInvoiceTable.InvoiceAccount
OneTimeCustomerShows whether the customer is a one-time customer.Enum
OneTimeCustomer
NoYes

Platform enum: values not in the metadata extract.

NoYesCzCustAdvanceInvoiceTable.OneTimeCustomer
PostVATShows whether VAT is posted.Enum
CzPostVAT
NoYes

Platform enum: values not in the metadata extract.

NoYesCzCustAdvanceInvoiceTable.PostVAT
PostVATUntilThe date until which VAT is posted.Date
CzPostVATDate
NoYesCzCustAdvanceInvoiceTable.PostVATDate
CreateTaxDocumentShows whether a tax document is created.Enum
CzTaxDocumentCreateDoc
NoYes

Platform enum: values not in the metadata extract.

NoYesCzCustAdvanceInvoiceTable.TaxDocumentCreate
PrepaymentPostingProfileThe posting profile used with the prepayment journal voucher.String
CustPostingProfile
NoYesCustLedger.PostingProfileCzCustAdvanceInvoiceTable.PostingProfile
StatusThe invoice status: open, partially paid or closed.Enum
CzAdvanceInvoiceStatus
  • Open 0
  • PartPaid 1
  • Closed 3
NoYesCzCustAdvanceInvoiceTable.Status
SalesOrderThe sales order that the advance invoice relates to.String (20)
SalesId
NoYesSalesTable.SalesIdCzCustAdvanceInvoiceTable.SalesId
RecipientNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
LanguageThe language of the invoice.String (7)
CustLanguageId
YesYesLanguageTable.LanguageIdCzCustAdvanceInvoiceTable.LanguageId
NumberSequenceGroupThe number sequence group used for the invoice.String
NumberSequenceGroupId
NoYesNumberSequenceGroup.numberSequenceGroupIdCzCustAdvanceInvoiceTable.NumberSequenceGroup
PostedShows whether the invoice has been posted.Enum
Posted
NoYes

Platform enum: values not in the metadata extract.

NoYesCzCustAdvanceInvoiceTable.Posted
AdvanceInvoiceThe advance invoice number.String (50)
CzCustAdvanceInvoiceId
NoYesCzCustAdvanceInvoiceTable.InvoiceId
AdvanceInvoiceVoucherThe voucher number of the advance invoice.String (20)
CustAdvanceInvoiceVoucher_W
NoYesCzCustAdvanceInvoiceTable.Voucher
PostingProfileThe customer posting profile.String
CustPostingProfile
NoYesCustLedger.PostingProfileCzCustAdvanceInvoiceTable.CustPostingProfile
WorkerSalesTakerThe worker who is the recipient, taken from the worker record.Int64
SalesTaker
NoNo (private)HcmWorker.RecIdCzCustAdvanceInvoiceTable.WorkerSalesTaker
InvoiceAmountThe total amount of the invoice.Real
AmountCur
NoYesCzCustAdvanceInvoiceTable.InvoiceAmount
CurrencyThe currency of the invoice.String (3)
CustCurrencyCode
YesYesCurrency.CurrencyCodeCzCustAdvanceInvoiceTable.CurrencyCode
TriangulationShows whether the transaction is a euro triangulation.Enum
EUROTriangulation
NoYes

Platform enum: values not in the metadata extract.

NoYesCzCustAdvanceInvoiceTable.Triangulation
InvoiceDateThe invoice date.Date
TransDate
YesYesCzCustAdvanceInvoiceTable.InvoiceDate
DueDateThe date on which payment is due.Date
DueDate
NoYesCzCustAdvanceInvoiceTable.DueDate
DocumentDateThe date of the document.Date
DocumentDate
NoYesCzCustAdvanceInvoiceTable.DocumentDate
VATRegisterDateThe date of the VAT register entry.Date
VatDueDate_W
NoYesCzCustAdvanceInvoiceTable.VatDueDate_W
SalesDocumentStatusThe status of the sales document, such as invoice or printed fiscal document, used for Poland.Enum
PlFiscalDocState
  • Invoice 0
  • FiscalDocument 1
  • PrintedFiscalDocument 2
  • Changed2Invoice 3
NoYesCzCustAdvanceInvoiceTable.FiscalDocState_PL
FiscalDocumentDateThe date of the fiscal document, used for Poland.Date
PlFiscalDocDate
NoYesCzCustAdvanceInvoiceTable.FiscalDocDate_PL
FiscalPrinterThe fiscal printer, used for Poland.String (20)
PlFiscalPrinterCode
NoYesPlFiscalPrinterTable.FiscalPrinterCodeCzCustAdvanceInvoiceTable.FiscalPrinterCode_PL
FiscalInvoiceAccountCustomer account for the invoice, used for Poland.String (20)
CustAccount
NoYesCustTable.AccountNumCzCustAdvanceInvoiceTable.FiscalInvoiceAccount_PL
FiscalOrderAccountCustomer account for the order, used for Poland.String (20)
CustAccount
NoYesCustTable.AccountNumCzCustAdvanceInvoiceTable.FiscalOrderAccount_PL
NameThe customer name.String (160)
CustName
NoYesCzCustAdvanceInvoiceTable.Name
TermsOfPaymentThe payment terms.String (100)
CustPaymTermId
NoYesPaymTerm.PaymTermIdCzCustAdvanceInvoiceTable.Payment
MethodOfPaymentThe method of payment.String
CustPaymMode
NoYesCustPaymModeTable.PaymModeCzCustAdvanceInvoiceTable.PaymMode
PaymentSpecificationThe payment specification for the method of payment.String
PaymSpec
NoYesCustPaymModeSpec.SpecificationCzCustAdvanceInvoiceTable.PaymSpec
PaymentScheduleThe payment schedule.String (30)
PaymSchedId
NoYesPaymSched.NameCzCustAdvanceInvoiceTable.PaymentSched
ConstantSymbolThe bank constant symbol linked to the invoice.String
CzConstantSymbol
NoYesBankConstantSymbol.ConstantSymbolCzCustAdvanceInvoiceTable.BankConstantSymbol
ListcodeThe list code, such as EU trade or triangular trade.Enum
ListcodeId
Listcode
  • IncludeNot 0
  • EUTrade 1
  • ProductionOnToll 2
  • TriangularEUTrade 3
  • TriangularProductionOnToll 4
  • PropertyMoving_CZ 50
  • TriangularIntermediateRole_HU 51
  • PurchasedOnBehalf_LV 53
NoYesCzCustAdvanceInvoiceTable.Listcode
DefaultDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DefaultDimensionThe default financial dimensions of the invoice.Int64
LedgerDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdCzCustAdvanceInvoiceTable.DefaultDimension
CountryRegionThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
ExchangeRateThe exchange rate of the invoice.Real
ExchRate
NoYesCzCustAdvanceInvoiceTable.ExchRate
SecondaryExchangeRateThe secondary exchange rate.Real
ExchrateSecondary
NoYesCzCustAdvanceInvoiceTable.ExchrateSecond
CustAdvanceInvoiceIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesCzCustAdvanceInvoiceTable.RecId
HeadIdA unique GUID that identifies the invoice record.Guid
SysGuid
NoYesCzCustAdvanceInvoiceTable.HeadId
AmountCurAmount of the line in currency.Real
AmountCur
NoYesCzCustAdvanceInvoiceLine.AmountCur
DescriptionShort description of the line.String (60)
Description
NoYesCzCustAdvanceInvoiceLine.Description
InvoiceTxtLonger free text shown for the invoice line.String (-1)
Notes
NoYesCzCustAdvanceInvoiceLine.InvoiceTxt
LineNumNumber of the line within the advance invoice.Real
LineNum
NoYesCzCustAdvanceInvoiceLine.LineNum
OffsetLedgerDimensionLedger account combination used as the offset account.Int64
AdvanceInvoiceOffsetLedgerDimension_W
NoNo (private)DimensionAttributeValueCombination.RecIdCzCustAdvanceInvoiceLine.OffsetLedgerDimension
TaxGroupSales tax group applied to the line.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupCzCustAdvanceInvoiceLine.TaxGroup
TaxItemGroupItem sales tax group applied to the line.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupCzCustAdvanceInvoiceLine.TaxItemGroup
ParentRecIdPoints to the advance invoice header that owns this line.Int64
RefRecId
NoNo (private)CzCustAdvanceInvoiceTable.RecIdCzCustAdvanceInvoiceLine.ParentRecId
CorrectionDescriptionShort text giving the reason for a correction.String (60)
PlCorrectionDesc
NoYesCzCustAdvanceInvoiceLine.CorrectionDescription
OffsetLedgerDimensionDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DeliveryBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
DeliveryCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
DeliveryCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
DeliveryCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
DeliveryCountyCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
DeliveryDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
DeliveryDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
DeliveryIsPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
DeliveryLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
DeliveryLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
DeliveryLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
DeliveryPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
DeliveryStateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
DeliveryStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
DeliveryStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
DeliveryTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
DeliveryValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoYesLogisticsPostalAddress.ValidFrom
DeliveryValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoYesLogisticsPostalAddress.ValidTo
DeliveryAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
DeliveryZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
ContactPersonIdThe contact person for the invoice.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdCzCustAdvanceInvoiceTable.ContactPersonId
PostalAddressThe postal address of the customer.Int64
LogisticsPostalAddressRecId
NoYesLogisticsPostalAddress.RecIdCzCustAdvanceInvoiceTable.PostalAddress
DeliveryDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
CustGroupThe customer group.String
CustGroupId
YesYesCustGroup.CustGroupCzCustAdvanceInvoiceTable.CustGroup
ComputedLineNumLine number of the advance invoice line, calculated for the entity.Real
LineNum
NoNo (private)computed
RetailOrderReferenceIdThe order reference from the sales channel.String (50)
RetailOrderChannelReferenceId
NoYesCzCustAdvanceInvoiceTable.RetailOrderReferenceId
RetailStoreIdThe store number of the retail store.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberCzCustAdvanceInvoiceTable.RetailStoreId
RetailTerminalIdThe register number of the POS terminal.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdCzCustAdvanceInvoiceTable.RetailTerminalId
RetailTransactionIdThe number of the retail transaction.String (44)
RetailTransactionId
NoYesCzCustAdvanceInvoiceTable.RetailTransactionId

Foreign keys (31)

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

Email sales@drdynamics.co.uk