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 checkedItemNo: Item number for validationVariantCode: Variant code for validationShowError: Whether to show error messagesIsModify: Whether this is a record modificationRecordID: Record ID for comparison during modificationChecksuccessfully: Variable indicating whether check was successfulIsHandled: Variable indicating whether a subscriber has handled the check
Remarks: Set IsHandled to true to skip standard lot certificate validation and implement custom logic