ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Extensibility-Enhancement] table 5900 "Service Header" - OnBeforeUpdateCurrencyFactor

Open iltererdogan opened this issue 5 years ago • 3 comments

Hi,

Is it possible to change code like sales.

Original

    protected procedure UpdateCurrencyFactor()
    var
        UpdateCurrencyExchangeRates: Codeunit "Update Currency Exchange Rates";
        ConfirmManagement: Codeunit "Confirm Management";
    begin
        OnBeforeUpdateCurrencyFactor(Rec, CurrExchRate);

    [IntegrationEvent(false, false)]
    local procedure OnBeforeUpdateCurrencyFactor(var ServiceHeader: Record "Service Header"; var CurrencyExchangeRate: Record "Currency Exchange Rate")

Modifed

    protected procedure UpdateCurrencyFactor()
    var
        UpdateCurrencyExchangeRates: Codeunit "Update Currency Exchange Rates";
        ConfirmManagement: Codeunit "Confirm Management";
        Updated: Boolean;
    begin
        OnBeforeUpdateCurrencyFactor(Rec, CurrExchRate, Updated);
        if Updated then
            exit;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeUpdateCurrencyFactor(var ServiceHeader: Record "Service Header"; var CurrencyExchangeRate: Record "Currency Exchange Rate"; var Updated: Boolean)


iltererdogan avatar Sep 24 '21 13:09 iltererdogan

var Updated presumably, to be useful?

CurrExchRate non-var?

should always show full signatures of event publishers you want.

dzzzb avatar Sep 24 '21 16:09 dzzzb

var Updated presumably, to be useful?

CurrExchRate non-var?

should always show full signatures of event publishers you want.

thanks

iltererdogan avatar Sep 25 '21 07:09 iltererdogan

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.

JesperSchulz avatar Sep 28 '21 10:09 JesperSchulz