Data entity
PurchAutomaticPurchaseDocumentLineChargeV2Entity
Holds automatic charge setup lines for purchase document lines, in the V2 form. Each record is keyed by vendor, vendor charges group, item, product charges group, mode of delivery, delivery charges group and line number. It shows the charge code, category, percentage, fixed, proportional and per-unit amounts, and the intercompany percentage.
- Entity name
PurchAutomaticPurchaseDocumentLineChargeV2Entity- Public entity name
PurchAutomaticPurchaseDocumentLineChargeV2- OData collection
PurchAutomaticPurchaseDocumentLineChargesV2- Category
Not set- Module
Procurement and sourcing- Read-only
No- Data management enabled
Yes- Configuration key
Markup- Keys
ChargingVendorAccountNumber, ChargingChargeVendorGroupId, ChargingItemNumber, ChargingChargeProductGroupId, ChargingDeliveryModeCode, ChargingChargeDeliveryGroupId, LineNumber- Staging table
PurchAutomaticPurchaseDocumentLineChargeV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PurchAutomaticPurchaseDocumentLineChargesV2- Dataverse virtual table
mserp_purchautomaticpurchasedocumentlinechargev2entity. 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 (27)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ChargingVendorAccountNumberAccount number of the vendor the automatic charge applies to. | String (20)VendAccount | No | Yes | computed | |
ChargingChargeVendorGroupIdCharges group for vendors that the automatic charge applies to. | StringVendMarkupGroupId | No | Yes | computed | |
ChargingItemNumberNumber of the item the automatic charge applies to. | String (20)ItemId | No | Yes | computed | |
ChargingChargeProductGroupIdCharges group for items that the automatic charge applies to. | StringInventMarkupGroupId | No | Yes | computed | |
LineNumberNumber that orders the lines within the parent record. | RealLineNum | No | Yes | MarkupAutoLine.LineNum | |
PurchaseDocumentCurrencyCodeCurrency of the amount range on the line. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | MarkupAutoLine.CurrencyCode |
PurchaseChargeCodeCode 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 of the charge; currency not stated in the metadata. | RealMarkupFixedAmount | No | Yes | computed | |
ProportionalChargeAmountProportional amount of the charge; currency not stated in the metadata. | RealMarkupProportionalAmount | No | Yes | computed | |
UnitChargeAmountCharge amount for each unit; currency not stated in the metadata. | RealMarkupUnitAmount | No | Yes | computed | |
IntercompanyChargePercentagePercentage of the charge used for intercompany purposes. | RealMarkupIntercompanyPercent | 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 |
SalesTaxGroupCodeSales tax group that applies to the charge. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | MarkupAutoLine.TaxGroup |
AccountCodeWhether the rule covers one account, a group of accounts or all accounts. | EnumMarkupAccountCode
| No | No (private) | MarkupAutoTable.AccountCode | |
AccountRelationCustomer or vendor account, or group, that the rule covers. | String (20)CustVendRel | No | No (private) | CustTable.AccountNumVendTable.AccountNum | MarkupAutoTable.AccountRelation |
ItemCodeWhether the rule covers one item, a group of items or all items. | EnumMarkupItemCode
| No | No (private) | MarkupAutoTable.ItemCode | |
ItemRelationItem or item group that the rule covers. | String (20)ItemRelation | No | No (private) | InventTable.ItemId | MarkupAutoTable.ItemRelation |
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 |
ChargeDescriptionText that describes the charge. | String (60)MarkupAutoTableDescription | No | Yes | MarkupAutoTable.Description | |
ReceivingSiteIdSite that the charge line is limited to. | StringInventSiteId | No | Yes | InventSite.SiteId | MarkupAutoLine.InventSiteId |
ReceivingWarehouseIdWarehouse that the charge line is limited to. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | MarkupAutoLine.InventLocationId |
ChargingDeliveryModeCodeCode of the mode of delivery the charge applies to. | StringVendDlvModeId | No | Yes | computed | |
ChargingChargeDeliveryGroupIdCharges group for delivery modes that the automatic charge applies to. | StringDeliveryMarkupGroupId | No | Yes | computed |
Foreign keys (10)
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.
PurchaseDocumentCurrencyCode→Currency.CurrencyCode(key of Currency)Many MarkupAutoLine records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
PurchaseChargeCode→MarkupTable.MarkupCode(key of MarkupTable)Join on all of:
PurchaseChargeCode=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
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
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
ReceivingSiteId→InventSite.SiteId(key of InventSite)Many MarkupAutoLine records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ReceivingWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many MarkupAutoLine records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
Need help with PurchAutomaticPurchaseDocumentLineChargeV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.