Table

PurchPrepayTable

Prepayment

Holds the prepayment set up for a purchase order. Each purchase order has at most one row, because PurchTable is the key. It stores the prepayment type, value, limit, currency and category.

Table name
PurchPrepayTable
Module
Accounts payable
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
None
Replacement key
PurchTableIdx
Key fields
PurchTable
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchTablePurchase order that the prepayment belongs to.String (20)
PurchIdBase
NoPurchTable.PurchIdNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCurrency of the prepayment, linked to the currency table.String (3)
VendCurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort text that describes the prepayment.String (50)
PurchPrepayDescription
NoNone
IsDeletedYes/No flag that marks the record as deleted.Enum
VersioningIsDeleted
NoYes (enum)
NoNone
IsModifiedYes/No flag that marks the record as modified.Enum
VersioningIsModified
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrepayApplicationRemainingAmount of the prepayment still left to apply.Real
PurchPrepayAvailable
NoNone
PrepayAvailableAmount of the prepayment still available.Real
PurchPrepayAvailable
NoNone
PrepayCategoryIdLink to the category record used for the prepayment.Int64
PurchPrepayCategoryId
NoEcoResCategory.RecIdNone
PrepayLimitUpper limit set for the prepayment.Real
PurchPrepayLimit
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
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
TypeKind of prepayment. Values are Fixed and Percent.Enum
PurchPrepayType (enum)
NoNone
ValuePrepayment value. It is read together with the type, as a fixed amount or a percentage.Real
PurchPrepayValue
NoNone

Indexes (3)

Relations (3)

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

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many PurchPrepayTable records → zero or one Currency record

  • PrepayCategory → EcoResCategory

    Join on PrepayCategoryId = EcoResCategory.RecId

    Many PurchPrepayTable records → zero or one EcoResCategory record

  • PurchTable → PurchTable

    Join on PurchTable = PurchTable.PurchId

    Zero or one PurchPrepayTable record → exactly one PurchTable record

Get this data out

No public entity reads from PurchPrepayTable. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk