Skip to content

Codeunit WSB_ItemPriceImportMgtTTE

Provides functionality for importing/exporting and handling prices.

Properties

Name Value
Access Public

Methods

wgFncApplyFactorToCalculateUnitPrice

Applies a factor to calculate the new UnitPrice.

Parameters

Type Name Description
Record "WSB_ItemPriceImportTTE" vRecItemPriceImport The Item Price Import record to apply the change to.

wgFncExportItemPriceImportLines

Exports item price import lines to a file.

Parameters

Type Name Description
Record "WSB_ItemPriceImportTTE" vRecWSB_ItemPriceImportTTE The item price import lines to export.

wgFncExportPriceListLinesToItemPriceExportTemplate

Exports to CSV Template via XML Port.

Parameters

Type Name Description
Record "Price List Line" vRecPriceListLine The Price List Line records to export.

wgFncImportItemPriceImportLines

Imports item price import lines from a file.

wgFncValidatePriceLines

Validates the price import lines in the filter.

Parameters

Type Name Description
Record "WSB_ItemPriceImportTTE" vRecWSBItemPriceImport The item price import lines to validate.
Boolean pVerbose Whether to show a progress dialog and success message.

wgFncSubmitPriceLines

Submits the price import lines in the filter.

Parameters

Type Name Description
Record "WSB_ItemPriceImportTTE" vRecWSBItemPriceImport The item price import lines to submit.
Boolean pVerbose Whether to show a progress dialog and summary message.

wlEvpOnBeforeCreateOrUpdateItemVendor

Raised before creating or updating an Item Vendor record from a price import line.

Parameters

Type Name Description
Record "WSB_ItemPriceImportTTE" pRecWSBItemPriceImport The item price import line being processed.
Record "Item" pRecItem The item record associated with the price import line.
Boolean vIsHandled Set to true to skip the default create or update logic.

wlEvpOnBeforeInsertItemVariant

Raised before inserting a new item variant from a price import line.

Parameters

Type Name Description
Record "Item Variant" vRecItemVariant The item variant record to be inserted.
Record "WSB_ItemPriceImportTTE" pRecWSBItemPriceImport The item price import line being processed.

wlEvpOnBeforeInsertItemVendor

Raised before inserting a new item vendor record from a price import line.

Parameters

Type Name Description
Record "Item Vendor" vRecItemVendor The item vendor record to be inserted.
Record "WSB_ItemPriceImportTTE" pRecWSBItemPriceImport The item price import line being processed.

wlEvpOnBeforeModifyItem

Raised before modifying an item record from a price import line.

Parameters

Type Name Description
Record "Item" vRecItem The item record to be modified.
Record "WSB_ItemPriceImportTTE" pRecWSBItemPriceImport The item price import line being processed.
Boolean vModify Whether the item record has been modified and needs to be saved.

wlEvpOnBeforeModifyItemVariant

Raised before modifying an item variant record from a price import line.

Parameters

Type Name Description
Record "Item Variant" vRecItemVariant The item variant record to be modified.
Record "WSB_ItemPriceImportTTE" pRecWSBItemPriceImport The item price import line being processed.
Boolean vModify Whether the item variant record has been modified and needs to be saved.

wlEvpOnBeforeModifyItemVendor

Raised before modifying an item vendor record from a price import line.

Parameters

Type Name Description
Record "Item Vendor" vRecItemVendor The item vendor record to be modified.
Record "WSB_ItemPriceImportTTE" pRecWSBItemPriceImport The item price import line being processed.
Boolean vModify Whether the item vendor record has been modified and needs to be saved.

wlEvpOnBeforeInsertPriceListLine

Raised before inserting a new price list line from a price import line.

Parameters

Type Name Description
Record "Price List Header" pRecPriceListHdr The price list header the line belongs to.
Record "Price List Line" vRecPriceListLine The price list line record to be inserted.
Record "WSB_ItemPriceImportTTE" pRecWSB_ItemPriceImport The item price import line being processed.

wlEvpOnBeforeModifyPriceListLine

Raised before modifying an existing price list line from a price import line.

Parameters

Type Name Description
Record "Price List Header" pRecPriceListHdr The price list header the line belongs to.
Record "Price List Line" vRecPriceListLine The price list line record to be modified.
Record "WSB_ItemPriceImportTTE" pRecWSB_ItemPriceImport The item price import line being processed.
Boolean vModify Whether the price list line record has been modified and needs to be saved.

wlEvpOnBeforeUpdateItemUnitCostIfViable

Raised before updating the item unit cost from a price import line, if viable.

Parameters

Type Name Description
Record "Item" vRecItem The item record whose unit cost may be updated.
Code[20] pImportVendorNo The vendor number from the price import line.
Decimal pImportDirectUnitCost The direct unit cost from the price import line.
Boolean vUpdated Whether the unit cost was updated.
Boolean vIsHandled Set to true to skip the default update logic.