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

[Event Request] Page 403 "Purchase Order Statistics" #28291

Open
Mariangela-DeMaio-EOS opened this issue Feb 27, 2025 · 0 comments
Open

[Event Request] Page 403 "Purchase Order Statistics" #28291

Mariangela-DeMaio-EOS opened this issue Feb 27, 2025 · 0 comments
Labels
event-request Request for adding an event SCM GitHub request for SCM area

Comments

@Mariangela-DeMaio-EOS
Copy link

Mariangela-DeMaio-EOS commented Feb 27, 2025

Describe the request

Hello,
we need an event in the Page 403 "Purchase Order Statistics" in the procedure "RefreshOnAfterGetRecord":

`

   local procedure RefreshOnAfterGetRecord()
   var
    PurchLine: Record "Purchase Line";
    TempPurchLine: Record "Purchase Line" temporary;
    PurchPostPrepayments: Codeunit "Purchase-Post Prepayments";
    OptionValueOutOfRange: Integer;
    IsHandled: Boolean;
   begin
    CurrPage.Caption(StrSubstNo(Text000, Rec."Document Type"));

    if PrevNo = Rec."No." then
        exit;
    PrevNo := Rec."No.";
    Rec.FilterGroup(2);
    Rec.SetRange("No.", PrevNo);
    Rec.FilterGroup(0);

    Clear(PurchLine);
    Clear(TotalPurchLine);
    Clear(TotalPurchLineLCY);

    for i := 1 to 3 do begin

       // Start event
        OnRefreshOnAfterGetRecordOnBeforeTempPurchLineDeleteAll(Rec, TempPurchLine);   <--------------- Event
       // End event
         
        TempPurchLine.DeleteAll();
        Clear(TempPurchLine);
        Clear(PurchPost);
        PurchPost.GetPurchLines(Rec, TempPurchLine, i - 1);

         .......

    end;
    .......
end;

`

`

    [IntegrationEvent(false, false)]
    local procedure OnRefreshOnAfterGetRecordOnBeforeTempPurchLineDeleteAll(PurchaseHeader: Record "Purchase Header"; var 
    TempPurchLine: Record "Purchase Line" temporary)
    begin
    end;

`

Additional context

.
Internal work item: AB#567126

@PredragMaricic PredragMaricic added event-request Request for adding an event SCM GitHub request for SCM area labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area
Projects
None yet
Development

No branches or pull requests

2 participants