Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Applying trade discount through eConnect

Posted on by 295

I am applying a -ve Trade Discount amount in the SopHdrInsert object through econnect program as follows:

 

Dim objtaSopHdrIvcInsert As New taSopHdrIvcInsert

 

' define information for the transaction header

 

 

 

'create as an invoice so soptype = 3

objtaSopHdrIvcInsert.SOPTYPE = 3

objtaSopHdrIvcInsert.DOCID =

"SPECIAL"

 

objtaSopHdrIvcInsert.TRDISAMT = decTotal

 

However when I open this invoice inside GP, I do not see the Trade Discount field populated.

Any thoughts why this field is not populated. Can the trade discount amount not be -ve?

 

 

 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Applying trade discount through eConnect

    Hello Samer,

    Great that this helped! And thank you for your sweet reply :)

    3ala rasi walla!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Applying trade discount through eConnect

    Thank you very much Mr. Mohammad

    Great Answer

    Ya zalameh ma btokhtor 3ala bal el Sa3adeen :)

    Allah Yes3ed Rab El Ordon

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Applying trade discount through eConnect

    You cannot have -ve trade discount, and when passing the TRDISAMT you need to pass TRDISAMTSpecified = True.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Applying trade discount through eConnect

    oh my god i have the same problem

    no body answer this question since 21-jan

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans