KVSTRDCatalogItemMgt#
Procedures#
CreateItemFromCatalogItem(Record KVSTRDCatalogItem, Boolean) :#
Summary: This procedure creates or updates an item based on the provided catalog item.
procedure CreateItemFromCatalogItem(CatalogItem: Record "KVSTRDCatalogItem"; HideDialog: Boolean):
Parameters:
CatalogItem: The current catalog item record from which the item will be created.HideDialog: A Boolean value that can be used to prevent error messages and instead generate a log entry (in table KVSTRDCatalogItemImportLog).
NonstockAutoItem(Record KVSTRDCatalogItem) :#
Summary: This procedure creates an item from a catalog item and shows a message indicating that the item has been created.
procedure NonstockAutoItem(CatalogItem: Record "KVSTRDCatalogItem"):
Parameters:
CatalogItem: The current catalog item record.
UpdateStatus(Enum KVSTRDCatalogItemImportLogType, Text[250], Boolean) :#
Summary: This procedure updates the status of the catalog item import log with the specified type, message text, and error flag.
procedure UpdateStatus(CatalogItemImportLogType: Enum "KVSTRDCatalogItemImportLogType"; TextValue: Text[250]; IsError: Boolean):
Parameters:
CatalogItemImportLogType: The type of the catalog item import log.TextValue: The message text to log.IsError: Specifies if the log entry is an error or not.
Events#
KVSTRDOnHandleItemCreationTemplateLineCaseDatabaseCatalogItemElse(Record KVSTRDItemCreationTemplateLine, Record Item, Integer, Record KVSTRDCatalogItem, Boolean) :#
Summary: This event is raised when creating an item from a Item Catalog line and the field no. is not a standard or a KUMAVISION Trade field. It allows for custom handling of the item creation template line.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnHandleItemCreationTemplateLineCaseDatabaseCatalogItemElse(var ItemCreationTemplateLine: Record "KVSTRDItemCreationTemplateLine"; var Item: Record "Item"; var ItemFieldNo: Integer; var CatalogItem: Record "KVSTRDCatalogItem"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnHandleItemCreationTemplateLineCaseDatabaseCatalogItemElse', '', false, false)]
local procedure DoSomethingKVSTRDOnHandleItemCreationTemplateLineCaseDatabaseCatalogItemElse(var ItemCreationTemplateLine: Record "KVSTRDItemCreationTemplateLine"; var Item: Record "Item"; var ItemFieldNo: Integer; var CatalogItem: Record "KVSTRDCatalogItem"; var IsHandled: Boolean)
begin
end;
Parameters:
ItemCreationTemplateLine: The item creation template line being processed.Item: The item being created or updated.ItemFieldNo: The field number of the item being processed.CatalogItem: The catalog item associated with the item creation template line.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnAfterAssignCatalogItemFieldsToItem(Record Item, Record KVSTRDCatalogItem) :#
Summary: This event is raised after the fields from the catalog item are assigned to the item. It allows additional customization to the item or catalog item after the assignment.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterAssignCatalogItemFieldsToItem(var Item: Record "Item"; var CatalogItem: Record "KVSTRDCatalogItem"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterAssignCatalogItemFieldsToItem', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterAssignCatalogItemFieldsToItem(var Item: Record "Item"; var CatalogItem: Record "KVSTRDCatalogItem")
begin
end;
Parameters:
Item: The item being created or updated.CatalogItem: The catalog item from which fields are assigned.
KVSTRDOnAfterGlobalItemSuccessfulInsertedAndUpdated(Record KVSTRDCatalogItem, Code[20]) :#
Summary: This event is raised after a global item has been successfully inserted or updated. It allows additional processing after the item has been created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterGlobalItemSuccessfulInsertedAndUpdated(var CatalogItem: Record "KVSTRDCatalogItem"; NewItemNo: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterGlobalItemSuccessfulInsertedAndUpdated', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterGlobalItemSuccessfulInsertedAndUpdated(var CatalogItem: Record "KVSTRDCatalogItem"; NewItemNo: Code[20])
begin
end;
Parameters:
CatalogItem: The catalog item that was used to create or update the item.NewItemNo: The item number assigned to the new item.
KVSTRDOnAfterInsertOrUpdatePriceListPurchaseDiscount(Record KVSTRDCatalogItem, Record KVSTRDCatItemPurchaseDiscount) :#
Summary: This event is raised after a purchase discount has been inserted or updated in the price list. It allows additional processing after the purchase discount has been created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertOrUpdatePriceListPurchaseDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchaseDiscount: Record "KVSTRDCatItemPurchaseDiscount"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterInsertOrUpdatePriceListPurchaseDiscount', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertOrUpdatePriceListPurchaseDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchaseDiscount: Record "KVSTRDCatItemPurchaseDiscount")
begin
end;
Parameters:
CatalogItem: The catalog item associated with the purchase discount.CatItemPurchaseDiscount: The purchase discount record that was inserted or updated.
KVSTRDOnAfterInsertOrUpdatePriceListPurchasePrice(Record KVSTRDCatalogItem, Record KVSTRDCatItemPurchasePrice) :#
Summary: This event is raised after a purchase price has been inserted or updated in the price list. It allows additional processing after the purchase price has been created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertOrUpdatePriceListPurchasePrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchasePrice: Record "KVSTRDCatItemPurchasePrice"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterInsertOrUpdatePriceListPurchasePrice', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertOrUpdatePriceListPurchasePrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchasePrice: Record "KVSTRDCatItemPurchasePrice")
begin
end;
Parameters:
CatalogItem: The catalog item associated with the purchase price.CatItemPurchasePrice: The purchase price record that was inserted or updated.
KVSTRDOnAfterInsertOrUpdatePriceListSalesDiscount(Record KVSTRDCatalogItem, Record KVSTRDCatItemSalesDiscount) :#
Summary: This event is raised after a sales discount has been inserted or updated in the price list. It allows additional processing after the sales discount has been created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertOrUpdatePriceListSalesDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesDiscount: Record "KVSTRDCatItemSalesDiscount"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterInsertOrUpdatePriceListSalesDiscount', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertOrUpdatePriceListSalesDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesDiscount: Record "KVSTRDCatItemSalesDiscount")
begin
end;
Parameters:
CatalogItem: The catalog item associated with the sales discount.CatItemSalesDiscount: The sales discount record that was inserted or updated.
KVSTRDOnAfterInsertOrUpdatePriceListSalesPrice(Record KVSTRDCatalogItem, Record KVSTRDCatItemSalesPrice) :#
Summary: This event is raised after a sales price has been inserted or updated in the price list. It allows additional processing after the sales price has been created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertOrUpdatePriceListSalesPrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesPrice: Record "KVSTRDCatItemSalesPrice"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterInsertOrUpdatePriceListSalesPrice', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertOrUpdatePriceListSalesPrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesPrice: Record "KVSTRDCatItemSalesPrice")
begin
end;
Parameters:
CatalogItem: The catalog item associated with the sales price.CatItemSalesPrice: The sales price record that was inserted or updated.
KVSTRDOnBeforeInsertOrUpdatePriceListPurchaseDiscount(Record KVSTRDCatalogItem, Record KVSTRDCatItemPurchaseDiscount, Boolean) :#
Summary: This event is raised before a purchase discount is inserted or updated in the price list. It allows custom logic to be executed before the purchase discount is created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertOrUpdatePriceListPurchaseDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchaseDiscount: Record "KVSTRDCatItemPurchaseDiscount"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeInsertOrUpdatePriceListPurchaseDiscount', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertOrUpdatePriceListPurchaseDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchaseDiscount: Record "KVSTRDCatItemPurchaseDiscount"; var IsHandled: Boolean)
begin
end;
Parameters:
CatalogItem: The catalog item associated with the purchase discount.CatItemPurchaseDiscount: The purchase discount record that will be inserted or updated.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeInsertOrUpdatePriceListPurchasePrice(Record KVSTRDCatalogItem, Record KVSTRDCatItemPurchasePrice, Boolean) :#
Summary: This event is raised before a purchase price is inserted or updated in the price list. It allows custom logic to be executed before the purchase price is created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertOrUpdatePriceListPurchasePrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchasePrice: Record "KVSTRDCatItemPurchasePrice"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeInsertOrUpdatePriceListPurchasePrice', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertOrUpdatePriceListPurchasePrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemPurchasePrice: Record "KVSTRDCatItemPurchasePrice"; var IsHandled: Boolean)
begin
end;
Parameters:
CatalogItem: The catalog item associated with the purchase price.CatItemPurchasePrice: The purchase price record that will be inserted or updated.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeInsertOrUpdatePriceListSalesDiscount(Record KVSTRDCatalogItem, Record KVSTRDCatItemSalesDiscount, Boolean) :#
Summary: This event is raised before a sales discount is inserted or updated in the price list. It allows custom logic to be executed before the sales discount is created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertOrUpdatePriceListSalesDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesDiscount: Record "KVSTRDCatItemSalesDiscount"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeInsertOrUpdatePriceListSalesDiscount', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertOrUpdatePriceListSalesDiscount(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesDiscount: Record "KVSTRDCatItemSalesDiscount"; var IsHandled: Boolean)
begin
end;
Parameters:
CatalogItem: The catalog item associated with the sales discount.CatItemSalesDiscount: The sales discount record that will be inserted or updated.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeInsertOrUpdatePriceListSalesPrice(Record KVSTRDCatalogItem, Record KVSTRDCatItemSalesPrice, Boolean) :#
Summary: This event is raised before a sales price is inserted or updated in the price list. It allows custom logic to be executed before the sales price is created or updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertOrUpdatePriceListSalesPrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesPrice: Record "KVSTRDCatItemSalesPrice"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeInsertOrUpdatePriceListSalesPrice', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertOrUpdatePriceListSalesPrice(var CatalogItem: Record "KVSTRDCatalogItem"; var CatItemSalesPrice: Record "KVSTRDCatItemSalesPrice"; var IsHandled: Boolean)
begin
end;
Parameters:
CatalogItem: The catalog item associated with the sales price.CatItemSalesPrice: The sales price record that will be inserted or updated.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeNonStockUnitOfMeasure(Record KVSTRDCatalogItem, Boolean) :#
Summary: This event is raised before the unit of measure is set or created for an item which is currently beeing created from a catalog item. It allows custom logic to be executed before the unit of measure is assigned.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeNonStockUnitOfMeasure(var CatalogItem: Record "KVSTRDCatalogItem"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeNonStockUnitOfMeasure', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeNonStockUnitOfMeasure(var CatalogItem: Record "KVSTRDCatalogItem"; var IsHandled: Boolean)
begin
end;
Parameters:
CatalogItem: The catalog item from which the item is currently being created.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeShowItemCreatedFromCatalogItemMessage(Record KVSTRDCatalogItem, Boolean) :#
Summary: This event is raised before the message is shown that an item has been created from a catalog item. It allows custom logic to be executed before the message is displayed.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeShowItemCreatedFromCatalogItemMessage(var CatalogItem: Record "KVSTRDCatalogItem"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeShowItemCreatedFromCatalogItemMessage', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeShowItemCreatedFromCatalogItemMessage(var CatalogItem: Record "KVSTRDCatalogItem"; var IsHandled: Boolean)
begin
end;
Parameters:
CatalogItem: The catalog item from which the item has been created.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeUpdateItemFromCatalogItemOnAfterGetItem(Record KVSTRDCatalogItem) :#
Summary: This event is raised before the item is updated from a catalog item after it has been retrieved. It allows custom logic to be executed before the item is updated.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeUpdateItemFromCatalogItemOnAfterGetItem(var CatalogItem: Record "KVSTRDCatalogItem"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeUpdateItemFromCatalogItemOnAfterGetItem', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeUpdateItemFromCatalogItemOnAfterGetItem(var CatalogItem: Record "KVSTRDCatalogItem")
begin
end;
Parameters:
CatalogItem: The catalog item from which the item is being updated.
KVSTRDOnAfterItemInsertNewAndUpdateAll(Record KVSTRDCatalogItem, Record Item, Record KVSTRDItemCreationTemplate, Boolean, Boolean) :#
Summary: This event is raised at the end of function ItemInsertNewAndUpdateAll before it exists with return value true.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterItemInsertNewAndUpdateAll(var CatalogItem: Record "KVSTRDCatalogItem"; var GlobalItem: Record "Item"; var ItemCreationTemplate: Record "KVSTRDItemCreationTemplate"; ItemInserted: Boolean; AddOrUpdate: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterItemInsertNewAndUpdateAll', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterItemInsertNewAndUpdateAll(var CatalogItem: Record "KVSTRDCatalogItem"; var GlobalItem: Record "Item"; var ItemCreationTemplate: Record "KVSTRDItemCreationTemplate"; ItemInserted: Boolean; AddOrUpdate: Boolean)
begin
end;
Parameters:
CatalogItem: The current record of table KVSTRDCatalogItemGlobalItem: The current Item-RecordItemCreationTemplate: The current item creation template being processed.ItemInserted: Specifies if the item has been inserted.AddOrUpdate: Specifies if the item record has been modified and other information like prices an extended texts have been transfered.
KVSTRDOnBeforeInsertExtendedTextHeader(Record Extended Text Header, Record KVSTRDCatalogTextHeader, Record KVSTRDCatalogItem) :#
Summary: This event is raised before inserting an extended text header when transferring extended texts from a catalog item to an item. It allows custom logic to be executed before the extended text header is inserted.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertExtendedTextHeader(var ExtendedTextHeader: Record "Extended Text Header"; var CatalogTextHeader: Record "KVSTRDCatalogTextHeader"; var CatalogItem: Record "KVSTRDCatalogItem"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeInsertExtendedTextHeader', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertExtendedTextHeader(var ExtendedTextHeader: Record "Extended Text Header"; var CatalogTextHeader: Record "KVSTRDCatalogTextHeader"; var CatalogItem: Record "KVSTRDCatalogItem")
begin
end;
Parameters:
ExtendedTextHeader: The extended text header record to be inserted.CatalogTextHeader: The catalog text header record where the information is copied from.CatalogItem: The current catalog item record.
KVSTRDOnBeforeInsertExtendedTextLine(Record Extended Text Line, Record KVSTRDCatalogItemTextLine, Record KVSTRDCatalogItem) :#
Summary: This event is raised before inserting an extended text line when transferring extended texts from a catalog item to an item. It allows custom logic to be executed before the extended text line is inserted.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertExtendedTextLine(var ExtendedTextLine: Record "Extended Text Line"; var CatalogItemTextLine: Record "KVSTRDCatalogItemTextLine"; var CatalogItem: Record "KVSTRDCatalogItem"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnBeforeInsertExtendedTextLine', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertExtendedTextLine(var ExtendedTextLine: Record "Extended Text Line"; var CatalogItemTextLine: Record "KVSTRDCatalogItemTextLine"; var CatalogItem: Record "KVSTRDCatalogItem")
begin
end;
Parameters:
ExtendedTextLine: The extended text line record to be inserted.CatalogItemTextLine: The catalog item text line record where the information is copied from.CatalogItem: The current catalog item record.
KVSTRDOnAfterImpNonstockImportDelete(Record KVSTRDCatalogImport) :#
Summary: This event is raised after deleting all related information of a catalog import.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterImpNonstockImportDelete(CatalogImport: Record "KVSTRDCatalogImport"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterImpNonstockImportDelete', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterImpNonstockImportDelete(CatalogImport: Record "KVSTRDCatalogImport")
begin
end;
Parameters:
CatalogImport: The current catalog import record.
KVSTRDOnAfterImpCatalogItemDelete(Record KVSTRDCatalogItem) :#
Summary: This event is raised after deleting all related information of a catalog item.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterImpCatalogItemDelete(var CatalogItem: Record "KVSTRDCatalogItem"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDCatalogItemMgt", 'KVSTRDOnAfterImpCatalogItemDelete', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterImpCatalogItemDelete(var CatalogItem: Record "KVSTRDCatalogItem")
begin
end;
Parameters:
CatalogItem: The current catalog item record.