Table
VendPaymSchedHistory
Payment schedule (vendor) history
Keeps the history of vendor payment schedules. Each row is a past version of a VendPaymSched record, with a valid-from and valid-to time. The key is the referenced table ID, record ID and validity times.
- Table name
VendPaymSchedHistory- Module
Bank- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
PaymSched- Primary index
RecId- Replacement key
VendPaymSchedIdx- Key fields
ExtTableId, ExtRecId, ValidTo, ValidFrom- Model
Foundation
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ExtTableIdThe table ID of the record the schedule was attached to. Links to the vendor payment schedule. | IntegerRefTableId | Yes | VendPaymSched.ExtTableId | None |
ExtRecIdThe record ID of the record the schedule was attached to. Links to the vendor payment schedule. | Int64RefRecId | Yes | VendPaymSched.ExtRecId | None |
ValidToThe date and time until which this version was valid. | UtcDateTimeValidToDateTime | Yes | None | |
ValidFromThe date and time from which this version was valid. | UtcDateTimeValidFromDateTime | Yes | None | |
AmountCurThe amount in transaction currency that the schedule covered. | RealAmountCur | No | None | |
CopyPreciselyToInvoiceYes/no flag that says whether the schedule was copied to the invoice as it stood. | EnumNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionA short description of the payment schedule. | String (60)Description | No | None | |
LowestAmountThe minimum amount used in the schedule. | RealAmountCur | No | None | |
NameThe name of the payment schedule that was used. | String (30)VendPaymSchedId | Yes | PaymSched.Name | None |
NotesFree text notes for the schedule. | String (-1)Notes | No | None | |
NumOfPaymentThe number of payments in the schedule. | IntegerPositiveNumber | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentType_ESThe payment means, such as cash, direct debit or credit transfer. Used for Spain. | EnumPaymentType_ES (enum) | No | None | |
PaymSchedByHow the schedule was allocated: total, fixed amount, fixed quantity or specified. | EnumVendPaymSchedByPaymSchedBy (enum) | No | None | |
PeriodUnitThe period unit for the payments: days, months, years or all. | EnumPeriodUnit (enum) | No | None | |
QtyUnitA number of days used as the change value for the period.low confidence | IntegerDays | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxDistributionHow sales tax was spread over the payments. | EnumPaymSchedTaxDistribution (enum) | No | None |
Indexes (1)
VendPaymSchedIdxReplacement keyExtTableId,ExtRecId,ValidTo,ValidFromUnique, alternate key.
Relations (3)
Each relation joins VendPaymSchedHistory to another table on the fields shown.
PaymSched→PaymSchedJoin on
Name = PaymSched.NameMany VendPaymSchedHistory records → exactly one PaymSched record
PurchTable→PurchTableJoin on
ExtRecId = PurchTable.RecId,ExtTableId = PurchTable.TableIdMany VendPaymSchedHistory records → zero or one PurchTable record
VendPaymSched→VendPaymSchedJoin on
ExtRecId = VendPaymSched.ExtRecId,ExtTableId = VendPaymSched.ExtTableIdMany VendPaymSchedHistory records → exactly one VendPaymSched record
Get this data out
No public entity reads from VendPaymSchedHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with VendPaymSchedHistory in a report, an integration or a migration? Talk to Dr Dynamics.