Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

I need sql code to make markdown to sales document

Posted on by 20

hi to all

i used to make discount to sales document through markdown to all the items in the document one by one and this some time take time from  in case if the document contain many items .

so i need your help to give sql code do this to me. i just put the percentage that i need and code put it in all items.

thanks in advance

Mustafa

*This post is locked for comments

  • M A Profile Picture
    M A 20 on at
    RE: I need sql code to make markdown to sales document

    Dear Victoria

    Many thanks for your reply

    I would like to say to you that, I have learned a lot from your all posts in your page

    really thank you

    Mustafa

  • Verified answer
    Victoria Yudin Profile Picture
    Victoria Yudin 22,766 on at
    RE: I need sql code to make markdown to sales document

    I agree with Kirk, you really want to be careful making updates like this in SQL, as they often need to touch a lot more than just the line items.

    I would recommend considering using the Trade Discount instead - you can enter it once and it will apply to all the lines.

  • M A Profile Picture
    M A 20 on at
    RE: I need sql code to make markdown to sales document

    thanks Almas

  • Verified answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: I need sql code to make markdown to sales document

    You can't do it with SQL.

    You can do it with using macro although.

  • M A Profile Picture
    M A 20 on at
    RE: I need sql code to make markdown to sales document

    Dear Kirk

    many thanks for your quick response and your advise 

    my requirement is SQL Query making markdown to unposted sales document to all items on it . just i will put the percentage i want

    I want this because some time we need to make discount to document maybe contain more than 100 items , so it take a lot of time .

    the sales Dept. used to send the request to me to make this discount 

    but as you said if this not recommended to done or there is risk your suggestion is appreciated and considered

    many thanks

    Mustafa 

  • Suggested answer
    KirkLivermont Profile Picture
    KirkLivermont 5,985 on at
    RE: I need sql code to make markdown to sales document

    Mustafa,

    I would caution against making direct edits in SQL on a regular basis.

    If you can walk us through your specific requirements we might be able to suggest a solution that aligns with your business process.

    Regards,

    Kirk

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