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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BankConstantSymbolThe bank constant symbol linked to the invoice. | StringCzConstantSymbol | No | BankConstantSymbol.ConstantSymbol | CustAdvancedInvoiceEntity |
ContactPersonIdThe contact person for the invoice. | String (20)ContactPersonId | No | ContactPerson.ContactPersonId | CustAdvancedInvoiceEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeThe currency of the invoice. | String (3)CustCurrencyCode | Yes | Currency.CurrencyCode | CustAdvancedInvoiceEntity |
CustGroupThe customer group. | StringCustGroupId | Yes | CustGroup.CustGroup | CustAdvancedInvoiceEntity |
CustPostingProfileThe customer posting profile. | StringCustPostingProfile | No | CustLedger.PostingProfile | CustAdvancedInvoiceEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionThe default financial dimensions of the invoice. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | CustAdvancedInvoiceEntity |
DocumentDateThe date of the document. | DateDocumentDate | No | CustAdvancedInvoiceEntity | |
DueDateThe date on which payment is due. | DateDueDate | No | CustAdvancedInvoiceEntity | |
ExchRateThe exchange rate of the invoice. | RealExchRate | No | CustAdvancedInvoiceEntity | |
ExchrateSecondThe secondary exchange rate. | RealExchrateSecondary | No | CustAdvancedInvoiceEntity | |
FiscalDocDate_PLThe date of the fiscal document, used for Poland. | DatePlFiscalDocDate | No | CustAdvancedInvoiceEntity | |
FiscalDocState_PLThe status of the sales document, such as invoice or printed fiscal document, used for Poland. | EnumPlFiscalDocState (enum) | No | CustAdvancedInvoiceEntity | |
FiscalInvoiceAccount_PLCustomer account for the invoice, used for Poland. | String (20)CustAccount | No | CustTable.AccountNum | CustAdvancedInvoiceEntity |
FiscalOrderAccount_PLCustomer account for the order, used for Poland. | String (20)CustAccount | No | CustTable.AccountNum | CustAdvancedInvoiceEntity |
FiscalPrinterCode_PLThe fiscal printer, used for Poland. | String (20)PlFiscalPrinterCode | No | PlFiscalPrinterTable.FiscalPrinterCode | CustAdvancedInvoiceEntity |
FreeInvoiceRefRecIdThe customer free text invoice linked to this advance invoice. | Int64CustInvoiceTableRefRecId | No | CustInvoiceTable.RecId | None |
HeadIdA unique GUID that identifies the invoice record. | GuidSysGuid | No | CustAdvancedInvoiceEntity | |
InvoiceAccountThe customer account that is invoiced. | String (20)CustInvoiceAccount | Yes | CustTable.AccountNum | CustAdvancedInvoiceEntity |
InvoiceAmountThe total amount of the invoice. | RealAmountCur | No | CustAdvancedInvoiceEntity | |
InvoiceDateThe invoice date. | DateTransDate | Yes | CustAdvancedInvoiceEntity | |
InvoiceIdThe advance invoice number. | String (50)CzCustAdvanceInvoiceId | No | CustAdvancedInvoiceEntity | |
LanguageIdThe language of the invoice. | String (7)CustLanguageId | Yes | LanguageTable.LanguageId | CustAdvancedInvoiceEntity |
ListcodeThe list code, such as EU trade or triangular trade. | EnumListcodeIdListcode (enum) | No | CustAdvancedInvoiceEntity | |
LogA text log for the invoice. | String (255)LogText | No | None | |
NameThe customer name. | String (160)CustName | No | CustAdvancedInvoiceEntity | |
NumberSequenceGroupThe number sequence group used for the invoice. | StringNumberSequenceGroupId | No | NumberSequenceGroup.numberSequenceGroupId | CustAdvancedInvoiceEntity |
OneTimeCustomerShows whether the customer is a one-time customer. | EnumOneTimeCustomerNoYes (enum) | No | CustAdvancedInvoiceEntity | |
OrderAccountThe customer account of the order. | String (20)CustAccount | Yes | CustTable.AccountNum | CustAdvancedInvoiceEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentThe payment terms. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | CustAdvancedInvoiceEntity |
PaymentSchedThe payment schedule. | String (30)PaymSchedId | No | PaymSched.Name | CustAdvancedInvoiceEntity |
PaymModeThe method of payment. | StringCustPaymMode | No | CustPaymModeTable.PaymMode | CustAdvancedInvoiceEntity |
PaymSpecThe payment specification for the method of payment. | StringPaymSpec | No | CustPaymModeSpec.Specification | CustAdvancedInvoiceEntity |
PostalAddressThe postal address of the customer. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | CustAdvancedInvoiceEntity |
PostedShows whether the invoice has been posted. | EnumPostedNoYes (enum) | No | CustAdvancedInvoiceEntity | |
PostingProfileThe posting profile used with the prepayment journal voucher. | StringCustPostingProfile | No | CustLedger.PostingProfile | CustAdvancedInvoiceEntity |
PostVATShows whether VAT is posted. | EnumCzPostVATNoYes (enum) | No | CustAdvancedInvoiceEntity | |
PostVATDateThe date until which VAT is posted. | DateCzPostVATDate | No | CustAdvancedInvoiceEntity | |
QRCodePurpose not clear from the metadata.low confidence | String (1000)FreeText1000 | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | CustAdvancedInvoiceEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RetailOrderReferenceIdThe order reference from the sales channel. | String (50)RetailOrderChannelReferenceId | No | CustAdvancedInvoiceEntity | |
RetailStoreIdThe store number of the retail store. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | CustAdvancedInvoiceEntity |
RetailTerminalIdThe register number of the POS terminal. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | CustAdvancedInvoiceEntity |
RetailTransactionIdThe number of the retail transaction. | String (44)RetailTransactionId | No | CustAdvancedInvoiceEntity | |
SalesIdThe sales order that the advance invoice relates to. | String (20)SalesId | No | SalesTable.SalesId | CustAdvancedInvoiceEntityCustAdvancedInvoiceItemsEntity |
StatusThe invoice status: open, partially paid or closed. | EnumCzAdvanceInvoiceStatus (enum) | No | CustAdvancedInvoiceEntity | |
SubmissionUUIDThe unique invoice ID given by the tax authorities. | String (50)UUID | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxDocumentCreateShows whether a tax document is created. | EnumCzTaxDocumentCreateDocNoYes (enum) | No | CustAdvancedInvoiceEntity | |
TriangulationShows whether the transaction is a euro triangulation. | EnumEUROTriangulationNoYes (enum) | No | CustAdvancedInvoiceEntity | |
TypeThe type of advance invoice: common, credit note, reversal or cancellation. | EnumAdvanceInvoiceType_W (enum) | No | None | |
VatDueDate_WThe date of the VAT register entry. | DateVatDueDate_W | No | CustAdvancedInvoiceEntity | |
VoucherThe voucher number of the advance invoice. | String (20)CustAdvanceInvoiceVoucher_W | No | CustAdvancedInvoiceEntity | |
WorkerSalesTakerThe worker who is the recipient, taken from the worker record. | Int64SalesTaker | No | HcmWorker.RecId | CustAdvancedInvoiceEntity |
Indexes (5)
ReferencesIdxSalesId,FreeInvoiceRefRecId,CustPostingProfileNot unique.
InvoiceAccountIdxNot unique.
OrderAccountIdxNot unique.
InvoiceIdIdxInvoiceId,InvoiceDate,Voucher,NumberSequenceGroupNot unique.
RetailOrderReferenceIdxSalesId,RetailStoreId,RetailTerminalId,RetailTransactionIdNot unique.
Relations (28)
Each relation joins CzCustAdvanceInvoiceTable to another table on the fields shown.
BankConstantSymbol→BankConstantSymbolJoin on
BankConstantSymbol = BankConstantSymbol.ConstantSymbolMany CzCustAdvanceInvoiceTable records → zero or one BankConstantSymbol record
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany CzCustAdvanceInvoiceTable records → zero or one ContactPerson record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany CzCustAdvanceInvoiceTable records → exactly one Currency record
CustAdvanceInvoiceTable_CZ→CzCustAdvanceInvoiceTableJoin on
RecId = CzCustAdvanceInvoiceTable.RecIdCardinality not set in the metadata.
CustGroup→CustGroupJoin on
CustGroup = CustGroup.CustGroupMany CzCustAdvanceInvoiceTable records → exactly one CustGroup record
CustInvoiceTable→CustInvoiceTableJoin on
FreeInvoiceRefRecId = CustInvoiceTable.RecIdMany CzCustAdvanceInvoiceTable records → zero or one CustInvoiceTable record
CustLedger_CustPostingProfile→CustLedgerJoin on
CustPostingProfile = CustLedger.PostingProfileMany CzCustAdvanceInvoiceTable records → zero or one CustLedger record
CustLedger_PostingProfile→CustLedgerJoin on
PostingProfile = CustLedger.PostingProfileMany CzCustAdvanceInvoiceTable records → zero or one CustLedger record
CustPaymModeSpec→CustPaymModeSpecJoin on
PaymMode = CustPaymModeSpec.PaymMode,PaymSpec = CustPaymModeSpec.SpecificationMany CzCustAdvanceInvoiceTable records → zero or one CustPaymModeSpec record
CustPaymModeTable→CustPaymModeTableJoin on
PaymMode = CustPaymModeTable.PaymModeMany CzCustAdvanceInvoiceTable records → zero or one CustPaymModeTable record
CustTable_FiscalInvoiceAccount_PL→CustTableJoin on
FiscalInvoiceAccount_PL = CustTable.AccountNumMany CzCustAdvanceInvoiceTable records → zero or one CustTable record
CustTable_FiscalOrderAccount_PL→CustTableJoin on
FiscalOrderAccount_PL = CustTable.AccountNumMany CzCustAdvanceInvoiceTable records → zero or one CustTable record
CustTable_InvoiceAccount→CustTableJoin on
InvoiceAccount = CustTable.AccountNumMany CzCustAdvanceInvoiceTable records → exactly one CustTable record
CustTable_OrderAccount→CustTableJoin on
OrderAccount = CustTable.AccountNumMany CzCustAdvanceInvoiceTable records → exactly one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany CzCustAdvanceInvoiceTable records → zero or one DimensionAttributeValueSet record
LanguageTable→LanguageTableJoin on
LanguageTable.LabelFile = 1,LanguageId = LanguageTable.LanguageIdMany CzCustAdvanceInvoiceTable records → exactly one LanguageTable record
NumberSequenceGroup→NumberSequenceGroupJoin on
NumberSequenceGroup = NumberSequenceGroup.numberSequenceGroupIdMany CzCustAdvanceInvoiceTable records → zero or one NumberSequenceGroup record
PaymentSched→PaymSchedJoin on
PaymentSched = PaymSched.NameMany CzCustAdvanceInvoiceTable records → zero or one PaymSched record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany CzCustAdvanceInvoiceTable records → zero or one PaymTerm record
PlFiscalPrinterTable→PlFiscalPrinterTableJoin on
FiscalPrinterCode_PL = PlFiscalPrinterTable.FiscalPrinterCodeMany CzCustAdvanceInvoiceTable records → exactly one PlFiscalPrinterTable record
PostalAddress→LogisticsPostalAddressJoin on
PostalAddress = LogisticsPostalAddress.RecIdMany CzCustAdvanceInvoiceTable records → zero or one LogisticsPostalAddress record
SalesParmTable→SalesParmTableJoin on
SalesId = SalesParmTable.SalesIdMany CzCustAdvanceInvoiceTable records → zero or one SalesParmTable record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdMany CzCustAdvanceInvoiceTable records → zero or one SalesTable record
WorkerSalesTaker_FK→HcmWorkerJoin on
WorkerSalesTaker = HcmWorker.RecIdMany CzCustAdvanceInvoiceTable records → zero or one HcmWorker record
InvoiceId→CzCustAdvanceInvoiceTableJoin on
InvoiceId = CzCustAdvanceInvoiceTable.InvoiceIdZero or one CzCustAdvanceInvoiceTable record → zero or one CzCustAdvanceInvoiceTable record
RetailStoreTable→RetailStoreTableJoin on
RetailStoreId = RetailStoreTable.StoreNumberMany CzCustAdvanceInvoiceTable records → zero or one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
RetailTerminalId = RetailTerminalTable.terminalIdMany CzCustAdvanceInvoiceTable records → zero or one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
RetailStoreId = RetailTransactionTable.store,RetailTerminalId = RetailTransactionTable.terminal,RetailTransactionId = RetailTransactionTable.transactionIdZero 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.
CustAdvancedInvoiceEntity· 47 fields from this tableCustAdvancedInvoiceItemsEntity· 1 field from this table
Need help with CzCustAdvanceInvoiceTable in a report, an integration or a migration? Talk to Dr Dynamics.