Table

RPayTaxTransOpen

Open NDFL transactions

Holds open NDFL (personal income tax) transactions. Each line has an amount, an employee, a tax authority vendor, a budget revenue code and a settled amount. A closed flag and a source type show where it came from and whether it is finished. It has no defined key.

Table name
RPayTaxTransOpen
Module
Obsolete
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
RPayTax
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountAmount of the transaction.Real
RPayAmount
NoNone
BranchIdID of the separate division. It points to a separate division record.String (20)
BranchId_RU
NoBranches_RU.BranchIdNone
BudgetReceiptClassCodeBudget revenue code. It points to the budget revenue classification.String (26)
PaymentOrderBudgetReceiptClassCode_RU
NoPaymentOrderBudgetReceiptClassTable_RU.PaymentOrderBudgetReceiptClassCodeNone
ClosedYes/No flag that shows whether the transaction is closed.Enum
NoYesId
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EmplIdEmployee. It points to the employee record.String (20)
RHRMEmplId
NoRHRMEmplTable.EmployeeIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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 the source record. It relates to the registry of payment orders.Int64
RefRecId
NoNone
RefTableIdID of the table that the source record belongs to.Integer
RefTableId
NoNone
SettleAmountAmount that has been settled.Real
RPayAmount
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxSourceTypeDetailed origin: payment to tax authority, tax for refund, interim pay-sheet or income tax.Enum
RPayTaxSourceType (enum)
NoNone
TaxVendorTax authority, as a vendor account. It points to a vendor record.String (20)
VendAccount
NoVendTable.AccountNumNone
TransDateDate of the transaction.Date
TransDate
NoNone

Indexes (3)

Relations (8)

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

  • BankPaymentOrderJour_RU → BankPaymentOrderJour_RU

    Join on TaxSourceType = RPayTaxSourceType::TaxPayment, RefTableId = BankPaymentOrderJour_RU.TableId, RefRecId = BankPaymentOrderJour_RU.RecId

    Many RPayTaxTransOpen records → zero or one BankPaymentOrderJour_RU record

  • Branches_RU → Branches_RU

    Join on BranchId = Branches_RU.BranchId

    Many RPayTaxTransOpen records → zero or one Branches_RU record

  • PaymentOrderBudgetReceiptClassTable_RU → PaymentOrderBudgetReceiptClassTable_RU

    Join on BudgetReceiptClassCode = PaymentOrderBudgetReceiptClassTable_RU.PaymentOrderBudgetReceiptClassCode

    Many RPayTaxTransOpen records → zero or one PaymentOrderBudgetReceiptClassTable_RU record

  • RHRMEmplTable → RHRMEmplTable

    Join on EmplId = RHRMEmplTable.EmployeeId

    Many RPayTaxTransOpen records → zero or one RHRMEmplTable record

  • RPaySheetTrans → RPaySheetTrans

    Join on TaxSourceType = RPayTaxSourceType::InterimSheet, RefTableId = RPaySheetTrans.TableId, RefRecId = RPaySheetTrans.RecId

    Many RPayTaxTransOpen records → zero or one RPaySheetTrans record

  • RPayTrans_Tax → RPayTrans

    Join on TaxSourceType = RPayTaxSourceType::IncomeTax, RefTableId = RPayTrans.TableId, RefRecId = RPayTrans.RecId, RPayTrans.TaxRedemption = null

    Many RPayTaxTransOpen records → zero or one RPayTrans record

  • RPayTrans_TaxRefund → RPayTrans

    Join on TaxSourceType = RPayTaxSourceType::TaxRedemption, RefTableId = RPayTrans.TableId, RefRecId = RPayTrans.RecId, RPayTrans.TaxRedemption = 1

    Many RPayTaxTransOpen records → zero or one RPayTrans record

  • VendTable → VendTable

    Join on TaxVendor = VendTable.AccountNum

    Many RPayTaxTransOpen records → zero or one VendTable record

Get this data out

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

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

Email sales@drdynamics.co.uk