Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

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

(0) ShareShare
ReportReport
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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans