Skip to Content
author's profile photo Former Member
Former Member

Transaction Notification

Hi All,

The transaction notification should stop users from changing the Unit Price AFTER the transaction has been added. They should still be able to add or delete rows. My procedure only checks the last row....

Can somebody please help?

Kind regards

Carin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2012 at 01:14 PM

    Hi Carin,

    Post something you have done already so that we can start from there.

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

    • IF @transaction_type = 'U' AND @object_type = '17'

      BEGIN

      if exists (SELECT UserSign FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del AND UserSign NOT IN ('5', '13'))

      begin

      IF EXISTS (SELECT T0.DocEntry

      FROM RDR1 T0

      INNER JOIN ADO1 T1 ON T0.DocEntry = T1.DocEntry AND T0.LineNum = T1.LineNum AND T1.ObjType = 17

      WHERE T1.DocEntry = @list_of_cols_val_tab_del AND T1.PriceBefDi <> T0.PriceBefDi )

      BEGIN

      SELECT @error = 17, @error_message = 'Cannot change order'

      END

      end

      END

  • Posted on May 05, 2012 at 06:46 AM

    Hi Carin,

    If you plan your price lists and their assignment at master level then what you will have to do is to make the unit price column inactive through form settings and no authorization to Document Settings.

    This will pull the prices assigned automatically and user will not be able to make the changes.

    If at all you need to change the price authorize the user exclusively to do so. We, at our end are doing so and abrupt changes in the price lists have cut down tremendously.

    Thanking you

    Malhaar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.