Data entity

LedgerVoucherTypeAccountRestrictionEntity

Lists the account restrictions set for each voucher type, as used for China. Each row links a voucher type to a restriction type, an account type and a ledger dimension combination. It also carries voucher type details such as priority, print layout group and number sequence code.

Entity name
LedgerVoucherTypeAccountRestrictionEntity
Public entity name
VoucherTypeAccountRestriction
OData collection
VoucherTypeAccountRestrictions
Category
Not set
Module
General ledger
Read-only
No
Data management enabled
Yes
Configuration key
LedgerBasic
Keys
VoucherType, RestrictionType, LedgerDimensionDisplayValue, AccountType
Staging table
LedgerVoucherTypeAccountRestrictionStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/VoucherTypeAccountRestrictions
Dataverse virtual table
mserp_ledgervouchertypeaccountrestrictionentity. 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
  • LedgerAccountRestriction_CN · OuterJoin to LedgerVoucherType_CN
  • LedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to LedgerAccountRestriction_CN · read-only
  • NumberSequenceTable · InnerJoin to LedgerVoucherType_CN · read-only

Fields (19)

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
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
NoYesLedgerAccountRestriction_CN.AccountType
LedgerDimensionLink to the main account combination that the restriction uses.Int64
DimensionDynamicDefaultAccount
YesNo (private)DimensionAttributeValueCombination.RecIdLedgerAccountRestriction_CN.LedgerDimension
LedgerDimensionDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
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
NoYesLedgerAccountRestriction_CN.RestrictionType

Foreign keys (7)

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 LedgerVoucherTypeAccountRestrictionEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk