Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Suggested answer

Can i access the source code for trade discount reference?

Posted on by 22

Hi, my name is vira. I am working as junior IT consultant on dynamics gp applications. I encounter this warning after lookup the tax detail id and after push the OK Button. I realize this window is customized and has some trigger scripts, two of em are DP / Prepayment field which referring to trade discount amount script after add a value in it. I have script logs attached so u can figure which script is running before the warning occurs. Please kindly give me solutions, thanks in advance ^^


 pastedimage1572936952935v1.png[View:/cfs-file/__key/communityserver-discussions-components-files/32/log.txt:173:114]

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 10,996 User Group Leader on at
    RE: Can i access the source code for trade discount reference?

    That's good you have the source code, try using it.

  • vira_nata Profile Picture
    vira_nata 22 on at
    RE: Can i access the source code for trade discount reference?

    yes i have check em, there is a trigger script on line scroll change to recalculate total with DP amount. I was hoping to learn from those source codes, thanks for your thoughts almas
    pastedimage1572955447627v1.png

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 10,996 User Group Leader on at
    RE: Can i access the source code for trade discount reference?

    I don't think it's that straight, what if someone try to change any line item amount after entering trade discount amount? you total Amount will then be the wrong .

    Also the message you are having is GP default message and it's probably coming because you tried running field script so total will update itself. But handling it through vba is little difficult for it. You better try dexterity.

  • vira_nata Profile Picture
    vira_nata 22 on at
    RE: Can i access the source code for trade discount reference?

    This company used to customize gp forms to utilize other business company requirements. So, i was trained to check and customize forms on dexterity and test em on gp desktop / web. The issue here is i was assigned to modify this window to fix previous customization bugs such as "Total amount not calculated with DP amount included". So, i tried to calculate it via running trade discount amount script. Then, i get the warning after lookup tax detail id or tax detail id change. My current solution is to calculate total manually : Total Amount = Subtotal - DP - Trade Discount + Freight + Misc + Tax

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 10,996 User Group Leader on at
    RE: Can i access the source code for trade discount reference?

    You can't access source code if you don't have the source code.

    How you come to know that there is some customization on this window?

    What exactly is your issue?

    and what do you want to do?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans