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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

I need sql code to make markdown to sales document

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    KirkLivermont Profile Picture
    5,985 on at

    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

  • M A Profile Picture
    20 on at

    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 

  • Verified answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    You can't do it with SQL.

    You can do it with using macro although.

  • M A Profile Picture
    20 on at

    thanks Almas

  • Verified answer
    Victoria Yudin Profile Picture
    22,769 on at

    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
    20 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans