ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 224 EmplEntry-Apply Posted Entries - OnBeforePostUnapplyEmployeeLedgEntry

Open aobsgit opened this issue 6 years ago • 1 comments

Hi

Could you please new event OnBeforePostUnapplyEmployeeLedgEntry in procedure PostUnApplyEmployee?

OLD CODE

GenJnlLine."Posting Group" := EmplLedgEntry."Employee Posting Group";
GenJnlLine."Source Currency Code" := "Currency Code";
GenJnlLine."System-Created Entry" := true;
Window.Open(UnapplyingMsg);            
GenJnlPostLine.UnapplyEmplLedgEntry(GenJnlLine, DtldEmplLedgEntry2);

if PreviewMode then
  GenJnlPostPreview.ThrowError;
...

NEW CODE:

GenJnlLine."Posting Group" := EmplLedgEntry."Employee Posting Group";
GenJnlLine."Source Currency Code" := "Currency Code";
GenJnlLine."System-Created Entry" := true;

>>>
OnBeforePostUnapplyEmployeeLedgEntry(GenJnlLine, EmplLedgEntry, DtldEmplLedgEntry2, GenJnlPostLine);            
<<<

Window.Open(UnapplyingMsg);
GenJnlPostLine.UnapplyEmplLedgEntry(GenJnlLine, DtldEmplLedgEntry2);

if PreviewMode then
  GenJnlPostPreview.ThrowError;
...

>>>
[IntegrationEvent(false, false)]
local procedure OnBeforePostUnapplyEmployeeLedgEntry(var GenJournalLine: Record "Gen. Journal Line"; EmplLedgerEntry: Record " Employee Ledger Entry"; DetailedEmplLedgEntry: Record " Detailed Employee Ledger Entry"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")
begin
end;
<<<

aobsgit avatar Nov 16 '20 08:11 aobsgit

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. We will update this issue with information about availability.

bc-ghost avatar Nov 19 '20 07:11 bc-ghost