web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Country region ISO cod...
Finance forum

Country region ISO code "BR" and source code tag "GBR" relationship

(0) ShareShare
ReportReport
Posted on by 3,542

Hi

I have come across a few places in MS code where a section is commented as <GBR> someCode </GBR>, but then the code tests for country region ISO code BR.

According to me, GBR refers to the United Kingdom and BR is the ISO code for Brazil. Which is confusing.

Does GBR mean something else in this context? Or some other explanation? I'm just interested.

Thanks for your attention

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    Hi Pete,

    I believe that you saw a code like this:

    // 
        BrazilParameters    brazilParameters;
    
        if (isCountryRegionBR)
        {
            brazilParameters  = BrazilParameters::find();
        }
    
    // 

    I don't think GBR here stands for the UK.

  • Pete Alberts Profile Picture
    3,542 on at

    Yes that is what I am talking about. Another example would be in PurchTableType line 2431:

    Screenshot-2019_2D00_09_2D00_17-at-11.52.19.png

    PurchTable.createVendTrans_BR() has everything to do with Brazil - nothing about GBR.

  • Verified answer
    Eugen Glasow Profile Picture
    6,359 on at

    The abbreviations are at least 10 years old, close to 15.

    If the old layer was called GLS = GLobal Solutions, then GBR surely meant Global solution for BRazil.

  • Verified answer
    Blue Wang Profile Picture
    on at

    Hi Pete,

    I consulted some people to confirm, as Eugen said.
    G means Global, other letters represent the country .
    <GBR> means Brazil.
    Others such as <GTH> indicate Thailand and so on.

    When used in code, the code part will also have characters representing the country.
    For example, the <GEERU> code you mentioned is as follows

      // <GEERU>
         If (countryRegion_RU)
         {
             bankAdvancedTransType = BankTransType::find(ledgerJournalTrans.BankTransType).BankAdvancedTransType_RU;

             If (bankAdvancedTransType == BankAdvancedTransType_RU:: None)
             {
                 element.accountNumModifiedPost();

                 ledgerJournalEngine.initVendPostingProfile(ledgerJournalTrans);
             }
             journalFormTrans.enableOrderPaymentFields_RU();
         }
         // </GEERU>

  • Pete Alberts Profile Picture
    3,542 on at

    Thank you very much Eugen and Blue!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans