Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Change Request] Add "if RunTrigger" in procedure VerifyJobWIPEntryOnBeforeRename, codeunit 1000 "Job Calculate WIP" #27888

Open
TarasKozachenko opened this issue Jan 7, 2025 · 0 comments

Comments

@TarasKozachenko
Copy link

Describe the request

We would like to ask you to add "if RunTrigger" in procedure VerifyJobWIPEntryOnBeforeRename, codeunit 1000 "Job Calculate WIP".
Since the "RunTrigger: Boolean" parameter already exists and we would like to use it.

[EventSubscriber(ObjectType::Table, Database::"Job Task", 'OnBeforeRenameEvent', '', false, false)]
procedure VerifyJobWIPEntryOnBeforeRename(var Rec: Record "Job Task"; var xRec: Record "Job Task"; RunTrigger: Boolean)
begin
    if Rec.IsTemporary then
        exit;

    VerifyJobWIPEntryIsEmpty(Rec."Job No.");
end;

This is how we want to see it:

[EventSubscriber(ObjectType::Table, Database::"Job Task", 'OnBeforeRenameEvent', '', false, false)]
procedure VerifyJobWIPEntryOnBeforeRename(var Rec: Record "Job Task"; var xRec: Record "Job Task"; RunTrigger: Boolean)
begin
    if Rec.IsTemporary then
        exit;

    >>>>>>>>>>>>
    if RunTrigger then
    <<<<<<<<<<<<
      VerifyJobWIPEntryIsEmpty(Rec."Job No.");
end;

Additional context

We want to be able to control the verification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant