Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

General Ledger Entries View List - to display currency code and foreign currency amount

(0) ShareShare
ReportReport
Posted on by

Hi all,

On The General Ledger Entries view list (Table=G/L Entry ID 17), are there an OOTB way to show the Currency Code and Amount in foreign currency, in addition to the LCY Amount (Field #17)?

For example, could General Ledger Entries view list display the same information as the Bank Account Ledger Entries below?  Thanks.

pastedimage1620700861207v1.png

Kind regards,

  • General Ledger Entries View List - to display currency code and foreign currency amount
    HI @JAngle,
     
    Regarding your code below, May I know where you define the GetSetup() function? 
     

    if GLEntry."Document-Currency” = '' then begin

               GetSetup();

               GLEntry."Document-Currency”:= GLSetup."LCY Code";

           end;

     

    I am getting an error on the line highlighted above. Also, where should I add the below line of code?

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnAfterInitGLEntry', '', false, false)]

     

    I write new code unit in AL. Don't know how and where to call this? Can you please guide me on this? Thanks!

  • KC Lai Profile Picture
    KC Lai 323 on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    Hi ,

    I totally agree with you to GL should capture FCY and have report option to show FCY. 

    It should also support Currency Revaluation on this account. Most ERP systems provide that to cater for FCY  accruals , prepaid expense, investment (Balance Sheet accts). 

    My prospect always raise this as an issue.

    Another issue is how come Bank acct currency revaluation exchange gain/loss is posted to realised accts?

  • achilles1988 Profile Picture
    achilles1988 30 on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    The issue is that there is no reference via the GL entry to what the original transaction currency was, what that amount was and the rate used for that particular transaction. In most other ERP systems this is standard OTTB functionality, which is highly important to a multicurrency entity.

  • Renato Fajdiga Profile Picture
    Renato Fajdiga 1,849 on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    Hi,

    this means that if you enter an entry in general journal line with a currency code different than your local currency (setup on the general ledger setup), after the posting you will have an amount in local currency in table GL Entry.

    In my case I created General Journal entry (table 81) with 100 EUR. My local currency is GBP, the system automatically convert 100 EUR to 64.58 GBP

    pastedimage1620758843682v1.png

    And now this 64.58 will be posted into my GL Entry table as this is the local currency. 

  • B@houston Profile Picture
    B@houston on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    Thanks Renato.  

    I am not sure that I understand all transactions are booked in LCY.  On one hand, the GL Entry (Table: 17) do not have Currency Code field, transaction amount available.

    But on the other hand, General Journal batch (Gen. Journal Line table ID: 81) do have Currency code, Amount and Amount LCY available.  Do I missed anything here?  Thank you.  

    pastedimage1620731897574v1.png

    Kind Regards,

  • Gavin Profile Picture
    Gavin 2,341 on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    Hi Josh,

    This is a great suggestion and something I imagine would possibly be implemented in Dynamics GP to BC projects as the multi currency information is passed through to the GL tables as standard in Dynamics GP :)

    Thanks

    Gavin

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    OOTB the option Renato mentioned is there. This is a modification I’ve seen on a few projects.

    A codeunit like below will help you. Note that two fields have been added to the gl entry table to be populated at the point a journal is posted - that works for all transactions through to the gl where a currency is used and you want to store the value. You will need to add the new fields to the page as well.

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnAfterInitGLEntry', '', false, false)]

       local procedure OnAfterInitGLEntry(var GLEntry: Record "G/L Entry"; GenJournalLine: Record "Gen. Journal Line")

       begin

           if GenJournalLine."Source Currency Code" <> '' then begin

               GLEntry."Document-Currency” := GenJournalLine."Source Currency Code";

               if GLEntry.Amount = GenJournalLine."VAT Amount" then

                   GLEntry."Document-Currency Amount” := GenJournalLine."Source Curr. VAT Amount"

               else

                   GLEntry."Document-Currency Amount” := GenJournalLine."Source Curr. VAT Base Amount";

               if GLEntry."Document-Currency Amount” = 0 then

                   GLEntry."Document-Currency Amount” := GenJournalLine."Source Currency Amount";

           end else begin

               GLEntry."Document-Currency”:= GenJournalLine."Currency Code";

               GLEntry."Document-Currency Amount” := GenJournalLine.Amount;

           end;

           if GLEntry."Document-Currency” = '' then begin

               GetSetup();

               GLEntry."Document-Currency”:= GLSetup."LCY Code";

           end;

       end;

  • Verified answer
    Renato Fajdiga Profile Picture
    Renato Fajdiga 1,849 on at
    RE: General Ledger Entries View List - to display currency code and foreign currency amount

    Hi,

    there is no field Currency on table GL Entry so it is not possible to show transactions in transactional currency. Also, have in mind that all transactions are booked in local currency in GL.

    What can be done is if you want to have one additional reporting currency but then you are limited to one docs.microsoft.com/.../finance-how-setup-additional-currencies  

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans