Data entity
SalesAutomaticSalesDocumentHeaderChargeEntity
Holds automatic charge lines for sales documents. Each line is tied to a customer account or charges group and a mode of delivery or delivery charges group. It sets a charges code, a percentage or fixed amount, an amount range, a sales tax group and a sequence.
- Entity name
SalesAutomaticSalesDocumentHeaderChargeEntity- Public entity name
SalesAutomaticSalesDocumentHeaderCharges- OData collection
SalesAutomaticSalesDocumentHeaderCharge- Category
Not set- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
Markup- Keys
ChargingCustomerAccountNumber, ChargingChargeCustomerGroupId, ChargingDeliveryModeCode, ChargingChargeDeliveryGroupId, LineNumber- Staging table
SalesAutomaticSalesDocumentHeaderChargeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/SalesAutomaticSalesDocumentHeaderCharge- Dataverse virtual table
mserp_salesautomaticsalesdocumentheaderchargeentity. 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
MarkupAutoLine· rootMarkupAutoTable· InnerJoin toMarkupAutoLine
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ChargingCustomerAccountNumberCustomer account that the automatic charge applies to. | String (20)CustAccount | No | Yes | computed | |
ChargingChargeCustomerGroupIdCustomer charges group that the automatic charge applies to. | StringCustMarkupGroupId | No | Yes | computed | |
ChargingDeliveryModeCodeMode of delivery that the automatic charge applies to. | StringCustDlvModeId | No | Yes | computed | |
ChargingChargeDeliveryGroupIdDelivery charges group that the automatic charge applies to. | StringDeliveryMarkupGroupId | No | Yes | computed | |
LineNumberNumber that orders the lines within the parent record. | RealLineNum | No | Yes | MarkupAutoLine.LineNum | |
SalesDocumentCurrencyCodeCurrency of the amount range on the line. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | MarkupAutoLine.CurrencyCode |
SalesChargeCodeCode of the charge that the line applies. | StringMarkupCode | Yes | Yes | MarkupTable.MarkupCode | MarkupAutoLine.MarkupCode |
ChargeCategoryHow the charge is worked out, for example fixed, percent or specific unit. | EnumMarkupCategoryType
| No | Yes | MarkupAutoLine.MarkupCategory | |
ChargePercentagePercentage used for the charge. | RealMarkupPercent | No | Yes | computed | |
FixedChargeAmountFixed amount used for the charge; currency not stated in the metadata. | RealMarkupFixedAmount | No | Yes | computed | |
ValueValue of the charge, such as an amount or percentage. | RealMarkupValue | No | No (private) | MarkupAutoLine.Value | |
ChargeAccountingCurrencyCodeCurrency of the charge itself. | String (3)MarkupCurrencyCode | No | Yes | Currency.CurrencyCode | MarkupAutoLine.MarkupCurrencyCode |
FromTotalLineAmountLower limit of the amount range for which the charge line applies. | RealMarkupFromAmount | No | Yes | MarkupAutoLine.FromAmount | |
ToTotalLineAmountUpper limit of the amount range for which the charge line applies. | RealMarkupToAmount | No | Yes | MarkupAutoLine.ToAmount | |
SalesTaxGroupCodeSales tax group that applies to the charge. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | MarkupAutoLine.TaxGroup |
WillInvoiceProcessingKeepChargeYes or no flag called Keep. Its exact effect is not stated in the metadata.low confidence | EnumMarkupKeep
| No | Yes | MarkupAutoLine.Keep | |
AccountCodeWhether the rule covers one account, a group of accounts or all accounts. | EnumMarkupAccountCode
| No | Yes | MarkupAutoTable.AccountCode | |
AccountRelationCustomer or vendor account, or group, that the rule covers. | String (20)CustVendRel | No | Yes | CustTable.AccountNumVendTable.AccountNum | MarkupAutoTable.AccountRelation |
DlvModeCodeWhether the rule covers one delivery mode, a group or all. | EnumMarkupDlvModeCode
| No | Yes | MarkupAutoTable.DlvModeCode | |
DlvModeRelationMode of delivery that the rule covers. | String (20)DlvModeRelation | No | Yes | DlvMode.Code | MarkupAutoTable.DlvModeRelation |
SequenceOrder number that sets which header charge comes first. It matters mainly for compound charges. | IntegerMarkupSequence | No | Yes | MarkupAutoLine.Sequence | |
IsCompoundYes or no flag that says whether earlier header charges are added to the base for a percentage header charge. | EnumMarkupIsCompound
| No | Yes | MarkupAutoLine.IsCompound |
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.
SalesDocumentCurrencyCode→Currency.CurrencyCode(key of Currency)Many MarkupAutoLine records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
SalesChargeCode→MarkupTable.MarkupCode(key of MarkupTable)Join on all of:
SalesChargeCode=MarkupTable.MarkupCode,ModuleType(table field, not in this entity) =MarkupTable.ModuleTypeMany MarkupAutoLine records → zero or one MarkupTable record
MarkupTable details: see PurchProcurementChargeEntity, SalesChargeEntity, PurchProcurementChargeCDSEntity
ChargeAccountingCurrencyCode→Currency.CurrencyCode(key of Currency)Many MarkupAutoLine records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
SalesTaxGroupCode→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many MarkupAutoLine records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires ModuleType = MarkupModuleType::Cust, AccountCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
AccountRelation→VendTable.AccountNum(key of VendTable)Relation also requires ModuleType = MarkupModuleType::Vend, AccountCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
DlvModeRelation→DlvMode.Code(key of DlvMode)Relation also requires DlvModeCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
Need help with SalesAutomaticSalesDocumentHeaderChargeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.