Table

CzCustAdvanceInvoiceTable

Advance invoice

Holds customer advance invoices. Each row has the customer, currency, amounts, dates, payment terms, posting profile and status. It includes extra fields for Poland, such as fiscal printer and fiscal document status, and retail channel details.

Table name
CzCustAdvanceInvoiceTable
Module
Accounts payable
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (59)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BankConstantSymbolThe bank constant symbol linked to the invoice.String
CzConstantSymbol
NoBankConstantSymbol.ConstantSymbolCustAdvancedInvoiceEntity
ContactPersonIdThe contact person for the invoice.String (20)
ContactPersonId
NoContactPerson.ContactPersonIdCustAdvancedInvoiceEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeThe currency of the invoice.String (3)
CustCurrencyCode
YesCurrency.CurrencyCodeCustAdvancedInvoiceEntity
CustGroupThe customer group.String
CustGroupId
YesCustGroup.CustGroupCustAdvancedInvoiceEntity
CustPostingProfileThe customer posting profile.String
CustPostingProfile
NoCustLedger.PostingProfileCustAdvancedInvoiceEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionThe default financial dimensions of the invoice.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdCustAdvancedInvoiceEntity
DocumentDateThe date of the document.Date
DocumentDate
NoCustAdvancedInvoiceEntity
DueDateThe date on which payment is due.Date
DueDate
NoCustAdvancedInvoiceEntity
ExchRateThe exchange rate of the invoice.Real
ExchRate
NoCustAdvancedInvoiceEntity
ExchrateSecondThe secondary exchange rate.Real
ExchrateSecondary
NoCustAdvancedInvoiceEntity
FiscalDocDate_PLThe date of the fiscal document, used for Poland.Date
PlFiscalDocDate
NoCustAdvancedInvoiceEntity
FiscalDocState_PLThe status of the sales document, such as invoice or printed fiscal document, used for Poland.Enum
PlFiscalDocState (enum)
NoCustAdvancedInvoiceEntity
FiscalInvoiceAccount_PLCustomer account for the invoice, used for Poland.String (20)
CustAccount
NoCustTable.AccountNumCustAdvancedInvoiceEntity
FiscalOrderAccount_PLCustomer account for the order, used for Poland.String (20)
CustAccount
NoCustTable.AccountNumCustAdvancedInvoiceEntity
FiscalPrinterCode_PLThe fiscal printer, used for Poland.String (20)
PlFiscalPrinterCode
NoPlFiscalPrinterTable.FiscalPrinterCodeCustAdvancedInvoiceEntity
FreeInvoiceRefRecIdThe customer free text invoice linked to this advance invoice.Int64
CustInvoiceTableRefRecId
NoCustInvoiceTable.RecIdNone
HeadIdA unique GUID that identifies the invoice record.Guid
SysGuid
NoCustAdvancedInvoiceEntity
InvoiceAccountThe customer account that is invoiced.String (20)
CustInvoiceAccount
YesCustTable.AccountNumCustAdvancedInvoiceEntity
InvoiceAmountThe total amount of the invoice.Real
AmountCur
NoCustAdvancedInvoiceEntity
InvoiceDateThe invoice date.Date
TransDate
YesCustAdvancedInvoiceEntity
InvoiceIdThe advance invoice number.String (50)
CzCustAdvanceInvoiceId
NoCustAdvancedInvoiceEntity
LanguageIdThe language of the invoice.String (7)
CustLanguageId
YesLanguageTable.LanguageIdCustAdvancedInvoiceEntity
ListcodeThe list code, such as EU trade or triangular trade.Enum
ListcodeId
Listcode (enum)
NoCustAdvancedInvoiceEntity
LogA text log for the invoice.String (255)
LogText
NoNone
NameThe customer name.String (160)
CustName
NoCustAdvancedInvoiceEntity
NumberSequenceGroupThe number sequence group used for the invoice.String
NumberSequenceGroupId
NoNumberSequenceGroup.numberSequenceGroupIdCustAdvancedInvoiceEntity
OneTimeCustomerShows whether the customer is a one-time customer.Enum
OneTimeCustomer
NoYes (enum)
NoCustAdvancedInvoiceEntity
OrderAccountThe customer account of the order.String (20)
CustAccount
YesCustTable.AccountNumCustAdvancedInvoiceEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentThe payment terms.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdCustAdvancedInvoiceEntity
PaymentSchedThe payment schedule.String (30)
PaymSchedId
NoPaymSched.NameCustAdvancedInvoiceEntity
PaymModeThe method of payment.String
CustPaymMode
NoCustPaymModeTable.PaymModeCustAdvancedInvoiceEntity
PaymSpecThe payment specification for the method of payment.String
PaymSpec
NoCustPaymModeSpec.SpecificationCustAdvancedInvoiceEntity
PostalAddressThe postal address of the customer.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdCustAdvancedInvoiceEntity
PostedShows whether the invoice has been posted.Enum
Posted
NoYes (enum)
NoCustAdvancedInvoiceEntity
PostingProfileThe posting profile used with the prepayment journal voucher.String
CustPostingProfile
NoCustLedger.PostingProfileCustAdvancedInvoiceEntity
PostVATShows whether VAT is posted.Enum
CzPostVAT
NoYes (enum)
NoCustAdvancedInvoiceEntity
PostVATDateThe date until which VAT is posted.Date
CzPostVATDate
NoCustAdvancedInvoiceEntity
QRCodePurpose not clear from the metadata.low confidenceString (1000)
FreeText1000
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoCustAdvancedInvoiceEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RetailOrderReferenceIdThe order reference from the sales channel.String (50)
RetailOrderChannelReferenceId
NoCustAdvancedInvoiceEntity
RetailStoreIdThe store number of the retail store.String
RetailStoreId
NoRetailStoreTable.StoreNumberCustAdvancedInvoiceEntity
RetailTerminalIdThe register number of the POS terminal.String
RetailTerminalId
NoRetailTerminalTable.terminalIdCustAdvancedInvoiceEntity
RetailTransactionIdThe number of the retail transaction.String (44)
RetailTransactionId
NoCustAdvancedInvoiceEntity
SalesIdThe sales order that the advance invoice relates to.String (20)
SalesId
NoSalesTable.SalesIdCustAdvancedInvoiceEntityCustAdvancedInvoiceItemsEntity
StatusThe invoice status: open, partially paid or closed.Enum
CzAdvanceInvoiceStatus (enum)
NoCustAdvancedInvoiceEntity
SubmissionUUIDThe unique invoice ID given by the tax authorities.String (50)
UUID
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxDocumentCreateShows whether a tax document is created.Enum
CzTaxDocumentCreateDoc
NoYes (enum)
NoCustAdvancedInvoiceEntity
TriangulationShows whether the transaction is a euro triangulation.Enum
EUROTriangulation
NoYes (enum)
NoCustAdvancedInvoiceEntity
TypeThe type of advance invoice: common, credit note, reversal or cancellation.Enum
AdvanceInvoiceType_W (enum)
NoNone
VatDueDate_WThe date of the VAT register entry.Date
VatDueDate_W
NoCustAdvancedInvoiceEntity
VoucherThe voucher number of the advance invoice.String (20)
CustAdvanceInvoiceVoucher_W
NoCustAdvancedInvoiceEntity
WorkerSalesTakerThe worker who is the recipient, taken from the worker record.Int64
SalesTaker
NoHcmWorker.RecIdCustAdvancedInvoiceEntity

Indexes (5)

Relations (28)

Each relation joins CzCustAdvanceInvoiceTable to another table on the fields shown.

  • BankConstantSymbol → BankConstantSymbol

    Join on BankConstantSymbol = BankConstantSymbol.ConstantSymbol

    Many CzCustAdvanceInvoiceTable records → zero or one BankConstantSymbol record

  • ContactPerson → ContactPerson

    Join on ContactPersonId = ContactPerson.ContactPersonId

    Many CzCustAdvanceInvoiceTable records → zero or one ContactPerson record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CzCustAdvanceInvoiceTable records → exactly one Currency record

  • CustAdvanceInvoiceTable_CZ → CzCustAdvanceInvoiceTable

    Join on RecId = CzCustAdvanceInvoiceTable.RecId

    Cardinality not set in the metadata.

  • CustGroup → CustGroup

    Join on CustGroup = CustGroup.CustGroup

    Many CzCustAdvanceInvoiceTable records → exactly one CustGroup record

  • CustInvoiceTable → CustInvoiceTable

    Join on FreeInvoiceRefRecId = CustInvoiceTable.RecId

    Many CzCustAdvanceInvoiceTable records → zero or one CustInvoiceTable record

  • CustLedger_CustPostingProfile → CustLedger

    Join on CustPostingProfile = CustLedger.PostingProfile

    Many CzCustAdvanceInvoiceTable records → zero or one CustLedger record

  • CustLedger_PostingProfile → CustLedger

    Join on PostingProfile = CustLedger.PostingProfile

    Many CzCustAdvanceInvoiceTable records → zero or one CustLedger record

  • CustPaymModeSpec → CustPaymModeSpec

    Join on PaymMode = CustPaymModeSpec.PaymMode, PaymSpec = CustPaymModeSpec.Specification

    Many CzCustAdvanceInvoiceTable records → zero or one CustPaymModeSpec record

  • CustPaymModeTable → CustPaymModeTable

    Join on PaymMode = CustPaymModeTable.PaymMode

    Many CzCustAdvanceInvoiceTable records → zero or one CustPaymModeTable record

  • CustTable_FiscalInvoiceAccount_PL → CustTable

    Join on FiscalInvoiceAccount_PL = CustTable.AccountNum

    Many CzCustAdvanceInvoiceTable records → zero or one CustTable record

  • CustTable_FiscalOrderAccount_PL → CustTable

    Join on FiscalOrderAccount_PL = CustTable.AccountNum

    Many CzCustAdvanceInvoiceTable records → zero or one CustTable record

  • CustTable_InvoiceAccount → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many CzCustAdvanceInvoiceTable records → exactly one CustTable record

  • CustTable_OrderAccount → CustTable

    Join on OrderAccount = CustTable.AccountNum

    Many CzCustAdvanceInvoiceTable records → exactly one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CzCustAdvanceInvoiceTable records → zero or one DimensionAttributeValueSet record

  • LanguageTable → LanguageTable

    Join on LanguageTable.LabelFile = 1, LanguageId = LanguageTable.LanguageId

    Many CzCustAdvanceInvoiceTable records → exactly one LanguageTable record

  • NumberSequenceGroup → NumberSequenceGroup

    Join on NumberSequenceGroup = NumberSequenceGroup.numberSequenceGroupId

    Many CzCustAdvanceInvoiceTable records → zero or one NumberSequenceGroup record

  • PaymentSched → PaymSched

    Join on PaymentSched = PaymSched.Name

    Many CzCustAdvanceInvoiceTable records → zero or one PaymSched record

  • PaymTerm → PaymTerm

    Join on Payment = PaymTerm.PaymTermId

    Many CzCustAdvanceInvoiceTable records → zero or one PaymTerm record

  • PlFiscalPrinterTable → PlFiscalPrinterTable

    Join on FiscalPrinterCode_PL = PlFiscalPrinterTable.FiscalPrinterCode

    Many CzCustAdvanceInvoiceTable records → exactly one PlFiscalPrinterTable record

  • PostalAddress → LogisticsPostalAddress

    Join on PostalAddress = LogisticsPostalAddress.RecId

    Many CzCustAdvanceInvoiceTable records → zero or one LogisticsPostalAddress record

  • SalesParmTable → SalesParmTable

    Join on SalesId = SalesParmTable.SalesId

    Many CzCustAdvanceInvoiceTable records → zero or one SalesParmTable record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many CzCustAdvanceInvoiceTable records → zero or one SalesTable record

  • WorkerSalesTaker_FK → HcmWorker

    Join on WorkerSalesTaker = HcmWorker.RecId

    Many CzCustAdvanceInvoiceTable records → zero or one HcmWorker record

  • InvoiceId → CzCustAdvanceInvoiceTable

    Join on InvoiceId = CzCustAdvanceInvoiceTable.InvoiceId

    Zero or one CzCustAdvanceInvoiceTable record → zero or one CzCustAdvanceInvoiceTable record

  • RetailStoreTable → RetailStoreTable

    Join on RetailStoreId = RetailStoreTable.StoreNumber

    Many CzCustAdvanceInvoiceTable records → zero or one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on RetailTerminalId = RetailTerminalTable.terminalId

    Many CzCustAdvanceInvoiceTable records → zero or one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on RetailStoreId = RetailTransactionTable.store, RetailTerminalId = RetailTransactionTable.terminal, RetailTransactionId = RetailTransactionTable.transactionId

    Zero or one CzCustAdvanceInvoiceTable record → exactly one RetailTransactionTable record

Get this data out

Tables are not exposed directly. These public entities read from CzCustAdvanceInvoiceTable; use one of them in Power BI, Power Platform or a data management project.

Need help with CzCustAdvanceInvoiceTable in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk