Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

sales invoice printing

Posted on by Microsoft Employee

Hi,

Is there a way we can control only authorised personnel to print sales invoice, when the sales invoice times printed is more than 1?

Thank you.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: sales invoice printing

    I have uploaded the package (Reprint.Package)  at www.box.net/.../r1oltu1y0j

    This VBA code will

    1. Get the number times invoice already printed

    2. Prompt user for the password, if invoice was already printed

    a. If correct password is entered, invoice is printed successfully

    b. If incorrect password is entered, invoice printing is canceled and a message is displayed

    3. In case of batch printing from Print Sales Documents window and Sales Batch Entry window, user is prompted for  password when he tries to check on “Reprint Previously Printed/Sent”

    a. If correct password is entered, user is allowed to check on the checkbox

    b. If incorrect password is entered, checkbox is disabled

    The password is hard coded in the vba code

    Rubal,

    http://dynamicsgphelp.com/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: sales invoice printing

    Hi, this reprint previously printed check box is not applicable when user printing the invoice from sales order transaction entry window > Sales Document Print Option.

    we need to control and disallow user from printing the invoice from sales document print option as well.

    thank you.

  • Suggested answer
    Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    Re: sales invoice printing

    Field level security can be applied to the Reprint Previously Printed check box requiring a password to mark this field.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: sales invoice printing

    Hi, i am not possible to show the input box during report generation. could you please explain or provide some sample?

    thank you.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: sales invoice printing

    Pui,

    You can write vba code on BeforeUserChanged of the Print button. You can execute the SQL query to get the number of times print. To cancel the print command use

               CancelLogic = True

    You can refer to following post to get code related to using the ActiveX in VBA

    blogs.msdn.com/.../using-ado-with-vba-with-report-writer.aspx

    Rubal,

    http://dynamicsgphelp.com/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: sales invoice printing

    Hi Rubal,

    may i know what is the command to be used to end/cancel the print operation in report writter when the user is not entering the correct password?

    thank you.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: sales invoice printing

    Pui,

    I don’t think this functionality is available out of box. However, you can easily do it using small customization.

    You can use the following query to get the number time invoice is already printed

    Select TIMESPRT from SOP10100 where SOPNUMBE='XXXXXX'

    You can build a customization to check if invoice is already printed. You can cancel the print operation or prompt for a password, if it was already printed.

    Rubal,

    http://dynamicsgphelp.com/

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