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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
IdID of the voucher type. It is the key of the table. | StringLedgerVoucherTypeId_CN | Yes | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntityand 11 more | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultApproverPoints to the worker who approves vouchers of this type by default. | Int64HcmApprover | No | HcmWorker.RecId | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity |
DefaultJournalName of the journal used by default, pointing to the journal name table. | StringLedgerJournalNameId | No | LedgerJournalName.JournalName | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity |
DefaultPreparedByWorkerPoints to the worker who prepares vouchers of this type by default. | Int64HcmWorkerRecId | No | HcmWorker.RecId | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity |
DefaultTypeYes/No flag showing whether this is the default voucher type. | EnumNoYesIdNoYes (enum) | No | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity | |
DescriptionShort description of the voucher type. | String (60)Description | No | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity | |
LedgerPrintLayoutGroupPoints to the print layout group used for this voucher type. | Int64RefRecId | No | LedgerPrintLayoutGroup_CN.RecId | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity |
NumNumber of the voucher type, up to 20 characters. | String (20)LedgerVoucherTypeNumber_CN | Yes | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity | |
NumberSequenceTablePoints to the number sequence code used for this voucher type. | Int64RefRecId | Yes | NumberSequenceTable.RecId | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriorityPriority number of the voucher type. | IntegerVoucherTypePriority_CN | No | LedgerVoucherTypeAccountRestrictionV2EntityLedgerVoucherTypeAccountRestrictionEntityLedgerVoucherTypeEntity | |
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 | |
RestrictionTypeRule on which accounts a voucher must include or exclude, for example in debits or credits. | EnumLedgerVoucherRestrictionType_CN (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 (6)
VoucherTypeIdIdxReplacement keyUnique, alternate key.
NumberSequenceTableIdxNot unique.
LedgerPrintLayoutGroupIdxNot unique.
LedgerJournalNameIdxNot unique.
DefaultAPreparedByWorkerIdxNot unique.
DefaultApproverIdxNot unique.
Relations (5)
Each relation joins LedgerVoucherType_CN to another table on the fields shown.
DefaultApprover→HcmWorkerJoin on
DefaultApprover = HcmWorker.RecIdMany LedgerVoucherType_CN records → zero or one HcmWorker record
DefaultedPreparedBy→HcmWorkerJoin on
DefaultPreparedByWorker = HcmWorker.RecIdMany LedgerVoucherType_CN records → zero or one HcmWorker record
LedgerJournalName→LedgerJournalNameJoin on
DefaultJournal = LedgerJournalName.JournalNameMany LedgerVoucherType_CN records → zero or one LedgerJournalName record
LedgerPrintLayoutGroup_CN→LedgerPrintLayoutGroup_CNJoin on
LedgerPrintLayoutGroup = LedgerPrintLayoutGroup_CN.RecIdMany LedgerVoucherType_CN records → zero or one LedgerPrintLayoutGroup_CN record
NumberSequenceTable→NumberSequenceTableJoin on
NumberSequenceTable = NumberSequenceTable.RecIdMany 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.
LedgerVoucherTypeAccountRestrictionV2Entity· 10 fields from this tableLedgerVoucherTypeAccountRestrictionEntity· 10 fields from this tableLedgerVoucherTypeEntity· 10 fields from this tableAssetJournalV2Entity· 1 field from this tableVendInvoiceRegisterLineV2Entity· 1 field from this tableCustInvoiceJournalLineEntity· 1 field from this tableCustomerPaymentJournalLineEntity· 1 field from this tableExpenseJournalLineEntity· 1 field from this tableVendInvoiceJournalLineEntity· 1 field from this tableVendInvoiceRegisterLineEntity· 1 field from this tableVendorPaymentJournalLineEntity· 1 field from this tableAssetJournalLineEntity· 1 field from this tableAssetLeaseLedgerJournalLineEntity· 1 field from this tableLedgerJournalLineEntity· 1 field from this table
Need help with LedgerVoucherType_CN in a report, an integration or a migration? Talk to Dr Dynamics.