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] Codeunit 7110 Analysis Report Management - Procedure DrillDownQuantity - OnBeforeDrillDownQuantity #27862

Closed
mavohra opened this issue Dec 30, 2024 · 1 comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area ships-in-future-update Fix ships in a future update

Comments

@mavohra
Copy link

mavohra commented Dec 30, 2024

Describe the request

Please add the event OnBeforeDrillDownQuantity in procedure DrillDownQuantity in Codeunit 7110 Analysis Report Management.

local procedure DrillDownQuantity(var ItemStatisticsBuf: Record "Item Statistics Buffer"; Invoiced: Boolean)
var
    ValueEntry: Record "Value Entry";
    ItemLedgEntry: Record "Item Ledger Entry";
    ItemAnalysisViewEntry: Record "Item Analysis View Entry";
begin
    OnBeforeDrillDownQuantity(ItemStatisticsBuf, IsHandled); // <---- New Event
    if IsHandled then
        exit;

    if ItemStatisticsBuf.GetFilter("Source No. Filter") = '' then
        ItemStatisticsBuf.SetRange(ItemStatisticsBuf."Source Type Filter");

    ItemStatisticsBuf.SetRange(ItemStatisticsBuf."Entry Type Filter");

    if AnalysisLineTemplate."Item Analysis View Code" = '' then begin
        if Invoiced then begin
            FilterValueEntry(ItemStatisticsBuf, ValueEntry);
            PAGE.Run(0, ValueEntry, ValueEntry."Invoiced Quantity");
        end else begin
            FilterItemLedgEntry(ItemStatisticsBuf, ItemLedgEntry);
            PAGE.Run(0, ItemLedgEntry, ItemLedgEntry.Quantity);
        end;
    end else begin
        FilterItemAnalyViewEntry(ItemStatisticsBuf, ItemAnalysisViewEntry);
        if Invoiced then
            PAGE.Run(0, ItemAnalysisViewEntry, ItemAnalysisViewEntry."Invoiced Quantity")
        else
            PAGE.Run(0, ItemAnalysisViewEntry, ItemAnalysisViewEntry.Quantity);
    end;
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeDrillDownQuantity(var ItemStatisticsBuf: Record "Item Statistics Buffer"; var IsHandled: Boolean)
begin
end;

Additional context

We need to handle alternative quantities similar to our previous event requests.

Event 3/4
Internal work item: AB#561384

@JakovljevicDusan JakovljevicDusan added event-request Request for adding an event SCM GitHub request for SCM area labels Dec 30, 2024
@JesperSchulz JesperSchulz added the ships-in-future-update Fix ships in a future update label Dec 31, 2024
@JesperSchulz
Copy link
Contributor

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: 28412.

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 ships-in-future-update Fix ships in a future update
Projects
None yet
Development

No branches or pull requests

3 participants