Table
PaymentItem
Holds individual payment items, each with an account, amount, due date and payment method. Each item is tied to a payment process and may link to a vendor, currency and ledger journal. It has a status and flags such as deleted, invalid and on hold.
- Table name
PaymentItem- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (31)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountNumAccount number of the vendor for this item. | String (20)CustVendAC | No | VendTable.AccountNum | None |
AccountTypeType of account, such as ledger, customer, vendor or bank. | EnumLedgerJournalACType (enum) | No | None | |
AmountCurToPayAmount to pay, in the transaction currency. | RealAmountCur | No | None | |
CashDiscDateLast date on which the cash discount can be taken. | DateCashDiscdate | No | None | |
CashDiscToTakeCash discount amount that can be taken. | RealCashDiscAmount | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency of the payment item. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeletedYes/no flag showing whether the item is marked as deleted. | EnumNoYes (enum) | No | None | |
DueDateDate on which the payment is due. | DateDueDate | No | None | |
InvoiceInvoice number the payment item relates to. | String (50)InvoiceId | No | None | |
IsInvalidYes/no flag showing whether the item is marked as invalid. | EnumNoYes (enum) | No | None | |
IsOnHoldYes/no flag showing whether the item is on hold. | EnumNoYes (enum) | No | None | |
JournalNumNumber of the ledger journal batch linked to the item. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OriginalHashHash text of the item, kept as a 64-character string. Its exact use is not stated.low confidence | String (64)PaymentItemHash | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymDatePayment date of the item. | DateTransDate | No | None | |
PaymentPlanTypeType of payment plan. The only value given is vendor outgoing payment. | EnumPaymentPlanType (enum) | No | None | |
PaymentProcessRefRecIdSystem record ID of the payment process this item belongs to. | Int64RefRecId | No | PaymentProcess.RecId | None |
PaymentStatusPayment status, such as sent, received, approved or rejected. | EnumCustVendPaymStatus (enum) | No | None | |
PaymModeMethod of payment used for the vendor payment. | StringPaymMode | No | VendPaymModeTable.PaymMode | 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 | |
RefRecIdSystem record ID of another record that this item refers to. | Int64RefRecId | No | None | |
RefTableIdID of the table that the reference record ID points to. | IntegerRefTableId | No | None | |
StatusStatus of the item, from new through approval to posted or transferred. | EnumPaymentItemStatus (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
ProcessIndexPaymentProcessRefRecId,DeletedNot unique.
Relations (5)
Each relation joins PaymentItem to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany PaymentItem records → exactly one Currency record
PaymentProcess→PaymentProcessJoin on
PaymentProcessRefRecId = PaymentProcess.RecIdMany PaymentItem records → exactly one PaymentProcess record
VendPaymMode→VendPaymModeTableJoin on
PaymMode = VendPaymModeTable.PaymModeMany PaymentItem records → exactly one VendPaymModeTable record
LedgerJournalTable→LedgerJournalTableJoin on
JournalNum = LedgerJournalTable.JournalNumMany PaymentItem records → exactly one LedgerJournalTable record
VendAccount→VendTableJoin on
AccountNum = VendTable.AccountNumMany PaymentItem records → exactly one VendTable record
Get this data out
No public entity reads from PaymentItem. Its data is only reachable through the application, a custom entity or a database export.
Need help with PaymentItem in a report, an integration or a migration? Talk to Dr Dynamics.