Table
CustPrepaymentInvoiceTable
Holds the header of a customer prepayment invoice. It stores the customer, sales order, dates, currency, payment terms, status and type, and the amounts invoiced, received and remaining. Lines are in CustPrepaymentInvoiceLine. No key is listed in the metadata.
- Table name
CustPrepaymentInvoiceTable- Module
Cross-module and platform- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (51)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CategoryIdSales category of the prepayment. It points to a category record. | Int64SalesCategory | No | EcoResCategory.RecId | None |
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 | |
CurrencyCodeCurrency code of the invoice. It points to the currency table. | String (3)CustCurrencyCode | Yes | Currency.CurrencyCode | None |
CustGroupCustomer group of the customer. It points to a customer group. | StringCustGroupId | No | CustGroup.CustGroup | None |
CustInvoiceJourSystem record ID of a related customer invoice journal record.low confidence | Int64RefRecId | No | None | |
CustPostingProfileCustomer posting profile used for the invoice. | StringCustPostingProfile | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionSet of financial dimension values for the invoice. It points to a dimension code set. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DeliveryDateShip date of the order. | DateSalesShippingDate | No | None | |
DocumentDateDate shown on the document. | DateDocumentDate | No | None | |
DueDateDate by which payment is due. | DateDueDate | No | None | |
EstablishmentEstablishment within the company that applies to the document. It points to an operating unit. | Int64EstablishmentRefRecId | No | OMOperatingUnit.RecId | None |
ExchRateExchange rate used for the invoice. | RealExchRate | No | None | |
ExchRateSecondSecondary exchange rate used for the invoice. | RealExchrateSecondary | No | None | |
FinTagFinancial tag on the invoice. It points to a financial tag. | Int64FinTagRecId | No | FinTag.RecId | None |
FixedExchRateFixed exchange rate used for the sales order. | RealSalesFixedExchRate | No | None | |
FreeInvoiceRefRecIdSystem record ID of a related free-text customer invoice.low confidence | Int64CustInvoiceTableRefRecId | No | None | |
InvoiceAccountCustomer account that receives the invoice. It points to a customer. | String (20)CustInvoiceAccount | Yes | CustTable.AccountNum | None |
InvoiceAmountTotal amount of the prepayment invoice. The currency is not stated in the metadata. | RealAmountCur | No | None | |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceIdIdentifier of the prepayment invoice. | String (50)CustPrepaymentInvoiceId | No | None | |
LanguageIdLanguage code used for the customer. | String (7)CustLanguageId | Yes | None | |
LogShort log text, up to 255 characters. | String (255)LogText | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NameName of the customer. | String (160)CustName | No | None | |
NumberSequenceGroupNumber sequence group used for the invoice. | StringNumberSequenceGroupId | No | None | |
OneTimeCustomerYes/No choice. It shows whether the customer is a one-time customer. | EnumOneTimeCustomerNoYes (enum) | No | None | |
OrderAccountCustomer account that placed the order. It points to a customer. | String (20)CustAccount | Yes | CustTable.AccountNum | None |
OrigCustPrepaymentInvoiceTableSystem record ID of the original prepayment invoice, where one exists.low confidence | Int64RefRecId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentTerms of payment for the invoice. It points to a payment term. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | None |
PaymentSchedPayment schedule for the invoice. It points to a payment schedule. | String (30)PaymSchedId | No | PaymSched.Name | None |
PaymModeMethod of payment for the invoice. | StringCustPaymMode | No | None | |
PaymSpecPayment specification for the invoice. | StringPaymSpec | No | None | |
PostalAddressPostal address of the customer. It points to an address record. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
PostedYes/No choice. It shows whether the invoice is posted. | EnumPostedNoYes (enum) | No | None | |
PostingProfilePosting profile used for the prepayment journal voucher. | StringCustPostingProfile | No | None | |
PrepaymentLevelLevel at which prepayment information is held: None, Header or Line. | EnumCustPrepaymentLevel (enum) | 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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RemainAmountCurAmount still remaining to be applied. The currency is not stated in the metadata. | RealAmountCur | No | None | |
SalesIdNumber of the sales order the prepayment is for. It points to a sales order. | String (20)SalesId | No | SalesTable.SalesId | None |
SettleAmountCurPayment amount received so far. The currency is not stated in the metadata. | RealAmountCur | No | None | |
StatusStatus of the prepayment, such as Open, Received, Settled, Reversed or Canceled. | EnumCustPrepaymentInvoiceStatus (enum) | 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 | |
TypeType of prepayment invoice: Common or Reversal. | EnumPrepaymentInvoiceType (enum) | No | None | |
VatDueDate_WDate of the VAT register entry. | DateVatDueDate_W | No | None | |
VoucherVoucher number of the prepayment invoice. | String (20)CustPrepaymentInvoiceVoucher | No | None |
Indexes (3)
SalesIdIdxSalesId,DataAreaId,PartitionNot unique.
AccountCurrencySalesIdxInvoiceAccount,CurrencyCode,DataAreaId,PartitionNot unique.
InvoiceVoucherIdxSalesId,Voucher,InvoiceId,DataAreaId,PartitionUnique.
Relations (13)
Each relation joins CustPrepaymentInvoiceTable to another table on the fields shown.
EcoResCategory→EcoResCategoryJoin on
CategoryId = EcoResCategory.RecIdMany CustPrepaymentInvoiceTable records → zero or one EcoResCategory record
CustTable_InvoiceAccount→CustTableJoin on
InvoiceAccount = CustTable.AccountNumMany CustPrepaymentInvoiceTable records → exactly one CustTable record
CustTable_OrderAccount→CustTableJoin on
OrderAccount = CustTable.AccountNumMany CustPrepaymentInvoiceTable records → exactly one CustTable record
PaymentSched→PaymSchedJoin on
PaymentSched = PaymSched.NameMany CustPrepaymentInvoiceTable records → zero or one PaymSched record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany CustPrepaymentInvoiceTable records → zero or one PaymTerm record
PostalAddress→LogisticsPostalAddressJoin on
PostalAddress = LogisticsPostalAddress.RecIdMany CustPrepaymentInvoiceTable records → zero or one LogisticsPostalAddress record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany CustPrepaymentInvoiceTable records → exactly one Currency record
CustGroup→CustGroupJoin on
CustGroup = CustGroup.CustGroupMany CustPrepaymentInvoiceTable records → exactly one CustGroup record
CustPrepaymentCustInvoice→CustPrepaymentCustInvoiceJoin on
RecId = CustPrepaymentCustInvoice.CustPrepaymentInvoiceTableMany CustPrepaymentInvoiceTable records → zero or one CustPrepaymentCustInvoice record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdMany CustPrepaymentInvoiceTable records → zero or one SalesTable record
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany CustPrepaymentInvoiceTable records → zero or one FinTag record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany CustPrepaymentInvoiceTable records → zero or one DimensionAttributeValueSet record
OMOperatingUnit→OMOperatingUnitJoin on
Establishment = OMOperatingUnit.RecIdMany CustPrepaymentInvoiceTable records → zero or one OMOperatingUnit record
Get this data out
No public entity reads from CustPrepaymentInvoiceTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustPrepaymentInvoiceTable in a report, an integration or a migration? Talk to Dr Dynamics.