KVSKBAItemLib#
Procedures#
GetLineInfos(Record Production BOM Line, Code[20], Code[20]) :#
Summary: Gets line information from a Production BOM Line including routing and production BOM details.
procedure GetLineInfos(ProductionBOMLine: Record "Production BOM Line"; var RoutingNo: Code[20]; var ProductionBOMNoLine: Code[20]):
Parameters:
ProductionBOMLine: Production BOM Line record to extract information fromRoutingNo: Variable to store the routing numberProductionBOMNoLine: Variable to store the production BOM number
Remarks: Extracts routing and production BOM information based on the type of the Production BOM Line (Item or Production BOM)
ShowRoutingNo(Record Item) :#
Summary: Function show the routing card or routing bom version card, depending on Item."Routing No." If Item."Routing No." empty, a new routing is created.
procedure ShowRoutingNo(var Item: Record "Item"):
Parameters:
Item:
ShowProductionBOMNo(Record Item) :#
Summary: Function show the production bom card or production version card If Item."Production BOM No." empty, a new "Production BOM Header" is created.
procedure ShowProductionBOMNo(var Item: Record "Item"):
Parameters:
Item:
CheckSalesBlocked(Record Sales Line) :#
Summary: Checks if sales are blocked for an item on a sales line.
procedure CheckSalesBlocked(SalesLine: Record "Sales Line"):
Parameters:
SalesLine: Sales line record to check for sales blocking
Remarks: Verifies that the item is not blocked for sales, except for credit document types
TestNoEntriesExist(Text[100], Record Item) :#
Summary: Tests that no open or unposted item ledger entries exist for the item.
procedure TestNoEntriesExist(CurrentFieldName: Text[100]; Item: Record "Item"):
Parameters:
CurrentFieldName: Name of the field being validatedItem: Item record to check for existing entries
Remarks: Ensures item can be modified by checking for open entries, incomplete invoicing, reservations, and cost adjustment status
IsVariantCodeMandatory(Code[20], Decimal, Variant) : Boolean#
Summary: Determines if variant code is mandatory for the given item and context.
procedure IsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal; RecRelatedVariant: Variant): Boolean
Parameters:
ItemNo: Item number to check variant requirement forQuantity: Quantity being processedRecRelatedVariant: Related record variant for context
Returns: Boolean indicating whether variant code is mandatory
Remarks: Checks item setup and context to determine if variant code must be specified. Returns false for warehouse adjustments.
CheckItemVariantBlockedTableProdOrderComponent(Record Prod. Order Component) :#
Summary: Checks item and item variant blocking status for production order components.
procedure CheckItemVariantBlockedTableProdOrderComponent(ProdOrderComponent: Record "Prod. Order Component"):
Parameters:
ProdOrderComponent: Production Order Component record to check for blocking
Remarks: Validates both item and item variant are not blocked for production consumption operations
CheckItemVariantBlockedTableTransferLine(Record Transfer Line) :#
Summary: Checks item and item variant blocking status for transfer lines.
procedure CheckItemVariantBlockedTableTransferLine(TransferLine: Record "Transfer Line"):
Parameters:
TransferLine: Transfer Line record to check for blocking
Remarks: Validates both item and item variant are not blocked for transfer order operations
GetErrorTextByVariantMandatory(Code[20]) : Text[100]#
Summary: Gets the error text for mandatory variant code validation.
procedure GetErrorTextByVariantMandatory(ItemNo: Code[20]): Text[100]
Parameters:
ItemNo: Item number for which variant is mandatory
Returns: Formatted error text indicating variant is required for the item
Events#
OnBeforeCheckSalesBlocked(Record Sales Line, Boolean) :#
Summary: Integration event that allows customization before checking sales blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckSalesBlocked(SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckSalesBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckSalesBlocked(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine: Sales line being checkedHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set Handled to true to skip standard sales blocking validation
OnBeforeCheckItemIfInInv(Record Item Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking if item is in physical inventory.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIfInInv(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemIfInInv', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIfInInv(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ItemJournalLine: Item journal line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard physical inventory validation
OnBeforeCheckItemVariantBlockedTablePurchaseLine(Record Purchase Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for purchase lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTablePurchaseLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTablePurchaseLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTablePurchaseLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseLine: Purchase line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for purchase lines
OnBeforeCheckItemVariantBlockedTableSalesLine(Record Sales Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for sales lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesLine: Sales line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for sales lines
OnBeforeGetLineInfosProductionBOMLineTypeCaseElse(Record Production BOM Line, Code[20], Code[20]) :#
Summary: Integration event that allows customization of production BOM line type handling.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetLineInfosProductionBOMLineTypeCaseElse(ProductionBOMLine: Record "Production BOM Line"; var RoutingNo: Code[20]; var ProductionBOMNoLine: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeGetLineInfosProductionBOMLineTypeCaseElse', '', false, false)]
local procedure DoSomethingOnBeforeGetLineInfosProductionBOMLineTypeCaseElse(ProductionBOMLine: Record "Production BOM Line"; var RoutingNo: Code[20]; var ProductionBOMNoLine: Code[20])
begin
end;
Parameters:
ProductionBOMLine: Production BOM line being processedRoutingNo: Variable for routing numberProductionBOMNoLine: Variable for production BOM number
Remarks: Use this event to handle custom production BOM line types not covered by standard processing
OnBeforeShowRoutingNo(Record Item, Boolean) :#
Summary: Integration event that allows customization before showing routing number.
[IntegrationEvent(false, false)]
local procedure OnBeforeShowRoutingNo(var Item: Record "Item"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowRoutingNo', '', false, false)]
local procedure DoSomethingOnBeforeShowRoutingNo(var Item: Record "Item"; var Handled: Boolean)
begin
end;
Parameters:
Item: Item record for which routing is being shownHandled: Variable indicating whether a subscriber has handled the operation
Remarks: Set Handled to true to skip standard routing display logic
OnBeforeShowRoutingNofromSKU(Record Stockkeeping Unit, Boolean) :#
Summary: Integration event that allows customization before showing routing number from SKU.
[IntegrationEvent(false, false)]
local procedure OnBeforeShowRoutingNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowRoutingNofromSKU', '', false, false)]
local procedure DoSomethingOnBeforeShowRoutingNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean)
begin
end;
Parameters:
SKU: Stockkeeping unit for which routing is being shownIsHandled: Variable indicating whether a subscriber has handled the operation
Remarks: Set IsHandled to true to skip standard SKU routing display logic
OnShowRoutingNofromSKUOnBeforeGenerateLongNoText(Record Stockkeeping Unit, Text[100], Text[1], Boolean) :#
Summary: Integration event that allows customization of long number text generation for SKU routing.
[IntegrationEvent(false, false)]
local procedure OnShowRoutingNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnShowRoutingNofromSKUOnBeforeGenerateLongNoText', '', false, false)]
local procedure DoSomethingOnShowRoutingNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean)
begin
end;
Parameters:
SKU: Stockkeeping unit being processedLongNoText: Variable for the generated textTextSeparator: Text separator used in generationIsHandled: Variable indicating whether a subscriber has handled the generation
Remarks: Set IsHandled to true to provide custom logic for generating routing number text from SKU data
OnBeforeShowProductionBOMNo(Record Item, Boolean) :#
Summary: Integration event that allows customization before showing production BOM number.
[IntegrationEvent(false, false)]
local procedure OnBeforeShowProductionBOMNo(var Item: Record "Item"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowProductionBOMNo', '', false, false)]
local procedure DoSomethingOnBeforeShowProductionBOMNo(var Item: Record "Item"; var Handled: Boolean)
begin
end;
Parameters:
Item: Item record for which production BOM is being shownHandled: Variable indicating whether a subscriber has handled the operation
Remarks: Set Handled to true to skip standard production BOM display logic
OnBeforeShowProductionBOMNofromSKU(Record Stockkeeping Unit, Boolean) :#
Summary: Integration event that allows customization before showing production BOM number from SKU.
[IntegrationEvent(false, false)]
local procedure OnBeforeShowProductionBOMNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowProductionBOMNofromSKU', '', false, false)]
local procedure DoSomethingOnBeforeShowProductionBOMNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean)
begin
end;
Parameters:
SKU: Stockkeeping unit for which production BOM is being shownIsHandled: Variable indicating whether a subscriber has handled the operation
Remarks: Set IsHandled to true to skip standard SKU production BOM display logic
OnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText(Record Stockkeeping Unit, Text[100], Text[1], Boolean) :#
Summary: Integration event that allows customization of long number text generation for SKU production BOM.
[IntegrationEvent(false, false)]
local procedure OnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText', '', false, false)]
local procedure DoSomethingOnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean)
begin
end;
Parameters:
SKU: Stockkeeping unit being processedLongNoText: Variable for the generated textTextSeparator: Text separator used in generationIsHandled: Variable indicating whether a subscriber has handled the generation
Remarks: Set IsHandled to true to provide custom logic for generating production BOM number text from SKU data
OnBeforeOnvalidateReorderingPolicy(Boolean) :#
Summary: Integration event that allows customization before validating reordering policy.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnvalidateReorderingPolicy(var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeOnvalidateReorderingPolicy', '', false, false)]
local procedure DoSomethingOnBeforeOnvalidateReorderingPolicy(var Handled: Boolean)
begin
end;
Parameters:
Handled: Variable indicating whether a subscriber has handled the validation
Remarks: Set Handled to true to skip standard reordering policy validation logic
OnCheckSalesBlockedCaseElseSalesLineType(Record Sales Line, Boolean) :#
Summary: Integration event that allows customization of sales line type handling during sales blocking check.
[IntegrationEvent(false, false)]
local procedure OnCheckSalesBlockedCaseElseSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckSalesBlockedCaseElseSalesLineType', '', false, false)]
local procedure DoSomethingOnCheckSalesBlockedCaseElseSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine: Sales line being checkedHandled: Variable indicating whether a subscriber has handled the check
Remarks: Use this event to handle custom sales line types not covered by standard item type processing
OnCheckSalesBlockedCaseItemSalesLineType(Record Sales Line, Boolean) :#
Summary: Integration event that allows customization of item type sales line handling during sales blocking check.
[IntegrationEvent(false, false)]
local procedure OnCheckSalesBlockedCaseItemSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckSalesBlockedCaseItemSalesLineType', '', false, false)]
local procedure DoSomethingOnCheckSalesBlockedCaseItemSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine: Sales line being checkedHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set Handled to true to skip standard item type sales blocking validation
OnCheckSalesBlockedOnBeforePreCheck(Record Sales Line, Boolean) :#
Summary: Integration event that allows customization before sales blocking pre-check.
[IntegrationEvent(false, false)]
local procedure OnCheckSalesBlockedOnBeforePreCheck(SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckSalesBlockedOnBeforePreCheck', '', false, false)]
local procedure DoSomethingOnCheckSalesBlockedOnBeforePreCheck(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine: Sales line being checkedHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set Handled to true to skip standard sales blocking pre-validation
OnCheckPurchaseBlockedOnBeforePreCheck(Record Purchase Line, Boolean) :#
Summary: Integration event that allows customization before purchase blocking pre-check.
[IntegrationEvent(false, false)]
local procedure OnCheckPurchaseBlockedOnBeforePreCheck(PurchaseLine: Record "Purchase Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckPurchaseBlockedOnBeforePreCheck', '', false, false)]
local procedure DoSomethingOnCheckPurchaseBlockedOnBeforePreCheck(PurchaseLine: Record "Purchase Line"; var Handled: Boolean)
begin
end;
Parameters:
PurchaseLine: Purchase line being checkedHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set Handled to true to skip standard purchase blocking pre-validation
OnBeforeIsVariantCodeMandatory(Code[20], Decimal, Variant, Boolean, Boolean) :#
Summary: Integration event that allows customization before variant code mandatory check.
[IntegrationEvent(false, false)]
local procedure OnBeforeIsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal; RecRelatedVariant: Variant; var VariantCodeIsMandatory: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeIsVariantCodeMandatory', '', false, false)]
local procedure DoSomethingOnBeforeIsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal; RecRelatedVariant: Variant; var VariantCodeIsMandatory: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ItemNo: Item number being checkedQuantity: Quantity being processedRecRelatedVariant: Related record variantVariantCodeIsMandatory: Variable indicating whether variant code is mandatoryIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to provide custom logic for determining variant code requirement
OnBeforeCheckItemVariantBlockedTableServiceLine(Record Service Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for service lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceLine: Service line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for service lines
OnBeforeCheckItemVariantBlockedTableServiceItemLine(Record Service Item Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for service item lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableServiceItemLine(ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableServiceItemLine(ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine: Service item line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for service item lines
OnBeforeCheckItemVariantBlockedTableTransferLine(Record Transfer Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for transfer lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableTransferLine(TransferLine: Record "Transfer Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableTransferLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableTransferLine(TransferLine: Record "Transfer Line"; var IsHandled: Boolean)
begin
end;
Parameters:
TransferLine: Transfer line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for transfer lines
OnBeforeCheckItemVariantBlockedTableAssemblyLine(Record Assembly Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for assembly lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableAssemblyLine(AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableAssemblyLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableAssemblyLine(AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)
begin
end;
Parameters:
AssemblyLine: Assembly line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for assembly lines
OnBeforeCheckItemVariantBlockedTableJobJournalLine(Record Job Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for job journal lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableJobJournalLine(JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableJobJournalLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableJobJournalLine(JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
JobJournalLine: Job journal line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for job journal lines
OnBeforeCheckItemVariantBlockedTableJobPlanningLine(Record Job Planning Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for job planning lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableJobPlanningLine(JobPlanningLine: Record "Job Planning Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableJobPlanningLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableJobPlanningLine(JobPlanningLine: Record "Job Planning Line"; var IsHandled: Boolean)
begin
end;
Parameters:
JobPlanningLine: Job planning line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for job planning lines
OnBeforeCheckItemVariantBlockedTableProdOrderLine(Record Prod. Order Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for production order lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableProdOrderLine(ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableProdOrderLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableProdOrderLine(ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ProdOrderLine: Production order line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for production order lines
OnBeforeCheckItemVariantBlockedTableWarehouseJournalLine(Record Warehouse Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for warehouse journal lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableWarehouseJournalLine(WarehouseJournalLine: Record "Warehouse Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableWarehouseJournalLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableWarehouseJournalLine(WarehouseJournalLine: Record "Warehouse Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
WarehouseJournalLine: Warehouse journal line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for warehouse journal lines
OnBeforeCheckItemJournalLineBlocked(Record Item Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking item journal line blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemJournalLineBlocked(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemJournalLineBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemJournalLineBlocked(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ItemJournalLine: Item journal line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item journal line blocking validation
OnBeforeCheckProdOrderBlocked(Record Production Order, Boolean) :#
Summary: Integration event that allows customization before checking production order blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckProdOrderBlocked(ProductionOrder: Record "Production Order"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckProdOrderBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckProdOrderBlocked(ProductionOrder: Record "Production Order"; var IsHandled: Boolean)
begin
end;
Parameters:
ProductionOrder: Production order being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard production order blocking validation
OnBeforeCheckProdOrderLineBlocked(Record Prod. Order Line, Boolean) :#
Summary: Integration event that allows customization before checking production order line blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckProdOrderLineBlocked(ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckProdOrderLineBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckProdOrderLineBlocked(ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ProdOrderLine: Production order line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard production order line blocking validation
OnBeforeCheckProdOrderCompBlocked(Record Prod. Order Component, Boolean) :#
Summary: Integration event that allows customization before checking production order component blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckProdOrderCompBlocked(ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckProdOrderCompBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckProdOrderCompBlocked(ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)
begin
end;
Parameters:
ProdOrderComponent: Production order component being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard production order component blocking validation
OnBeforeCheckServiceLineBlocked(Record Service Line, Boolean) :#
Summary: Integration event that allows customization before checking service line blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckServiceLineBlocked(ServiceLine: Record "Service Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckServiceLineBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckServiceLineBlocked(ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceLine: Service line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard service line blocking validation
OnBeforeCheckServiceItemLineBlocked(Record Service Item Line, Boolean) :#
Summary: Integration event that allows customization before checking service item line blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckServiceItemLineBlocked(ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckServiceItemLineBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckServiceItemLineBlocked(ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine: Service item line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard service item line blocking validation
OnBeforeCheckItemJournalLineSalesandServiceBlocked(Record Item Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking item journal line sales and service blocking.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemJournalLineSalesandServiceBlocked(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemJournalLineSalesandServiceBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemJournalLineSalesandServiceBlocked(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ItemJournalLine: Item journal line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard sales and service blocking validation for item journal lines
OnBeforeCheckItemVariantBlockedTableItemJournalLine(Record Item Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for item journal lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableItemJournalLine(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableItemJournalLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableItemJournalLine(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ItemJournalLine: Item journal line being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for item journal lines
OnBeforeCheckItemVariantBlockedTableProdOrderComponent(Record Prod. Order Component, Boolean) :#
Summary: Integration event that allows customization before checking item variant blocking for production order components.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableProdOrderComponent(ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableProdOrderComponent', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableProdOrderComponent(ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)
begin
end;
Parameters:
ProdOrderComponent: Production order component being checkedIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard item variant blocking validation for production order components