Table

LedgerVoucherType_CN

Voucher type

Holds voucher types used for China, each identified by a voucher type ID. A record can set defaults such as the journal name, the preparer and the approver. It also has a number sequence, a print layout group, a priority and a restriction type.

Table name
LedgerVoucherType_CN
Module
General ledger
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasic
Primary index
RecId
Replacement key
VoucherTypeIdIdx
Key fields
Id
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
IdID of the voucher type. It is the key of the table.String
LedgerVoucherTypeId_CN
YesLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntityand 11 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultApproverPoints to the worker who approves vouchers of this type by default.Int64
HcmApprover
NoHcmWorker.RecIdLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
DefaultJournalName of the journal used by default, pointing to the journal name table.String
LedgerJournalNameId
NoLedgerJournalName.JournalNameLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
DefaultPreparedByWorkerPoints to the worker who prepares vouchers of this type by default.Int64
HcmWorkerRecId
NoHcmWorker.RecIdLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
DefaultTypeYes/No flag showing whether this is the default voucher type.Enum
NoYesId
NoYes (enum)
NoLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
DescriptionShort description of the voucher type.String (60)
Description
NoLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
LedgerPrintLayoutGroupPoints to the print layout group used for this voucher type.Int64
RefRecId
NoLedgerPrintLayoutGroup_CN.RecIdLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
NumNumber of the voucher type, up to 20 characters.String (20)
LedgerVoucherTypeNumber_CN
YesLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
NumberSequenceTablePoints to the number sequence code used for this voucher type.Int64
RefRecId
YesNumberSequenceTable.RecIdLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriorityPriority number of the voucher type.Integer
VoucherTypePriority_CN
NoLedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity
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
RestrictionTypeRule on which accounts a voucher must include or exclude, for example in debits or credits.Enum
LedgerVoucherRestrictionType_CN (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 (6)

Relations (5)

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

  • DefaultApprover → HcmWorker

    Join on DefaultApprover = HcmWorker.RecId

    Many LedgerVoucherType_CN records → zero or one HcmWorker record

  • DefaultedPreparedBy → HcmWorker

    Join on DefaultPreparedByWorker = HcmWorker.RecId

    Many LedgerVoucherType_CN records → zero or one HcmWorker record

  • LedgerJournalName → LedgerJournalName

    Join on DefaultJournal = LedgerJournalName.JournalName

    Many LedgerVoucherType_CN records → zero or one LedgerJournalName record

  • LedgerPrintLayoutGroup_CN → LedgerPrintLayoutGroup_CN

    Join on LedgerPrintLayoutGroup = LedgerPrintLayoutGroup_CN.RecId

    Many LedgerVoucherType_CN records → zero or one LedgerPrintLayoutGroup_CN record

  • NumberSequenceTable → NumberSequenceTable

    Join on NumberSequenceTable = NumberSequenceTable.RecId

    Many LedgerVoucherType_CN records → exactly one NumberSequenceTable record

Get this data out

Tables are not exposed directly. These public entities read from LedgerVoucherType_CN; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk