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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNumAccount number of the vendor for this item.String (20)
CustVendAC
NoVendTable.AccountNumNone
AccountTypeType of account, such as ledger, customer, vendor or bank.Enum
LedgerJournalACType (enum)
NoNone
AmountCurToPayAmount to pay, in the transaction currency.Real
AmountCur
NoNone
CashDiscDateLast date on which the cash discount can be taken.Date
CashDiscdate
NoNone
CashDiscToTakeCash discount amount that can be taken.Real
CashDiscAmount
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency of the payment item.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeletedYes/no flag showing whether the item is marked as deleted.Enum
NoYes (enum)
NoNone
DueDateDate on which the payment is due.Date
DueDate
NoNone
InvoiceInvoice number the payment item relates to.String (50)
InvoiceId
NoNone
IsInvalidYes/no flag showing whether the item is marked as invalid.Enum
NoYes (enum)
NoNone
IsOnHoldYes/no flag showing whether the item is on hold.Enum
NoYes (enum)
NoNone
JournalNumNumber of the ledger journal batch linked to the item.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OriginalHashHash text of the item, kept as a 64-character string. Its exact use is not stated.low confidenceString (64)
PaymentItemHash
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymDatePayment date of the item.Date
TransDate
NoNone
PaymentPlanTypeType of payment plan. The only value given is vendor outgoing payment.Enum
PaymentPlanType (enum)
NoNone
PaymentProcessRefRecIdSystem record ID of the payment process this item belongs to.Int64
RefRecId
NoPaymentProcess.RecIdNone
PaymentStatusPayment status, such as sent, received, approved or rejected.Enum
CustVendPaymStatus (enum)
NoNone
PaymModeMethod of payment used for the vendor payment.String
PaymMode
NoVendPaymModeTable.PaymModeNone
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
RefRecIdSystem record ID of another record that this item refers to.Int64
RefRecId
NoNone
RefTableIdID of the table that the reference record ID points to.Integer
RefTableId
NoNone
StatusStatus of the item, from new through approval to posted or transferred.Enum
PaymentItemStatus (enum)
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

Indexes (1)

Relations (5)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many PaymentItem records → exactly one Currency record

  • PaymentProcess → PaymentProcess

    Join on PaymentProcessRefRecId = PaymentProcess.RecId

    Many PaymentItem records → exactly one PaymentProcess record

  • VendPaymMode → VendPaymModeTable

    Join on PaymMode = VendPaymModeTable.PaymMode

    Many PaymentItem records → exactly one VendPaymModeTable record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Many PaymentItem records → exactly one LedgerJournalTable record

  • VendAccount → VendTable

    Join on AccountNum = VendTable.AccountNum

    Many 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.

Email sales@drdynamics.co.uk