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 · root
  • MarkupAutoTable · InnerJoin to MarkupAutoLine

Fields (22)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ChargingCustomerAccountNumberCustomer account that the automatic charge applies to.String (20)
CustAccount
NoYescomputed
ChargingChargeCustomerGroupIdCustomer charges group that the automatic charge applies to.String
CustMarkupGroupId
NoYescomputed
ChargingDeliveryModeCodeMode of delivery that the automatic charge applies to.String
CustDlvModeId
NoYescomputed
ChargingChargeDeliveryGroupIdDelivery charges group that the automatic charge applies to.String
DeliveryMarkupGroupId
NoYescomputed
LineNumberNumber that orders the lines within the parent record.Real
LineNum
NoYesMarkupAutoLine.LineNum
SalesDocumentCurrencyCodeCurrency of the amount range on the line.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeMarkupAutoLine.CurrencyCode
SalesChargeCodeCode of the charge that the line applies.String
MarkupCode
YesYesMarkupTable.MarkupCodeMarkupAutoLine.MarkupCode
ChargeCategoryHow the charge is worked out, for example fixed, percent or specific unit.Enum
MarkupCategoryType
MarkupCategory
  • Fixed 0
  • Pcs 1
  • Percent 2
  • InterCompanyPercent 3
  • External 4
  • Proportional 5
  • UnitSpecific 6
  • UnitSpecificMatch 7
NoYesMarkupAutoLine.MarkupCategory
ChargePercentagePercentage used for the charge.Real
MarkupPercent
NoYescomputed
FixedChargeAmountFixed amount used for the charge; currency not stated in the metadata.Real
MarkupFixedAmount
NoYescomputed
ValueValue of the charge, such as an amount or percentage.Real
MarkupValue
NoNo (private)MarkupAutoLine.Value
ChargeAccountingCurrencyCodeCurrency of the charge itself.String (3)
MarkupCurrencyCode
NoYesCurrency.CurrencyCodeMarkupAutoLine.MarkupCurrencyCode
FromTotalLineAmountLower limit of the amount range for which the charge line applies.Real
MarkupFromAmount
NoYesMarkupAutoLine.FromAmount
ToTotalLineAmountUpper limit of the amount range for which the charge line applies.Real
MarkupToAmount
NoYesMarkupAutoLine.ToAmount
SalesTaxGroupCodeSales tax group that applies to the charge.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupMarkupAutoLine.TaxGroup
WillInvoiceProcessingKeepChargeYes or no flag called Keep. Its exact effect is not stated in the metadata.low confidenceEnum
MarkupKeep
NoYes

Platform enum: values not in the metadata extract.

NoYesMarkupAutoLine.Keep
AccountCodeWhether the rule covers one account, a group of accounts or all accounts.Enum
MarkupAccountCode
TableGroupAll
  • Table 0
  • GroupId 1
  • All 2
NoYesMarkupAutoTable.AccountCode
AccountRelationCustomer or vendor account, or group, that the rule covers.String (20)
CustVendRel
NoYesCustTable.AccountNumVendTable.AccountNumMarkupAutoTable.AccountRelation
DlvModeCodeWhether the rule covers one delivery mode, a group or all.Enum
MarkupDlvModeCode
TableGroupAll
  • Table 0
  • GroupId 1
  • All 2
NoYesMarkupAutoTable.DlvModeCode
DlvModeRelationMode of delivery that the rule covers.String (20)
DlvModeRelation
NoYesDlvMode.CodeMarkupAutoTable.DlvModeRelation
SequenceOrder number that sets which header charge comes first. It matters mainly for compound charges.Integer
MarkupSequence
NoYesMarkupAutoLine.Sequence
IsCompoundYes or no flag that says whether earlier header charges are added to the base for a percentage header charge.Enum
MarkupIsCompound
NoYes

Platform enum: values not in the metadata extract.

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

Need help with SalesAutomaticSalesDocumentHeaderChargeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk