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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountCodeSays whether the customer selection is a single account, a group or all customers.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType (enum)
NoMCRBrokerContractLineEntity
AccountRelationThe customer account or customer group that the line applies to, depending on the party code type.String (20)
PriceDiscAccountRelation
NoCustGroup.CustGroupCustTable.AccountNumMCRBrokerContractLineEntity
AmountThe break value of the line, read together with the break type.Real
AmountQty
NoMCRBrokerContractLineEntity
AmountTypeSays whether the break is based on a quantity or an amount.Enum
MCRAmountQty (enum)
NoMCRBrokerContractLineEntity
ContractIDThe broker contract header that this line belongs to.String (12)
MCRBrokerContractID
YesMCRBrokerContractTable.ContractIDMCRBrokerContractLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ItemCodeSays whether the item selection is a single item, an item group or all items.Enum
PriceDiscProductCode
PriceDiscProductCodeType (enum)
NoMCRBrokerContractLineEntity
ItemRelationThe item or item group that the line applies to, depending on the product code type.String (20)
ItemRelation
NoInventTable.ItemIdMCRBrokerContractLineEntity
MiscChargeCodeThe charges code linked to the line.String
MarkupCode
YesMCRBrokerContractLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoMCRBrokerContractLineEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupThe sales tax group set on the line.String
TaxGroup
NoTaxGroupHeading.TaxGroupMCRBrokerContractLineEntity
ValueThe charges value of the line, either an amount or a percentage.Real
MCRAmountorPercent
NoMCRBrokerContractLineEntity
ValueTypeSays how the charges value is expressed: per piece, as a percentage or as a fixed amount.Enum
MCRBrokerValueType (enum)
NoMCRBrokerContractLineEntity

Indexes (2)

Relations (6)

Each relation joins MCRBrokerContractLine to another table on the fields shown.

  • BrokerContractTable → MCRBrokerContractTable

    Join on ContractID = MCRBrokerContractTable.ContractID

    Many MCRBrokerContractLine records → exactly one MCRBrokerContractTable record

  • CustTable_Group → CustGroup

    Join on AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = CustGroup.CustGroup

    Many MCRBrokerContractLine records → zero or one CustGroup record

  • CustTable_Table → CustTable

    Join on AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = CustTable.AccountNum

    Many MCRBrokerContractLine records → zero or one CustTable record

  • InventTable_Table → InventTable

    Join on ItemCode = PriceDiscProductCodeType::Table, ItemRelation = InventTable.ItemId

    Many MCRBrokerContractLine records → zero or one InventTable record

  • MarkupTable → MarkupTable

    Join on MarkupTable.ModuleType = MarkupModuleType::Cust, MiscChargeCode = MarkupTable.MarkupCode

    Many MCRBrokerContractLine records → exactly one MarkupTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Zero 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.

Need help with MCRBrokerContractLine in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk