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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchPrepayTableLink to the prepayment record that this history row belongs to. | Int64RefRecId | Yes | PurchPrepayTable.RecId | None |
ValidToDate and time until which this version is valid. | UtcDateTimeValidToDateTime | Yes | None | |
ValidFromDate and time from which this version is valid. | UtcDateTimeValidFromDateTime | Yes | None | |
CurrencyCurrency of the prepayment, linked to the currency table. | String (3)VendCurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort text that describes the prepayment. | String (50)PurchPrepayDescription | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrepayApplicationRemainingAmount of the prepayment still left to apply. | RealPurchPrepayAvailable | No | None | |
PrepayAvailableAmount of the prepayment still available. | RealPurchPrepayAvailable | No | None | |
PrepayCategoryIdLink to the category record used for the prepayment. | Int64PurchPrepayCategoryId | No | EcoResCategory.RecId | None |
PrepayLimitUpper limit set for the prepayment. | RealPurchPrepayLimit | No | None | |
PurchTablePurchase order that the prepayment belongs to. | String (20)PurchIdBase | No | PurchTable.PurchId | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TypeKind of prepayment. Values are Fixed and Percent. | EnumPurchPrepayType (enum) | No | None | |
ValuePrepayment value. It is read together with the type, as a fixed amount or a percentage. | RealPurchPrepayValue | No | None |
Indexes (2)
PurchTableIdxPurchTable,ValidTo,ValidFromUnique, alternate key.
PurchPrepayTableIdxReplacement keyPurchPrepayTable,ValidTo,ValidFromUnique, alternate key.
Relations (4)
Each relation joins PurchPrepayTableHistory to another table on the fields shown.
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany PurchPrepayTableHistory records → zero or one Currency record
PrepayCategory→EcoResCategoryJoin on
PrepayCategoryId = EcoResCategory.RecIdMany PurchPrepayTableHistory records → zero or one EcoResCategory record
PurchPrepayTable→PurchPrepayTableJoin on
PurchPrepayTable = PurchPrepayTable.RecIdMany PurchPrepayTableHistory records → exactly one PurchPrepayTable record
PurchTable→PurchTableJoin on
PurchTable = PurchTable.PurchIdMany 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.