ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Table 270 Bank Account - IsInLocalCurrency procedure OnBeforeIsInLocalCurrency event

Open polina-se opened this issue 1 year ago • 1 comments

Why do you need this change?

Dear Microsoft Team, I would like to request a new event, OnBeforeIsInLocalCurrency, in the procedure IsInLocalCurrency of a table Bank Account. We need to implement custom logic for this procedure.

Describe the request

I would like to request a new event, OnBeforeIsInLocalCurrency, in the procedure IsInLocalCurrency of a table Bank Account. Please implement these changes in the BC25 version.

Event Code:

[IntegrationEvent(false, false)]
local procedure OnBeforeIsInLocalCurrency(var Rec: Record "Bank Account"; var Result: Boolean; var IsHandled: Boolean)
begin
end;

Procedure Code:

procedure IsInLocalCurrency(): Boolean
var
    GeneralLedgerSetup: Record "General Ledger Setup";
    Result: Boolean; // new variable
begin
  // new code
  IsHandled := false;
  OnBeforeIsInLocalCurrency(Rec, Result, IsHandled);
  if IsHandled then
    exit(Result);
  // new code

  if "Currency Code" = '' then
      exit(true);

  GeneralLedgerSetup.Get();
  exit("Currency Code" = GeneralLedgerSetup.GetCurrencyCode(''));
end;

Internal work item: AB#597137

polina-se avatar Aug 11 '25 13:08 polina-se

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

JesperSchulz avatar Aug 22 '25 07:08 JesperSchulz