KVSKBACopyItem
Summary: Handles Business Central events for Copy Item, including On After Init Copy Item Buffer, On Copy Item On After Copy Extended Texts, and On Copy Item On After Copy Item.
Events
OnBeforeOnCopyItemOnAfterCopyExtendedTexts(Record Item, Record Item, Boolean) :
Summary: Integration event triggered before copying extended texts during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnCopyItemOnAfterCopyExtendedTexts(var SourceItem: Record "Item"; var TargetItem: Record "Item"; var IsHandled: Boolean):
Parameters:
SourceItem: The source item from which extended texts are being copied.TargetItem: The target item to which extended texts are being copied.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of extended text copying behavior before the standard process begins.
OnAfterOnCopyItemOnAfterCopyExtendedTexts(Record Item, Record Item) :
Summary: Integration event triggered after copying extended texts during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterOnCopyItemOnAfterCopyExtendedTexts(var SourceItem: Record "Item"; var TargetItem: Record "Item"):
Parameters:
SourceItem: The source item from which extended texts were copied.TargetItem: The target item to which extended texts were copied.
Remarks: Allows additional processing after extended texts have been successfully copied.
OnBeforeOnCopyItemOnAfterCopyItem(Record Copy Item Buffer, Record Item, Record Item, Boolean) :
Summary: Integration event triggered before the main item copy process begins.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnCopyItemOnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record "Item"; var TargetItem: Record "Item"; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings and options.SourceItem: The source item being copied.TargetItem: The target item being created.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of the entire item copy process before standard operations begin.
OnAfterOnCopyItemOnAfterCopyItem(Record Copy Item Buffer, Record Item, Record Item) :
Summary: Integration event triggered after the main item copy process is completed.
[IntegrationEvent(false, false)]
local procedure OnAfterOnCopyItemOnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record "Item"; var TargetItem: Record "Item"):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings and options.SourceItem: The source item that was copied.TargetItem: The target item that was created.
Remarks: Allows additional processing after all standard item copy operations have been completed.
OnBeforeCopyKVSKBAItemSalesPrices(Record Copy Item Buffer, Code[20], Code[20], Boolean) :
Summary: Integration event triggered before copying custom sales prices during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBAItemSalesPrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number being copied from.ToItemNo: The item number being copied to.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of sales price copying behavior when copying items.
OnAfterCopyKVSKBAItemSalesPrices(Record Copy Item Buffer, Code[20], Code[20]) :
Summary: Integration event triggered after copying custom sales prices during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBAItemSalesPrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number that was copied from.ToItemNo: The item number that was copied to.
Remarks: Allows additional processing after sales prices have been copied.
OnBeforeCopyKVSKBASalesLineDiscounts(Record Copy Item Buffer, Code[20], Code[20], Boolean) :
Summary: Integration event triggered before copying custom sales line discounts during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBASalesLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number being copied from.ToItemNo: The item number being copied to.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of sales line discount copying behavior when copying items.
OnAfterCopyKVSKBASalesLineDiscounts(Record Copy Item Buffer, Code[20], Code[20]) :
Summary: Integration event triggered after copying custom sales line discounts during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBASalesLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number that was copied from.ToItemNo: The item number that was copied to.
Remarks: Allows additional processing after sales line discounts have been copied.
OnBeforeCopyKVSKBAPurchasePrices(Record Copy Item Buffer, Code[20], Code[20], Boolean) :
Summary: Integration event triggered before copying custom purchase prices during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBAPurchasePrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number being copied from.ToItemNo: The item number being copied to.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of purchase price copying behavior when copying items.
OnAfterCopyKVSKBAPurchasePrices(Record Copy Item Buffer, Code[20], Code[20]) :
Summary: Integration event triggered after copying custom purchase prices during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBAPurchasePrices(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number that was copied from.ToItemNo: The item number that was copied to.
Remarks: Allows additional processing after purchase prices have been copied.
OnBeforeCopyKVSKBAPurchaseLineDiscounts(Record Copy Item Buffer, Code[20], Code[20], Boolean) :
Summary: Integration event triggered before copying custom purchase line discounts during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyKVSKBAPurchaseLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number being copied from.ToItemNo: The item number being copied to.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of purchase line discount copying behavior when copying items.
OnAfterCopyKVSKBAPurchaseLineDiscounts(Record Copy Item Buffer, Code[20], Code[20]) :
Summary: Integration event triggered after copying custom purchase line discounts during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopyKVSKBAPurchaseLineDiscounts(var CopyItemBuffer: Record "Copy Item Buffer"; FromItemNo: Code[20]; ToItemNo: Code[20]):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItemNo: The item number that was copied from.ToItemNo: The item number that was copied to.
Remarks: Allows additional processing after purchase line discounts have been copied.
OnBeforeSetMandatoryFieldsStatus(Record Item, Boolean) :
Summary: Integration event triggered before setting mandatory fields status on the target item.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetMandatoryFieldsStatus(var TargetItem: Record "Item"; var IsHandled: Boolean):
Parameters:
TargetItem: The target item for which mandatory fields status is being set.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of mandatory fields processing during item copy operations.
OnAfterSetMandatoryFieldsStatus(Record Item) :
Summary: Integration event triggered after setting mandatory fields status on the target item.
[IntegrationEvent(false, false)]
local procedure OnAfterSetMandatoryFieldsStatus(var TargetItem: Record "Item"):
Parameters:
TargetItem: The target item for which mandatory fields status was set.
Remarks: Allows additional processing after mandatory fields have been processed.
OnBeforeCopyProdBOMs(Record Copy Item Buffer, Record Item, Record Item, Boolean) :
Summary: Integration event triggered before copying production BOMs during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyProdBOMs(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItem: The source item from which production BOMs are being copied.ToItem: The target item to which production BOMs are being copied.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of production BOM copying behavior during item copy operations.
OnAfterCopyProdBOMs(Record Copy Item Buffer, Record Item, Record Item) :
Summary: Integration event triggered after copying production BOMs during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopyProdBOMs(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItem: The source item from which production BOMs were copied.ToItem: The target item to which production BOMs were copied.
Remarks: Allows additional processing after production BOMs have been copied.
OnBeforeCopyRoutings(Record Copy Item Buffer, Record Item, Record Item, Boolean) :
Summary: Integration event triggered before copying routings during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyRoutings(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItem: The source item from which routings are being copied.ToItem: The target item to which routings are being copied.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of routing copying behavior during item copy operations.
OnAfterCopyRoutings(Record Copy Item Buffer, Record Item, Record Item) :
Summary: Integration event triggered after copying routings during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopyRoutings(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItem: The source item from which routings were copied.ToItem: The target item to which routings were copied.
Remarks: Allows additional processing after routings have been copied.
OnBeforeCopySubscriptionPackages(Record Copy Item Buffer, Record Item, Record Item, Boolean) :
Summary: Integration event triggered before copying subscription packages during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopySubscriptionPackages(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"; var IsHandled: Boolean):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItem: The source item from which subscription packages are being copied.ToItem: The target item to which subscription packages are being copied.IsHandled: Set to true if the event is handled by a subscriber and default processing should be skipped.
Remarks: Allows customization of subscription package copying behavior during item copy operations.
OnAfterCopySubscriptionPackages(Record Copy Item Buffer, Record Item, Record Item) :
Summary: Integration event triggered after copying subscription packages during item copy operations.
[IntegrationEvent(false, false)]
local procedure OnAfterCopySubscriptionPackages(var CopyItemBuffer: Record "Copy Item Buffer"; FromItem: Record "Item"; var ToItem: Record "Item"):
Parameters:
CopyItemBuffer: The copy item buffer containing copy settings.FromItem: The source item from which subscription packages were copied.ToItem: The target item to which subscription packages were copied.
Remarks: Allows additional processing after subscription packages have been copied.