ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] PAGE 234 "Apply Employee Entries" OnBeforeHandledChosenEntries

Open aobsgit opened this issue 6 years ago • 3 comments

local procedure HandlChosenEntries(Type: Option Direct,GenJnlLine; CurrentAmount: Decimal; CurrencyCode: Code[10]; PostingDate: Date)
var
.
.
.
begin

IsHandled := false; OnBeforeHandledChosenEntries(Type, CurrentAmount, CurrencyCode, PostingDate, AppliedEmplLedgEntry, IsHandled); if IsHandled then exit;

    if not AppliedCustLedgEntry.FindSet(false, false) then
        exit;
.
.
.

[IntegrationEvent(TRUE, false)] local procedure OnBeforeHandledChosenEntries(Type: Option Direct,GenJnlLine; CurrentAmount: Decimal; CurrencyCode: Code[10]; PostingDate: Date; var AppliedEmplLedgerEntry: Record "Employee Ledger Entry"; var IsHandled: Boolean) begin end;

aobsgit avatar Sep 30 '20 12:09 aobsgit

This is the method's signature as we see it now: local procedure HandlChosenEntries(Type: Option Direct,GenJnlLine; CurrentAmount: Decimal)

Are you also asking for parameters CurrencyCode and PostingDate to be added?

StanPesotskiy avatar Oct 01 '20 06:10 StanPesotskiy

I'm sorry, my mistake. No need for additional parameters:

IsHandled := false; OnBeforeHandledChosenEntries(Type, CurrentAmount, AppliedEmplLedgEntry, IsHandled); if IsHandled then exit;

[IntegrationEvent(TRUE, false)] local procedure OnBeforeHandledChosenEntries(Type: Option Direct,GenJnlLine; CurrentAmount: Decimal; var AppliedEmplLedgerEntry: Record "Employee Ledger Entry"; var IsHandled: Boolean) begin end;

aobsgit avatar Oct 01 '20 07:10 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 Oct 02 '20 06:10 bc-ghost