Codeunit "Price UX Management"
ID 7018
Namespace: Microsoft.Pricing.PriceList
Methods
GetFirstSourceFromFilter
procedure GetFirstSourceFromFilter(var PriceListHeader: Record "Price List Header", var PriceSource: Record "Price Source" temporary, DefaultSourceType: Enum "Price Source Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| PriceSource | Table Microsoft.Pricing.Source."Price Source" | |
| DefaultSourceType | Enum Microsoft.Pricing.Source."Price Source Type" |
IsAmountTypeFiltered
procedure IsAmountTypeFiltered(var PriceListHeader: Record "Price List Header"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" |
Returns
| Type | Description |
|---|---|
| Boolean |
IsAmountTypeFiltered
procedure IsAmountTypeFiltered(var PriceListHeader: Record "Price List Header", var FirstFilterValue: Enum "Price Amount Type"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| FirstFilterValue | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
Returns
| Type | Description |
|---|---|
| Boolean |
GetSupportedMethods
procedure GetSupportedMethods(var TempPriceCalculationSetup: Record "Price Calculation Setup" temporary, var ImplementationsPerMethod: Dictionary of [Integer, Integer])
Parameters
| Name | Type | Description |
|---|---|---|
| TempPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Price Calculation Setup" | |
| ImplementationsPerMethod | Dictionary of [Integer, Integer] |
PickImplementation
procedure PickImplementation(var CurrPriceCalculationSetup: Record "Price Calculation Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| CurrPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Price Calculation Setup" |
LookupPriceLists
procedure LookupPriceLists(SourceGroup: Enum "Price Source Group", PriceType: Enum "Price Type", var PriceListCode: Code[20]): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| SourceGroup | Enum Microsoft.Pricing.Source."Price Source Group" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| PriceListCode | Code[20] |
Returns
| Type | Description |
|---|---|
| Boolean |
EditPriceList
procedure EditPriceList(PriceListCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListCode | Code[20] |
ShowExceptions
procedure ShowExceptions(CurrPriceCalculationSetup: Record "Price Calculation Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| CurrPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Price Calculation Setup" |
ShowPriceLists
procedure ShowPriceLists(Campaign: Record Campaign, PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| Campaign | Table Microsoft.CRM.Campaign.Campaign | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceLists
procedure ShowPriceLists(Contact: Record Contact, PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| Contact | Table Microsoft.CRM.Contact.Contact | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceLists
procedure ShowPriceLists(Customer: Record Customer, AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceLists
procedure ShowPriceLists(CustomerDiscountGroup: Record "Customer Discount Group")
Parameters
| Name | Type | Description |
|---|---|---|
| CustomerDiscountGroup | Table Microsoft.Sales.Pricing."Customer Discount Group" |
ShowPriceLists
procedure ShowPriceLists(CustomerPriceGroup: Record "Customer Price Group")
Parameters
| Name | Type | Description |
|---|---|---|
| CustomerPriceGroup | Table Microsoft.Sales.Pricing."Customer Price Group" |
ShowPriceLists
procedure ShowPriceLists(Vendor: Record Vendor, AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceLists
procedure ShowPriceLists(Job: Record Job, PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| Job | Table Microsoft.Projects.Project.Job.Job | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceListLines
procedure ShowPriceListLines(PriceAsset: Record "Price Asset" temporary, PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceAsset | Table Microsoft.Pricing.Asset."Price Asset" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceListLines
procedure ShowPriceListLines(PriceSource: Record "Price Source" temporary, PriceAsset: Record "Price Asset" temporary, AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceSource | Table Microsoft.Pricing.Source."Price Source" | |
| PriceAsset | Table Microsoft.Pricing.Asset."Price Asset" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceListLines
procedure ShowPriceListLines(PriceSource: Record "Price Source" temporary, AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceSource | Table Microsoft.Pricing.Source."Price Source" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
ShowPriceLists
procedure ShowPriceLists(PriceSourceList: Codeunit "Price Source List", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
SetPriceListsFilters
procedure SetPriceListsFilters(var PriceListHeader: Record "Price List Header", PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
SetPriceListsFilters
procedure SetPriceListsFilters(var PriceListHeader: Record "Price List Header", PriceSourceList: Codeunit "Price Source List", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
SetPriceListLineFilters
procedure SetPriceListLineFilters(var PriceListLine: Record "Price List Line", PriceSourceList: Codeunit "Price Source List", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListLine | Table Microsoft.Pricing.PriceList."Price List Line" | |
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
SetPriceListLineFilters
procedure SetPriceListLineFilters(PriceAssetList: Codeunit "Price Asset List", PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PriceAssetList | Codeunit Microsoft.Pricing.Asset."Price Asset List" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
Returns
| Type | Description |
|---|---|
| Boolean |
SetPriceListLineFilters
procedure SetPriceListLineFilters(var PriceListLine: Record "Price List Line", PriceAssetList: Codeunit "Price Asset List", PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListLine | Table Microsoft.Pricing.PriceList."Price List Line" | |
| PriceAssetList | Codeunit Microsoft.Pricing.Asset."Price Asset List" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
SetPriceListLineFilters
procedure SetPriceListLineFilters(var PriceListLine: Record "Price List Line", PriceSource: Record "Price Source" temporary, PriceAssetList: Codeunit "Price Asset List", AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListLine | Table Microsoft.Pricing.PriceList."Price List Line" | |
| PriceSource | Table Microsoft.Pricing.Source."Price Source" | |
| PriceAssetList | Codeunit Microsoft.Pricing.Asset."Price Asset List" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
GetFirstAlternateSetupCode
procedure GetFirstAlternateSetupCode(CurrPriceCalculationSetup: Record "Price Calculation Setup"): Code[100]
Parameters
| Name | Type | Description |
|---|---|---|
| CurrPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Price Calculation Setup" |
Returns
| Type | Description |
|---|---|
| Code[100] |
PickAlternateImplementation
procedure PickAlternateImplementation(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| DtldPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Dtld. Price Calculation Setup" |
TestAlternateImplementation
procedure TestAlternateImplementation(CurrPriceCalculationSetup: Record "Price Calculation Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| CurrPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Price Calculation Setup" |
Events
OnBeforeShowPriceLists
[IntegrationEvent(False,False)]
local procedure OnBeforeShowPriceLists(FromRecord: Variant, PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type", var Handled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| FromRecord | Variant | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| Handled | Boolean |
OnBeforeShowPriceListLines
[IntegrationEvent(False,False)]
local procedure OnBeforeShowPriceListLines(PriceSource: Record "Price Source" temporary, var PriceAsset: Record "Price Asset" temporary, PriceType: Enum "Price Type", AmountType: Enum "Price Amount Type", var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PriceSource | Table Microsoft.Pricing.Source."Price Source" | |
| PriceAsset | Table Microsoft.Pricing.Asset."Price Asset" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| IsHandled | Boolean |
OnBeforeGetPriceSource
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPriceSource(FromRecord: Variant, PriceType: Enum "Price Type", var PriceSourceList: Codeunit "Price Source List")
Parameters
| Name | Type | Description |
|---|---|---|
| FromRecord | Variant | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" |
OnAfterGetPriceSource
[IntegrationEvent(False,False)]
local procedure OnAfterGetPriceSource(FromRecord: Variant, var PriceSourceList: Codeunit "Price Source List")
Parameters
| Name | Type | Description |
|---|---|---|
| FromRecord | Variant | |
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" |
OnShowPriceListLinesOnAfterPriceAssetListAdd
[IntegrationEvent(False,False)]
local procedure OnShowPriceListLinesOnAfterPriceAssetListAdd(PriceAsset: Record "Price Asset" temporary, PriceType: Enum "Price Type", var PriceAssetList: Codeunit "Price Asset List", var PriceListLineReview: Page "Price List Line Review")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceAsset | Table Microsoft.Pricing.Asset."Price Asset" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| PriceAssetList | Codeunit Microsoft.Pricing.Asset."Price Asset List" | |
| PriceListLineReview | Page Microsoft.Pricing.PriceList."Price List Line Review" |
OnAfterSelectPriceLists
[IntegrationEvent(False,False)]
local procedure OnAfterSelectPriceLists(var PriceListHeader: Record "Price List Header", var PriceListCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| PriceListCode | Code[20] |
OnAfterLookupPriceLists
[IntegrationEvent(False,False)]
local procedure OnAfterLookupPriceLists(var PriceListHeader: Record "Price List Header", var SourceGroup: Enum "Price Source Group", PriceType: Enum "Price Type", var PriceListCode: Code[20], var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| SourceGroup | Enum Microsoft.Pricing.Source."Price Source Group" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| PriceListCode | Code[20] | |
| Result | Boolean |
OnAfterEditPriceList
[IntegrationEvent(False,False)]
local procedure OnAfterEditPriceList(var PriceListHeader: Record "Price List Header", var PriceListCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" | |
| PriceListCode | Code[20] |
OnAfterShowPriceLists
[IntegrationEvent(False,False)]
local procedure OnAfterShowPriceLists(PriceSourceList: Codeunit "Price Source List", AmountType: Enum "Price Amount Type", PriceType: Enum "Price Type")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" |
OnBeforeRunPurchasePriceList
[IntegrationEvent(False,False)]
local procedure OnBeforeRunPurchasePriceList(var PurchasePriceLists: Page "Purchase Price Lists", var PriceListHeader: Record "Price List Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchasePriceLists | Page Microsoft.Purchases.Pricing."Purchase Price Lists" | |
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" |
OnBeforeRunSalesPriceList
[IntegrationEvent(False,False)]
local procedure OnBeforeRunSalesPriceList(var SalesPriceLists: Page "Sales Price Lists", var PriceListHeader: Record "Price List Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesPriceLists | Page Microsoft.Sales.Pricing."Sales Price Lists" | |
| PriceListHeader | Table Microsoft.Pricing.PriceList."Price List Header" |