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 · root
  • DefaultApprover (table HcmWorker) · OuterJoin to LedgerVoucherType_CN · read-only
  • DefaultedPreparedBy (table HcmWorker) · OuterJoin to LedgerVoucherType_CN · read-only
  • LedgerPrintLayoutGroup_CN · OuterJoin to LedgerVoucherType_CN · read-only
  • LedgerAccountRestrictionV2_CN · OuterJoin to LedgerVoucherType_CN
  • LedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to LedgerAccountRestrictionV2_CN · read-only
  • NumberSequenceTable · InnerJoin to LedgerVoucherType_CN · read-only

Fields (22)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
DefaultApproverRecIdPoints to the worker who approves vouchers of this type by default.Int64
HcmApprover
NoNo (private)HcmWorker.RecIdLedgerVoucherType_CN.DefaultApprover
JournalNameName of the journal used by default, pointing to the journal name table.String
LedgerJournalNameId
NoYesLedgerJournalName.JournalNameLedgerVoucherType_CN.DefaultJournal
DefaultPreparedByWorkerRecIdPoints to the worker who prepares vouchers of this type by default.Int64
HcmWorkerRecId
NoNo (private)HcmWorker.RecIdLedgerVoucherType_CN.DefaultPreparedByWorker
IsDefaultTypeYes/No flag showing whether this is the default voucher type.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesLedgerVoucherType_CN.DefaultType
DescriptionShort description of the voucher type.String (60)
Description
NoYesLedgerVoucherType_CN.Description
VoucherTypeID of the voucher type. It is the key of the table.String
LedgerVoucherTypeId_CN
YesYesLedgerVoucherType_CN.Id
LedgerPrintLayoutGroupRecIdPoints to the print layout group used for this voucher type.Int64
RefRecId
NoNo (private)LedgerPrintLayoutGroup_CN.RecIdLedgerVoucherType_CN.LedgerPrintLayoutGroup
VoucherTypeNumberNumber of the voucher type, up to 20 characters.String (20)
LedgerVoucherTypeNumber_CN
YesYesLedgerVoucherType_CN.Num
NumberSequenceTableRecIdPoints to the number sequence code used for this voucher type.Int64
RefRecId
YesNo (private)NumberSequenceTable.RecIdLedgerVoucherType_CN.NumberSequenceTable
PriorityPriority number of the voucher type.Integer
VoucherTypePriority_CN
NoYesLedgerVoucherType_CN.Priority
DefaultApprovedByNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
DefaultedPreparedByNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
LedgerPrintLayoutGroupUnique ID of the print layout group.String
LedgerPrintLayoutGroupId_CN
YesYesLedgerPrintLayoutGroup_CN.Id
NumberSequenceCodeCode that identifies the number sequence.String
NumberSequenceCode
YesYesNumberSequenceTable.NumberSequence
NumberSequenceScopeScope that the sequence belongs to.Int64
RefRecId
NoNo (private)NumberSequenceScope.RecIdNumberSequenceTable.NumberSequenceScope
AccountRelationGroup number used when the restriction applies to a group. It points to the group table of the account type.String (20)
CustVendRel
NoYesAssetGroup.GroupIdBankGroup.BankGroupIdCustGroup.CustGroupProjGroup.ProjGroupIdVendGroup.VendGroupLedgerAccountRestrictionV2_CN.AccountRelation
AccountTypeType of account that the restriction applies to, such as ledger, customer or vendor.Enum
LedgerJournalACType
  • Ledger 0
  • Cust 1
  • Vend 2
  • Project 3
  • FixedAssets 5
  • Bank 6
  • FixedAssets_RU 12
  • Employee_RU 13
  • RDeferrals 14
  • RCash 15
NoYesLedgerAccountRestrictionV2_CN.AccountType
AccountCodeSays whether the restriction applies to one account, a group or all accounts.Enum
TableGroupAll
  • Table 0
  • GroupId 1
  • All 2
NoYesLedgerAccountRestrictionV2_CN.AccountCode
LedgerDimensionLink to the account combination that the restriction uses.Int64
DimensionDynamicDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdLedgerAccountRestrictionV2_CN.LedgerDimension
LedgerDimensionDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoNo (private)None
RestrictionTypeRule that says which accounts a voucher must or must not include, for debits, credits or both.Enum
LedgerVoucherRestrictionType_CN
  • VoucherInclude 0
  • VoucherExclude 1
  • DebitContain 2
  • CreditContain 3
  • AllDebitContain 4
  • AllCreditContain 5
  • AllDebitExclude 6
  • AllCreditExclude 7
NoYesLedgerAccountRestrictionV2_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
NoYescomputed

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.

Need help with LedgerVoucherTypeAccountRestrictionV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk