Data entity
LedgerVoucherTypeAccountRestrictionV2Entity
Version 2 of the voucher type account restrictions, used for China. It links each voucher type to restriction type, account type, account code and ledger account. It also carries voucher type details such as priority, print layout group and number sequence code.
- Entity name
LedgerVoucherTypeAccountRestrictionV2Entity- Public entity name
VoucherTypeAccountRestrictionV2- OData collection
VoucherTypeAccountRestrictionsV2- Category
Not set- Module
General ledger- Read-only
No- Data management enabled
Yes- Configuration key
LedgerBasic- Keys
VoucherType, RestrictionType, NotNullableLedgerDimensionDisplayValue, AccountType, AccountCode, AccountRelation- Staging table
LedgerVoucherTypeAccountRestrictionV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/VoucherTypeAccountRestrictionsV2- Dataverse virtual table
mserp_ledgervouchertypeaccountrestrictionv2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
LedgerVoucherType_CN· rootDefaultApprover(tableHcmWorker) · OuterJoin toLedgerVoucherType_CN· read-onlyDefaultedPreparedBy(tableHcmWorker) · OuterJoin toLedgerVoucherType_CN· read-onlyLedgerPrintLayoutGroup_CN· OuterJoin toLedgerVoucherType_CN· read-onlyLedgerAccountRestrictionV2_CN· OuterJoin toLedgerVoucherType_CNLedgerDimensionDAVC(tableDimensionCombinationEntity) · OuterJoin toLedgerAccountRestrictionV2_CN· read-onlyNumberSequenceTable· InnerJoin toLedgerVoucherType_CN· read-only
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DefaultApproverRecIdPoints to the worker who approves vouchers of this type by default. | Int64HcmApprover | No | No (private) | HcmWorker.RecId | LedgerVoucherType_CN.DefaultApprover |
JournalNameName of the journal used by default, pointing to the journal name table. | StringLedgerJournalNameId | No | Yes | LedgerJournalName.JournalName | LedgerVoucherType_CN.DefaultJournal |
DefaultPreparedByWorkerRecIdPoints to the worker who prepares vouchers of this type by default. | Int64HcmWorkerRecId | No | No (private) | HcmWorker.RecId | LedgerVoucherType_CN.DefaultPreparedByWorker |
IsDefaultTypeYes/No flag showing whether this is the default voucher type. | EnumNoYesId
| No | Yes | LedgerVoucherType_CN.DefaultType | |
DescriptionShort description of the voucher type. | String (60)Description | No | Yes | LedgerVoucherType_CN.Description | |
VoucherTypeID of the voucher type. It is the key of the table. | StringLedgerVoucherTypeId_CN | Yes | Yes | LedgerVoucherType_CN.Id | |
LedgerPrintLayoutGroupRecIdPoints to the print layout group used for this voucher type. | Int64RefRecId | No | No (private) | LedgerPrintLayoutGroup_CN.RecId | LedgerVoucherType_CN.LedgerPrintLayoutGroup |
VoucherTypeNumberNumber of the voucher type, up to 20 characters. | String (20)LedgerVoucherTypeNumber_CN | Yes | Yes | LedgerVoucherType_CN.Num | |
NumberSequenceTableRecIdPoints to the number sequence code used for this voucher type. | Int64RefRecId | Yes | No (private) | NumberSequenceTable.RecId | LedgerVoucherType_CN.NumberSequenceTable |
PriorityPriority number of the voucher type. | IntegerVoucherTypePriority_CN | No | Yes | LedgerVoucherType_CN.Priority | |
DefaultApprovedByNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
DefaultedPreparedByNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
LedgerPrintLayoutGroupUnique ID of the print layout group. | StringLedgerPrintLayoutGroupId_CN | Yes | Yes | LedgerPrintLayoutGroup_CN.Id | |
NumberSequenceCodeCode that identifies the number sequence. | StringNumberSequenceCode | Yes | Yes | NumberSequenceTable.NumberSequence | |
NumberSequenceScopeScope that the sequence belongs to. | Int64RefRecId | No | No (private) | NumberSequenceScope.RecId | NumberSequenceTable.NumberSequenceScope |
AccountRelationGroup number used when the restriction applies to a group. It points to the group table of the account type. | String (20)CustVendRel | No | Yes | AssetGroup.GroupIdBankGroup.BankGroupIdCustGroup.CustGroupProjGroup.ProjGroupIdVendGroup.VendGroup | LedgerAccountRestrictionV2_CN.AccountRelation |
AccountTypeType of account that the restriction applies to, such as ledger, customer or vendor. | Enum
| No | Yes | LedgerAccountRestrictionV2_CN.AccountType | |
AccountCodeSays whether the restriction applies to one account, a group or all accounts. | Enum
| No | Yes | LedgerAccountRestrictionV2_CN.AccountCode | |
LedgerDimensionLink to the account combination that the restriction uses. | Int64DimensionDynamicDefaultAccount | No | No (private) | DimensionAttributeValueCombination.RecId | LedgerAccountRestrictionV2_CN.LedgerDimension |
LedgerDimensionDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | No (private) | None | |
RestrictionTypeRule that says which accounts a voucher must or must not include, for debits, credits or both. | Enum
| No | Yes | LedgerAccountRestrictionV2_CN.RestrictionType | |
NotNullableLedgerDimensionDisplayValueThe ledger account as display text, with an empty value instead of null. It is used as part of the key. | String (500)DimensionDisplayValue | No | Yes | computed |
Foreign keys (12)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
DefaultApproverRecId→HcmWorker.RecId(key of HcmWorker)Many LedgerVoucherType_CN records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
JournalName→LedgerJournalName.JournalName(key of LedgerJournalName)Many LedgerVoucherType_CN records → zero or one LedgerJournalName record
LedgerJournalName details: see LedgerJournalNameEntity
DefaultPreparedByWorkerRecId→HcmWorker.RecId(key of HcmWorker)Many LedgerVoucherType_CN records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
LedgerPrintLayoutGroupRecId→LedgerPrintLayoutGroup_CN.RecId(key of LedgerPrintLayoutGroup_CN)Many LedgerVoucherType_CN records → zero or one LedgerPrintLayoutGroup_CN record
LedgerPrintLayoutGroup_CN details: see LedgerPrintLayoutEntity, LedgerVoucherTypeAccountRestrictionEntity, LedgerVoucherTypeEntity
NumberSequenceTableRecId→NumberSequenceTable.RecId(key of NumberSequenceTable)Many LedgerVoucherType_CN records → exactly one NumberSequenceTable record
NumberSequenceTable details: see NumberSequenceTableEntity, NumberSequenceTableV2Entity, MCRReqPlanContinuityEntity
NumberSequenceScope→NumberSequenceScope.RecId(key of NumberSequenceScope)Many NumberSequenceTable records → zero or one NumberSequenceScope record
NumberSequenceScope details: see MCRReqPlanContinuityEntity, WHSNumberSequenceExtReferenceEntity, LedgerAccrualSchemesEntity
AccountRelation→AssetGroup.GroupId(key of AssetGroup)Relation also requires AccountType = LedgerJournalACType::FixedAssets, AccountCode = TableGroupAll::GroupId.
Many LedgerAccountRestrictionV2_CN records → zero or one AssetGroup record
AssetGroup details: see AssetGroupEntity, AssetGroupBiEntity, DimAttributeAssetGroupEntity
AccountRelation→BankGroup.BankGroupId(key of BankGroup)Relation also requires AccountType = LedgerJournalACType::Bank, AccountCode = TableGroupAll::GroupId.
Many LedgerAccountRestrictionV2_CN records → zero or one BankGroup record
BankGroup details: see BankGroupEntity, DimAttributeBankGroupEntity
AccountRelation→CustGroup.CustGroup(key of CustGroup)Relation also requires AccountType = LedgerJournalACType::Cust, AccountCode = TableGroupAll::GroupId.
Many LedgerAccountRestrictionV2_CN records → zero or one CustGroup record
CustGroup details: see CustCustomerGroupEntity, RetailPriceGroupApplicabilityRuleEntity, WHSCustomerGroupProductFilterEntity
AccountRelation→ProjGroup.ProjGroupId(key of ProjGroup)Relation also requires AccountType = LedgerJournalACType::Project, AccountCode = TableGroupAll::GroupId.
Many LedgerAccountRestrictionV2_CN records → zero or one ProjGroup record
ProjGroup details: see ProjectGroupEntity, DimAttributeProjGroupEntity
AccountRelation→VendGroup.VendGroup(key of VendGroup)Relation also requires AccountType = LedgerJournalACType::Vend, AccountCode = TableGroupAll::GroupId.
Many LedgerAccountRestrictionV2_CN records → zero or one VendGroup record
VendGroup details: see VendVendorGroupEntity, WHSVendorGroupProductFilterEntity, DimAttributeVendGroupEntity
LedgerDimension→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many LedgerAccountRestrictionV2_CN records → exactly one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
Need help with LedgerVoucherTypeAccountRestrictionV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.