ALAppExtensions
ALAppExtensions copied to clipboard
Create Event - Request - Table 27 OnBeforeCheckItemJnlLine
Add the following procedure customization, please:
local procedure CheckItemJnlLine(CurrFieldNo: Integer)
var
IsHandled: Boolean;
begin
if "No." = '' then
exit;
OnBeforeCheckItemJnlLine(IsHandled, Rec, CurrFieldNo);//new Event
if IsHandled then
exit;
ItemJnlLine.SetRange("Item No.", "No.");
if not ItemJnlLine.IsEmpty() then begin
if CurrFieldNo = 0 then
Error(Text023, TableCaption(), "No.", ItemJnlLine.TableCaption());
if CurrFieldNo = FieldNo(Type) then
Error(CannotChangeFieldErr, FieldCaption(Type), TableCaption(), "No.", ItemJnlLine.TableCaption());
end;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemJnlLine(var IsHandled: Boolean; Item: Record Item; CurrentFieldNo: Integer)
begin
end;
@AlexanderYakunin Hello. Have you had a chance to review this request? Are there any updates on this?
Hi, requested event is added and we'll be published.
Build ID: 11042
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11042.