Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2794

Re: Stop users updating an approved sales quotation

$
0
0

Hi,

 

Approval process will be triggered while adding document. It will not work updating or old documents.

 

Add below store procedure in SQL Server management studio under transaction notification.

 

IF @transaction_type IN ('A','U') AND @object_type = '23'

BEGIN

If exists (SELECT T0.[DocNum]  FROM OQUT T0  INNER JOIN QUT1 T1 ON T0.[DocEntry] = T1.[DocEntry] where T1.[DiscPrcnt] > 4.00 and

t0.docentry =@list_of_cols_val_tab_del)

Begin

SET @error = 1

SET @error_message = 'Not allowed to more than 4% discount'

 

 

END

 

 

END

 

Thanks


Viewing all articles
Browse latest Browse all 2794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>