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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CategoryIdSales category of the prepayment. It points to a category record.Int64
SalesCategory
NoEcoResCategory.RecIdNone
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
CurrencyCodeCurrency code of the invoice. It points to the currency table.String (3)
CustCurrencyCode
YesCurrency.CurrencyCodeNone
CustGroupCustomer group of the customer. It points to a customer group.String
CustGroupId
NoCustGroup.CustGroupNone
CustInvoiceJourSystem record ID of a related customer invoice journal record.low confidenceInt64
RefRecId
NoNone
CustPostingProfileCustomer posting profile used for the invoice.String
CustPostingProfile
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionSet of financial dimension values for the invoice. It points to a dimension code set.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DeliveryDateShip date of the order.Date
SalesShippingDate
NoNone
DocumentDateDate shown on the document.Date
DocumentDate
NoNone
DueDateDate by which payment is due.Date
DueDate
NoNone
EstablishmentEstablishment within the company that applies to the document. It points to an operating unit.Int64
EstablishmentRefRecId
NoOMOperatingUnit.RecIdNone
ExchRateExchange rate used for the invoice.Real
ExchRate
NoNone
ExchRateSecondSecondary exchange rate used for the invoice.Real
ExchrateSecondary
NoNone
FinTagFinancial tag on the invoice. It points to a financial tag.Int64
FinTagRecId
NoFinTag.RecIdNone
FixedExchRateFixed exchange rate used for the sales order.Real
SalesFixedExchRate
NoNone
FreeInvoiceRefRecIdSystem record ID of a related free-text customer invoice.low confidenceInt64
CustInvoiceTableRefRecId
NoNone
InvoiceAccountCustomer account that receives the invoice. It points to a customer.String (20)
CustInvoiceAccount
YesCustTable.AccountNumNone
InvoiceAmountTotal amount of the prepayment invoice. The currency is not stated in the metadata.Real
AmountCur
NoNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceIdIdentifier of the prepayment invoice.String (50)
CustPrepaymentInvoiceId
NoNone
LanguageIdLanguage code used for the customer.String (7)
CustLanguageId
YesNone
LogShort log text, up to 255 characters.String (255)
LogText
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the customer.String (160)
CustName
NoNone
NumberSequenceGroupNumber sequence group used for the invoice.String
NumberSequenceGroupId
NoNone
OneTimeCustomerYes/No choice. It shows whether the customer is a one-time customer.Enum
OneTimeCustomer
NoYes (enum)
NoNone
OrderAccountCustomer account that placed the order. It points to a customer.String (20)
CustAccount
YesCustTable.AccountNumNone
OrigCustPrepaymentInvoiceTableSystem record ID of the original prepayment invoice, where one exists.low confidenceInt64
RefRecId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentTerms of payment for the invoice. It points to a payment term.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdNone
PaymentSchedPayment schedule for the invoice. It points to a payment schedule.String (30)
PaymSchedId
NoPaymSched.NameNone
PaymModeMethod of payment for the invoice.String
CustPaymMode
NoNone
PaymSpecPayment specification for the invoice.String
PaymSpec
NoNone
PostalAddressPostal address of the customer. It points to an address record.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
PostedYes/No choice. It shows whether the invoice is posted.Enum
Posted
NoYes (enum)
NoNone
PostingProfilePosting profile used for the prepayment journal voucher.String
CustPostingProfile
NoNone
PrepaymentLevelLevel at which prepayment information is held: None, Header or Line.Enum
CustPrepaymentLevel (enum)
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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RemainAmountCurAmount still remaining to be applied. The currency is not stated in the metadata.Real
AmountCur
NoNone
SalesIdNumber of the sales order the prepayment is for. It points to a sales order.String (20)
SalesId
NoSalesTable.SalesIdNone
SettleAmountCurPayment amount received so far. The currency is not stated in the metadata.Real
AmountCur
NoNone
StatusStatus of the prepayment, such as Open, Received, Settled, Reversed or Canceled.Enum
CustPrepaymentInvoiceStatus (enum)
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
TypeType of prepayment invoice: Common or Reversal.Enum
PrepaymentInvoiceType (enum)
NoNone
VatDueDate_WDate of the VAT register entry.Date
VatDueDate_W
NoNone
VoucherVoucher number of the prepayment invoice.String (20)
CustPrepaymentInvoiceVoucher
NoNone

Indexes (3)

Relations (13)

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

  • EcoResCategory → EcoResCategory

    Join on CategoryId = EcoResCategory.RecId

    Many CustPrepaymentInvoiceTable records → zero or one EcoResCategory record

  • CustTable_InvoiceAccount → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many CustPrepaymentInvoiceTable records → exactly one CustTable record

  • CustTable_OrderAccount → CustTable

    Join on OrderAccount = CustTable.AccountNum

    Many CustPrepaymentInvoiceTable records → exactly one CustTable record

  • PaymentSched → PaymSched

    Join on PaymentSched = PaymSched.Name

    Many CustPrepaymentInvoiceTable records → zero or one PaymSched record

  • PaymTerm → PaymTerm

    Join on Payment = PaymTerm.PaymTermId

    Many CustPrepaymentInvoiceTable records → zero or one PaymTerm record

  • PostalAddress → LogisticsPostalAddress

    Join on PostalAddress = LogisticsPostalAddress.RecId

    Many CustPrepaymentInvoiceTable records → zero or one LogisticsPostalAddress record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CustPrepaymentInvoiceTable records → exactly one Currency record

  • CustGroup → CustGroup

    Join on CustGroup = CustGroup.CustGroup

    Many CustPrepaymentInvoiceTable records → exactly one CustGroup record

  • CustPrepaymentCustInvoice → CustPrepaymentCustInvoice

    Join on RecId = CustPrepaymentCustInvoice.CustPrepaymentInvoiceTable

    Many CustPrepaymentInvoiceTable records → zero or one CustPrepaymentCustInvoice record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many CustPrepaymentInvoiceTable records → zero or one SalesTable record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many CustPrepaymentInvoiceTable records → zero or one FinTag record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CustPrepaymentInvoiceTable records → zero or one DimensionAttributeValueSet record

  • OMOperatingUnit → OMOperatingUnit

    Join on Establishment = OMOperatingUnit.RecId

    Many 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.

Email sales@drdynamics.co.uk