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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Need to Default Purchases Amount in Integration Manager when there are multiple distribution lines

(0) ShareShare
ReportReport
Posted on by

The user needs to integrate credit memos with multiple distributions on the PURCH/Credit  side. They do not have the document total in the source file so they want it to default in. However, nether the Purchases/Document Amount nor the AP distribution amount defaults in (We have the source rule set to default Non-imported and it works when only 1 credit distribution line is in the file).

How do they get the Purchases Amount to default in and how do they get the AP account and amount to default in?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    D'oh. Totally zoned on the fact that I should check the working Integration for scripts.

    Before Integration:

    SetVariable "PurchaseAmount", CCur(0.00)

    Before Document Commit:

    DestinationFields("Purchases") = _

       GetVariable("PurchaseAmount")

    SetVariable "PurchaseAmount", CCur(0.00)

    On the Credit Distribution Field will be:

    SetVariable "PurchaseAmount", _

       CCur(GetVariable("PurchaseAmount")) + _

       CCur(SourceFields("AP Credit Memo.Amount"))

    CurrentField = SourceFields("AP Credit Memo.Amount")

    Thanks!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans