Skip to content

KVSKBALotCertificate#

Events#

OnBeforeCheckLotCertificate(Code[50], Code[20], Code[20], Boolean, Boolean, RecordId, Boolean, Boolean) :#

Summary: Integration event that allows customization before checking lot certificate assignment.

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckLotCertificate(LotNo: Code[50]; ItemNo: Code[20]; VariantCode: Code[20]; ShowError: Boolean; IsModify: Boolean; RecordID: RecordId; var Checksuccessfully: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBALotCertificate", 'OnBeforeCheckLotCertificate', '', false, false)]
local procedure DoSomethingOnBeforeCheckLotCertificate(LotNo: Code[50]; ItemNo: Code[20]; VariantCode: Code[20]; ShowError: Boolean; IsModify: Boolean; RecordID: RecordId; var Checksuccessfully: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • LotNo: Lot number being checked
  • ItemNo: Item number for validation
  • VariantCode: Variant code for validation
  • ShowError: Whether to show error messages
  • IsModify: Whether this is a record modification
  • RecordID: Record ID for comparison during modification
  • Checksuccessfully: Variable indicating whether check was successful
  • IsHandled: Variable indicating whether a subscriber has handled the check

Remarks: Set IsHandled to true to skip standard lot certificate validation and implement custom logic