Table
CustLedgerAccounts
Customer ledger accounts
Holds the ledger accounts set for each customer posting profile. A record is identified by the profile, an account code (Table, Group or All) and an account or group number. It points to ledger dimension combinations for many account types, such as deposits, write-offs and sales tax prepayments.
- Table name
CustLedgerAccounts- Module
Accounts receivable- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
ProfileAccountIdx- Replacement key
ProfileAccountIdx- Key fields
PostingProfile, AccountCode, Num- Model
Foundation
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PostingProfileThe customer posting profile these accounts belong to. Points to Customer posting profiles. | StringCustPostingProfile | Yes | CustLedger.PostingProfile | CustLedgerAccountsCDREntity |
AccountCodeShows whether the setup applies to one customer (Table), a customer group (Group) or all customers (All). | EnumPostingProfileAccountCodeTableGroupAll (enum) | No | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity | |
NumCustomer account number or customer group, depending on the account code. Points to Customer groups or Customers. | String (20)PostingProfileAccountRelation | No | CustGroup.CustGroupCustTable.AccountNum | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
ClearingLedgerDimensionLiquidity account used for payments. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
CollectionLetterCourseCollection letter sequence to use. Points to Collection letter setup. | StringCollectionLetterCourseId | No | CustCollectionLetterTable.CollectionLetterCourse | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
CustInterestInterest code to use. Points to Customer interest codes. | Int64CustInterestID | No | CustInterest.RecId | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | CustLedgerAccountsCDREntity | |
DepositLedgerDimensionAccount for deposits. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
DimensionHierarchy_RUDimension set, used for Russia. Points to Dimension set. | Int64DimensionHierarchyId | No | DimensionHierarchy.RecId | None |
EndorseLedgerDimensionEndorse account. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntity |
ExportSalesLedgerDimensionAccount for export sales. Points to Dimension code combination. | Int64ExportSalesLedgerDimension | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntity |
FineLedgerDimension_BRAccount for fines, used for Brazil. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntity |
InterestLedgerDimension_BRAccount for financial interest, used for Brazil. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntity |
LiabilitiesForDiscountLedgerDimensionAccount for liabilities for discounts. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | CustLedgerAccountsCDREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | CustLedgerAccountsCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SummaryLedgerDimensionSummary account. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
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 | |
TaxTransferLedgerDimension_BRAccount for tax transfers, used for Brazil. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntity |
VATPrepaymentsLedgerDimensionAccount for sales tax prepayments. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
WriteOffLedgerDimensionAccount for write-offs. Points to Dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CustCustomerPostingProfileLineEntityCustLedgerAccountsCDREntity |
Indexes (13)
ProfileAccountIdxPrimary indexReplacement keyPostingProfile,AccountCode,NumUnique, alternate key.
ClearingLedgerDimensionIdxNot unique.
LiabilitiesForDiscountLedgerDimensionIdxLiabilitiesForDiscountLedgerDimensionNot unique.
SummaryLedgerDimensionIdxNot unique.
VATPrepaymentsLedgerDimensionIdxNot unique.
WriteOffLedgerDimensionIdxNot unique.
CustInterestIdxNot unique.
DimensionHierarchyIdx_RUNot unique.
DimensionAttributeValueCombinationIdx1Not unique.
DimensionAttributeValueCombinationIdx2Not unique.
TaxTransferLedgerDimension_BRNot unique.
FineLedgerDimension_BRNot unique.
InterestLedgerDimension_BRNot unique.
Relations (17)
Each relation joins CustLedgerAccounts to another table on the fields shown.
ClearingLedgerDimension→DimensionAttributeValueCombinationJoin on
ClearingLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
CustCollectionLetterTable→CustCollectionLetterTableJoin on
CollectionLetterCourse = CustCollectionLetterTable.CollectionLetterCourseMany CustLedgerAccounts records → zero or one CustCollectionLetterTable record
CustGroup→CustGroupJoin on
AccountCode = TableGroupAll::GroupId,Num = CustGroup.CustGroupMany CustLedgerAccounts records → zero or one CustGroup record
CustLedger→CustLedgerJoin on
PostingProfile = CustLedger.PostingProfileMany CustLedgerAccounts records → exactly one CustLedger record
CustLedgerAccountsCustInterest→CustInterestJoin on
CustInterest = CustInterest.RecIdMany CustLedgerAccounts records → zero or one CustInterest record
CustTable→CustTableJoin on
AccountCode = TableGroupAll::Table,Num = CustTable.AccountNumMany CustLedgerAccounts records → zero or one CustTable record
DepositLedgerDimension→DimensionAttributeValueCombinationJoin on
DepositLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
DimensionHierarchy_RU→DimensionHierarchyJoin on
DimensionHierarchy_RU = DimensionHierarchy.RecIdMany CustLedgerAccounts records → zero or one DimensionHierarchy record
EndorseLedgerDimension→DimensionAttributeValueCombinationJoin on
EndorseLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
ExportSalesLedgerDimension→DimensionAttributeValueCombinationJoin on
ExportSalesLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
FineLedgerDimension_BR→DimensionAttributeValueCombinationJoin on
FineLedgerDimension_BR = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
InterestLedgerDimension_BR→DimensionAttributeValueCombinationJoin on
InterestLedgerDimension_BR = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
LiabilitiesForDiscountLedgerDimension→DimensionAttributeValueCombinationJoin on
LiabilitiesForDiscountLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
SummaryLedgerDimension→DimensionAttributeValueCombinationJoin on
SummaryLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
TaxTransferLedgerDimension_BR→DimensionAttributeValueCombinationJoin on
TaxTransferLedgerDimension_BR = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
VATPrepaymentsLedgerDimension→DimensionAttributeValueCombinationJoin on
VATPrepaymentsLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
WriteOffLedgerDimension→DimensionAttributeValueCombinationJoin on
WriteOffLedgerDimension = DimensionAttributeValueCombination.RecIdMany CustLedgerAccounts records → zero or one DimensionAttributeValueCombination record
Get this data out
Tables are not exposed directly. These public entities read from CustLedgerAccounts; use one of them in Power BI, Power Platform or a data management project.
CustCustomerPostingProfileLineEntity· 14 fields from this tableCustLedgerAccountsCDREntity· 13 fields from this table
Need help with CustLedgerAccounts in a report, an integration or a migration? Talk to Dr Dynamics.