Codeunit 18091266 EOS028 CFG Price Matrix Mgt.
Codeunit 18091266 EOS028 CFG Price Matrix Mgt.
Methods
SetPrice
procedure SetPrice(var NewConfiguratorLine: Record "EOS028 CFG Configurator Line")
This procedure gets matrix price of a new configuration.
Parameters / Return Value
NewConfiguratorLine
Record "EOS028 CFG Configurator Line"
“NewConfiguratorLine” where to look for the matrix price
SetPriceSubLevels
procedure SetPriceSubLevels(var NewConfiguratorLine: Record "EOS028 CFG Configurator Line")
Parameters / Return Value
- NewConfiguratorLine
Record "EOS028 CFG Configurator Line"
SetUnitPriceFromPriceOrigin
procedure SetUnitPriceFromPriceOrigin(var PricesMatrix: Record "EOS028 CFG Prices Matrix"; ItemNo: Code[20]; ResourceNo: Code[20])
Parameters / Return Value
PricesMatrix
Record "EOS028 CFG Prices Matrix"
ItemNo
Code[20]
ResourceNo
Code[20]
SetPriceFromConfigItem
procedure SetPriceFromConfigItem(SetFromConfigItem: Boolean; ConfigItemNo: Code[20])
Parameters / Return Value
SetFromConfigItem
Boolean
ConfigItemNo
Code[20]
CopyPrice
procedure CopyPrice(NewConfiguratorLine: Record "EOS028 CFG Configurator Line")
This procedure copies matrix prices in “Price List Line” table.
Parameters / Return Value
NewConfiguratorLine
Record "EOS028 CFG Configurator Line"
“NewConfiguratorLine” which contains the matrix price
SetUpdatePriceList
procedure SetUpdatePriceList(Update_PriceList: Boolean)
Parameters / Return Value
- Update_PriceList
Boolean
Events
OnAfterPricesMatrix_ApplyFilters
local procedure OnAfterPricesMatrix_ApplyFilters(var PricesMatrix: Record "EOS028 CFG Prices Matrix")
This event is raised after apply filters on price matrix for search the matrix prices.
Parameters / Return Value
PricesMatrix
Record "EOS028 CFG Prices Matrix"
“PricesMatrix” where apply filters
OnAfterApplyFiltersAllPrice
local procedure OnAfterApplyFiltersAllPrice(var PricesMatrix: Record "EOS028 CFG Prices Matrix"; UpdatePriceList: Boolean)
This event is raised after apply filters on price matrix for search all the matrix prices.
Parameters / Return Value
PricesMatrix
Record "EOS028 CFG Prices Matrix"
“PricesMatrix” where apply filters
UpdatePriceList
Boolean
if true, specifies that the configurator is creating the price list line
OnAfterApplyFiltersForCustomer
local procedure OnAfterApplyFiltersForCustomer(var PricesMatrix: Record "EOS028 CFG Prices Matrix")
This event is raised after apply filters on price matrix for search customer matrix prices.
Parameters / Return Value
PricesMatrix
Record "EOS028 CFG Prices Matrix"
“PricesMatrix” where apply filters
OnAfterApplyFiltersForCustomerPriceGroup
local procedure OnAfterApplyFiltersForCustomerPriceGroup(var PricesMatrix: Record "EOS028 CFG Prices Matrix")
This event is raised after apply filters on price matrix for search customer price group matrix prices.
Parameters / Return Value
PricesMatrix
Record "EOS028 CFG Prices Matrix"
“PricesMatrix” where apply filters
OnBeforeCalcBestUnitPrice
local procedure OnBeforeCalcBestUnitPrice(var ConfiguratorLine: Record "EOS028 CFG Configurator Line"; var BestPricesMatrix: Record "EOS028 CFG Prices Matrix"; var IsHandled: Boolean)
This event is raised before calculate best unit price matrix.
Parameters / Return Value
ConfiguratorLine
Record "EOS028 CFG Configurator Line"
“ConfiguratorLine” where to look for the matrix price
BestPricesMatrix
Record "EOS028 CFG Prices Matrix"
“BestPricesMatrix” contains the best unit price matrix
IsHandled
Boolean
If true, procedure stops and not save unit price in configurator line. If false the procedure continues and save unit price in configurator line
OnAfterCalcBestUnitPrice
local procedure OnAfterCalcBestUnitPrice(var BestPricesMatrix: Record "EOS028 CFG Prices Matrix"; var FoundMatrixPrice: Boolean; var ConfiguratorLine: Record "EOS028 CFG Configurator Line")
This event is raised after calculate best unit price matrix.
Parameters / Return Value
BestPricesMatrix
Record "EOS028 CFG Prices Matrix"
“BestPricesMatrix” contains the best unit price matrix
FoundMatrixPrice
Boolean
If true, procedure saves unit price in configurator line.
ConfiguratorLine
Record "EOS028 CFG Configurator Line"
“ConfiguratorLine” where to look for the matrix price
OnBeforeCalcHierarchicalUnitPrice
local procedure OnBeforeCalcHierarchicalUnitPrice(var ConfiguratorLine: Record "EOS028 CFG Configurator Line"; var PricesMatrix: Record "EOS028 CFG Prices Matrix"; var IsHandled: Boolean)
This event is raised before calculate hierarchical unit price matrix.
Parameters / Return Value
ConfiguratorLine
Record "EOS028 CFG Configurator Line"
“Configurator Line” where to look for the matrix price
PricesMatrix
Record "EOS028 CFG Prices Matrix"
Contains the Prices Matrix with the valid lines
IsHandled
Boolean
If true, procedure stops and not save unit price in configurator line
OnAfterCalcHierarchicalUnitPrice
local procedure OnAfterCalcHierarchicalUnitPrice(var ConfiguratorLine: Record "EOS028 CFG Configurator Line"; var PricesMatrix: Record "EOS028 CFG Prices Matrix"; var FoundMatrixPrice: Boolean)
This event is raised after calculate hierarchical unit price matrix.
Parameters / Return Value
ConfiguratorLine
Record "EOS028 CFG Configurator Line"
“Configurator Line” where to look for the matrix price
PricesMatrix
Record "EOS028 CFG Prices Matrix"
Contains the Prices Matrix line that was found by priority
FoundMatrixPrice
Boolean
If true, procedure saves the unit price of the record PricesMatrix in configurator line
OnSearchPriceByPriceCalcMethod
local procedure OnSearchPriceByPriceCalcMethod(var ConfiguratorLine: Record "EOS028 CFG Configurator Line"; var PricesMatrix: Record "EOS028 CFG Prices Matrix"; var FoundMatrixPrice: Boolean; PriceCalcMethod: Enum "EOS028 CFG Price Matrix Calc.")
This event is raised when the price calculation method is not defined by standard. It is used to add custom calculation methods.
Parameters / Return Value
ConfiguratorLine
Record "EOS028 CFG Configurator Line"
“Configurator Line” where to look for the matrix price
PricesMatrix
Record "EOS028 CFG Prices Matrix"
Contains the Prices Matrix with the valid lines
FoundMatrixPrice
Boolean
If true, procedure saves the unit price of the record PricesMatrix in configurator line
PriceCalcMethod
Enum "EOS028 CFG Price Matrix Calc."
The price calculation method specified in the configurator setup
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.