Table
MCRBrokerContractLine
Broker contract line
Holds the lines of a broker contract. Each line links to a broker contract header and sets a customer, item and charges code selection, with a break and a charges value. It has no defined key in the metadata.
- Table name
MCRBrokerContractLine- Module
Sales and marketing- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
TradeBroker- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCodeSays whether the customer selection is a single account, a group or all customers. | EnumPriceDiscPartyCodePriceDiscPartyCodeType (enum) | No | MCRBrokerContractLineEntity | |
AccountRelationThe customer account or customer group that the line applies to, depending on the party code type. | String (20)PriceDiscAccountRelation | No | CustGroup.CustGroupCustTable.AccountNum | MCRBrokerContractLineEntity |
AmountThe break value of the line, read together with the break type. | RealAmountQty | No | MCRBrokerContractLineEntity | |
AmountTypeSays whether the break is based on a quantity or an amount. | EnumMCRAmountQty (enum) | No | MCRBrokerContractLineEntity | |
ContractIDThe broker contract header that this line belongs to. | String (12)MCRBrokerContractID | Yes | MCRBrokerContractTable.ContractID | MCRBrokerContractLineEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ItemCodeSays whether the item selection is a single item, an item group or all items. | EnumPriceDiscProductCodePriceDiscProductCodeType (enum) | No | MCRBrokerContractLineEntity | |
ItemRelationThe item or item group that the line applies to, depending on the product code type. | String (20)ItemRelation | No | InventTable.ItemId | MCRBrokerContractLineEntity |
MiscChargeCodeThe charges code linked to the line. | StringMarkupCode | Yes | MCRBrokerContractLineEntity | |
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 | MCRBrokerContractLineEntity | |
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 | |
TaxGroupThe sales tax group set on the line. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | MCRBrokerContractLineEntity |
ValueThe charges value of the line, either an amount or a percentage. | RealMCRAmountorPercent | No | MCRBrokerContractLineEntity | |
ValueTypeSays how the charges value is expressed: per piece, as a percentage or as a fixed amount. | EnumMCRBrokerValueType (enum) | No | MCRBrokerContractLineEntity |
Indexes (2)
KeyContractID,ItemCode,ItemRelation,Amount,AccountCode,AccountRelationUnique.
SelectIdxContractID,AmountType,Amount,ItemCode,ItemRelation,AccountCode,AccountRelationNot unique.
Relations (6)
Each relation joins MCRBrokerContractLine to another table on the fields shown.
BrokerContractTable→MCRBrokerContractTableJoin on
ContractID = MCRBrokerContractTable.ContractIDMany MCRBrokerContractLine records → exactly one MCRBrokerContractTable record
CustTable_Group→CustGroupJoin on
AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = CustGroup.CustGroupMany MCRBrokerContractLine records → zero or one CustGroup record
CustTable_Table→CustTableJoin on
AccountCode = PriceDiscPartyCodeType::Table,AccountRelation = CustTable.AccountNumMany MCRBrokerContractLine records → zero or one CustTable record
InventTable_Table→InventTableJoin on
ItemCode = PriceDiscProductCodeType::Table,ItemRelation = InventTable.ItemIdMany MCRBrokerContractLine records → zero or one InventTable record
MarkupTable→MarkupTableJoin on
MarkupTable.ModuleType = MarkupModuleType::Cust,MiscChargeCode = MarkupTable.MarkupCodeMany MCRBrokerContractLine records → exactly one MarkupTable record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupZero or one MCRBrokerContractLine record → exactly one TaxGroupHeading record
Get this data out
Tables are not exposed directly. These public entities read from MCRBrokerContractLine; use one of them in Power BI, Power Platform or a data management project.
MCRBrokerContractLineEntity· 12 fields from this table
Need help with MCRBrokerContractLine in a report, an integration or a migration? Talk to Dr Dynamics.