[Event Request] Report 5692 "Calculate Depreciation" OnAfterGenJnlLineInit #29028
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
Duplicate of #29028
It's no a duplicate of #29028. Those are two different events: OnAfterGenJnlLineInit and OnAfterFAJnlLineInit.
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
Thank you. I updated the title and next time I will combine events from the same object in the same ticket.
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.