Table
CustBillingCodeVersion
Billing code version
Holds dated versions of a billing code. Each version has a validity period and settings for project, category, tax group, dimensions and interest. Several options say whether users may change values. The key is the end date, start date and billing code.
- Table name
CustBillingCodeVersion- Module
Accounts receivable- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
PublicSector- Primary index
RecId- Replacement key
CustBillingCodeVersionIdx- Key fields
ValidTo, ValidFrom, CustBillingCode- Model
Foundation
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ValidToLast date on which this version is valid. | DateValidToDate | No | CustBillingCodeVersionEntityCustBillingCodeAccountingDistributionEntityCustBillingCodeCustomFieldEntityand 1 more | |
ValidFromFirst date on which this version is valid. | DateValidFromDate | No | CustBillingCodeVersionEntityCustBillingCodeAccountingDistributionEntityCustBillingCodeCustomFieldEntityand 1 more | |
CustBillingCodeThe billing code this version belongs to. Points to a billing code record. | Int64RefRecId | No | CustBillingCode.RecId | CustBillingCodeVersionEntityCustBillingCodeAccountingDistributionEntityCustBillingCodeCustomFieldEntityand 1 more |
AllowChangeAmountYes/no option that allows the amount to be changed. | EnumNoYes (enum) | No | CustBillingCodeVersionEntity | |
AllowChangeLedgerAccountYes/no option that allows the ledger account to be changed. | EnumNoYes (enum) | No | CustBillingCodeVersionEntity | |
AmountDetailsLong free-text notes about the amount. | String (-1)AmountDetails | No | CustBillingCodeVersionEntity | |
CustInterestInterest code for this version. Points to a customer interest record. | Int64RefRecId | No | CustInterest.RecId | CustBillingCodeVersionEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DimensionDepartment value stored as text. | String (255)String255 | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjCategoryAllowChangesYes/no option that allows the project category to be changed. | EnumNoYesIdNoYes (enum) | No | CustBillingCodeVersionEntity | |
ProjCategoryIdProject category linked to this version. | String (30)ProjCategoryId | No | ProjCategory.CategoryId | CustBillingCodeVersionEntity |
ProjIdProject linked to this version. | String (20)ProjId | No | ProjTable.ProjId | CustBillingCodeVersionEntity |
ProjIdAllowChangesYes/no option that allows the project ID to be changed. | EnumNoYesIdNoYes (enum) | No | CustBillingCodeVersionEntity | |
RateFieldSelectorSays whether the billing code sets the line amount or the unit price. | EnumRateFieldSelectorRateField (enum) | No | CustBillingCodeVersionEntity | |
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 | |
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 | |
TaxItemGroupHeadingItem sales tax group for this version. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | CustBillingCodeVersionEntity |
UseDimensionsFromLineYes/no option to use values from the line for dimensions that are not set. | EnumNoYes (enum) | No | CustBillingCodeVersionEntity | |
UseFromBillingClassYes/no option to take the interest code from the billing classification. | EnumNoYesIdNoYes (enum) | No | CustBillingCodeVersionEntity |
Indexes (2)
CustBillingCodeVersionIdxReplacement keyValidTo,ValidFrom,CustBillingCodeUnique, alternate key.
CustInterestIdxNot unique.
Relations (5)
Each relation joins CustBillingCodeVersion to another table on the fields shown.
CustBillingCode→CustBillingCodeJoin on
CustBillingCode = CustBillingCode.RecIdOne or more CustBillingCodeVersion records → zero or one CustBillingCode record
CustInterest→CustInterestJoin on
CustInterest = CustInterest.RecIdMany CustBillingCodeVersion records → zero or one CustInterest record
ProjCategory→ProjCategoryJoin on
ProjCategoryId = ProjCategory.CategoryIdMany CustBillingCodeVersion records → exactly one ProjCategory record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany CustBillingCodeVersion records → exactly one ProjTable record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroupHeading = TaxItemGroupHeading.TaxItemGroupMany CustBillingCodeVersion records → exactly one TaxItemGroupHeading record
Get this data out
Tables are not exposed directly. These public entities read from CustBillingCodeVersion; use one of them in Power BI, Power Platform or a data management project.
CustBillingCodeVersionEntity· 15 fields from this tableCustBillingCodeAccountingDistributionEntity· 3 fields from this tableCustBillingCodeCustomFieldEntity· 3 fields from this tableCustBillingCodeRateEntity· 3 fields from this table
Need help with CustBillingCodeVersion in a report, an integration or a migration? Talk to Dr Dynamics.