Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

eConnect - creating distribution item for foreign currency rounding error (SOP)

Posted on by 5

Hi all,

I have some C# code that takes invoice data (headers, items and distributions) from a database, format the data into eConnect SOP transaction XML docs (SOP invoice header, line items and distributions), and send them over to eConnect. I found an issue when I started using foreign currency.

In some of the invoices created, the account distribution debits and credits are off by a cent in the functional currency (but those in the originating currency always add up). Here's an example:
CAD (Originating): Credits 145.45 + 144 + 153.68 + 146.4 + 145.48 (735.01 total) = 735.01 Debit
USD (Functional): Credits 138.89 + 137.5 + 146.75 + 139.8 + 138.92 (701.86 total) = 701.85 Debit
Exchange rate = 1.0472458

If I create this invoice in GP manually or if I open this invoice in Edit mode, GP will automatically add an "Exchange Rate (Gains)/Losses" distribution item for me, but I don't open the invoice in GP, that penny isn't accounted for.

Is there anyway to tell eConnect to create that exchange rate gain/loss item for me?

Thanks.
Felix.

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans