ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Report 5692 "Calculate Depreciation" OnAfterGenJnlLineInit #29028

Open bogdangarkusha opened this issue 1 year ago • 5 comments

Why do you need this change?

I would like to ask you to create an Integration event in Report 5692 "Calculate Depreciation", in trigger OnPostDataItem for a "Fixed Asset" DataItem.

    trigger OnPostDataItem()
    var
        NeedCommit: Boolean;
    begin
    ...................................
            if TempGenJnlLine.Find('-') then
                repeat
                    GenJnlLine.Init();
                    // >>
                    OnAfterGenJnlLineInit(TempGenJnlLine, GenJnlLine, DocumentNo, AutoDocumentNo);
                    // <<
                    OnBeforeGenJnlLineCreate(TempGenJnlLine, GenJnlLine);

[IntegrationEvent(false, false)]
local procedure OnAfterGenJnlLineInit(var TempGenJournalLine: Record "Gen. Journal Line" temporary; var GenJournalLine: Record "Gen. Journal Line"; DocumentNo: Code[20]; var AutoDocumentNo: Code[20])
begin
end;

Describe the request

I would like to generate my own AutoDocumentNo depending on GenJnlLine and DocumentNo values.

Internal work item: AB#597135

bogdangarkusha avatar Aug 11 '25 16:08 bogdangarkusha

Duplicate of #29028

AndreasHans avatar Aug 13 '25 11:08 AndreasHans

It's no a duplicate of #29028. Those are two different events: OnAfterGenJnlLineInit and OnAfterFAJnlLineInit.

bogdangarkusha avatar Aug 13 '25 11:08 bogdangarkusha

Thank you. Reopening. In the future, could you please give a more descriptive title, such as mentioning the name of the event request. Makes it easier to distinguish requests that are very similar like in this case. Alternatively, you could also have combined both requests into the same issue

AndreasHans avatar Aug 13 '25 12:08 AndreasHans

Thank you. I updated the title and next time I will combine events from the same object in the same ticket.

bogdangarkusha avatar Aug 14 '25 09:08 bogdangarkusha

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

JesperSchulz avatar Aug 25 '25 13:08 JesperSchulz