Table

PurchPrepayTableHistory

Prepayment history

Keeps earlier versions of the prepayment for a purchase order. Each row has a validity period (ValidFrom and ValidTo) and links to the prepayment record and the purchase order. It holds the same details as the prepayment: type, value, limit, currency and category.

Table name
PurchPrepayTableHistory
Module
Accounts payable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
None
Replacement key
PurchPrepayTableIdx
Key fields
PurchPrepayTable, ValidTo, ValidFrom
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchPrepayTableLink to the prepayment record that this history row belongs to.Int64
RefRecId
YesPurchPrepayTable.RecIdNone
ValidToDate and time until which this version is valid.UtcDateTime
ValidToDateTime
YesNone
ValidFromDate and time from which this version is valid.UtcDateTime
ValidFromDateTime
YesNone
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
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
PurchTablePurchase order that the prepayment belongs to.String (20)
PurchIdBase
NoPurchTable.PurchIdNone
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
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 (2)

Relations (4)

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

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many PurchPrepayTableHistory records → zero or one Currency record

  • PrepayCategory → EcoResCategory

    Join on PrepayCategoryId = EcoResCategory.RecId

    Many PurchPrepayTableHistory records → zero or one EcoResCategory record

  • PurchPrepayTable → PurchPrepayTable

    Join on PurchPrepayTable = PurchPrepayTable.RecId

    Many PurchPrepayTableHistory records → exactly one PurchPrepayTable record

  • PurchTable → PurchTable

    Join on PurchTable = PurchTable.PurchId

    Many PurchPrepayTableHistory records → zero or one PurchTable record

Get this data out

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

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

Email sales@drdynamics.co.uk