Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Integration Manager Scripts to edit distribution values based on payment terms

Posted on by 220
Hi all,
I’m building an integration for payable transactions (A/P). We get a file with AP transactions including GL accounts (distributions). The issue is that some vendors have payment terms setup in their cards. So, when the transaction is integrated, these terms generates a discount available amount. This amount needs to be included in the distributions. For example, my file will have an invoice for $100 and a distribution of CR $100 to 00-2000 account and a DR $100 to 00-6000 account. But due to payment terms, there will be a discount available of let’s say $2. Now the distributions should be DR $100 00-6000 and then the credit should be CR $98 to 00-2000 (“PAY” Distribution type) and CR $2 to 00-2600 (“AVAIL” Distribution type). Because I don’t know the payment terms ahead of time, Integration Manager generates a warning indicating that “This transaction will not post; it includes distributions with errors.”. I tried to use scripts to check for the discount available before document commit but was unsuccessful. Any thoughts on this?

*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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans