Codeunit 18090700 EOS028 CFG Purch. Price Mgt.

Codeunit 18090700 EOS028 CFG Purch. Price Mgt.

Methods

FindItemPrice

procedure FindItemPrice(VendorNo: Code[20]; ItemNo: Code[20]; CurrencyCode: code[10]; CurrencyFactor: Decimal; CalculateDate: Date)

Parameters / Return Value

  • VendorNo Code[20]

  • ItemNo Code[20]

  • CurrencyCode code[10]

  • CurrencyFactor Decimal

  • CalculateDate Date


GetUnitPrice

procedure GetUnitPrice(): Decimal

Parameters / Return Value

  • Returns Decimal

InsertPriceFromPriceMatrix

procedure InsertPriceFromPriceMatrix(ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

Parameters / Return Value

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

  • PricesMatrix Record "EOS028 CFG Prices Matrix"


InsertPurchPriceFromPriceMatrix

procedure InsertPurchPriceFromPriceMatrix(ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

Parameters / Return Value

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

  • PricesMatrix Record "EOS028 CFG Prices Matrix"


InsertPriceListLineFromPriceMatrix

procedure InsertPriceListLineFromPriceMatrix(ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

This procedure copies matrix price in “Price List Line” standard table.

Parameters / Return Value

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

    “ConfiguratorLine” contains the configuration

  • PricesMatrix Record "EOS028 CFG Prices Matrix"

    “PricesMatrix” to copy


Events

OnBeforeInsertPurchPriceFromPriceMatrix

local procedure OnBeforeInsertPurchPriceFromPriceMatrix(var PurchasePrice: Record "Purchase Price"; ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

This event is raised before inserting “Purchase Price” record.

Parameters / Return Value

  • PurchasePrice Record "Purchase Price"

    “PurchasePrice” record after insertion

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

    “ConfiguratorLine” contains the configuration

  • PricesMatrix Record "EOS028 CFG Prices Matrix"

    “PricesMatrix” to copy


OnAfterInsertPurchPriceFromPriceMatrix

local procedure OnAfterInsertPurchPriceFromPriceMatrix(var PurchasePrice: Record "Purchase Price"; ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

This event is raised after inserting “Purchase Price” record.

Parameters / Return Value

  • PurchasePrice Record "Purchase Price"

    “PurchasePrice” record after insertion

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

    “ConfiguratorLine” contains the configuration

  • PricesMatrix Record "EOS028 CFG Prices Matrix"

    “PricesMatrix” to copy


OnBeforeInsertPriceListLineFromPriceMatrix

local procedure OnBeforeInsertPriceListLineFromPriceMatrix(var PriceListLine: Record "Price List Line"; ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

This event is raised before inserting “Price List Line” record.

Parameters / Return Value

  • PriceListLine Record "Price List Line"

    “PriceListLine” record before insertion

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

    “ConfiguratorLine” contains the configuration

  • PricesMatrix Record "EOS028 CFG Prices Matrix"

    “PricesMatrix” to copy


OnAfterInsertPriceListLineFromPriceMatrix

local procedure OnAfterInsertPriceListLineFromPriceMatrix(var PriceListLine: Record "Price List Line"; ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix")

This event is raised before inserting “Price List Line” record.

Parameters / Return Value

  • PriceListLine Record "Price List Line"

    “PriceListLine” record before insertion

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

    “ConfiguratorLine” contains the configuration

  • PricesMatrix Record "EOS028 CFG Prices Matrix"

    “PricesMatrix” to copy


OnBeforeModifyPriceListLineFromPriceMatrix

local procedure OnBeforeModifyPriceListLineFromPriceMatrix(var PriceListLine: Record "Price List Line"; ConfiguratorLine: Record "EOS028 CFG Configurator Line"; PricesMatrix: Record "EOS028 CFG Prices Matrix"; IsNewPriceListLine: Boolean; var IsHandled: Boolean)

Raised before modify the Price List Line from Prices Matrix after the configuration.

Parameters / Return Value

  • PriceListLine Record "Price List Line"

    Record “Price List Line” to modify

  • ConfiguratorLine Record "EOS028 CFG Configurator Line"

    “ConfiguratorLine” contains the configuration

  • PricesMatrix Record "EOS028 CFG Prices Matrix"

    The Prices Matrix to copy

  • IsNewPriceListLine Boolean

    Specifies if the “PriceListLine” is a New Record or if it already exists.

  • IsHandled Boolean

    if true, doesn’t modify the Price List Line



EOS Labs -