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

Re: TransactionNotification avoid sales employee for being modified

$
0
0

Hi

 

Try this

 

 

 

IF @OBJECT_TYPE='2' AND @TRANSACTION_TYPE IN (N'U')

     BEGIN

if exists (Select T0.SlpCode from Ocrd T0 inner join

OUSR T1 ON T0.USERSIGN2=T1.USERID

            where t1.SUPERUSER='N' and T0.CardCode =@list_of_cols_val_tab_del and t0.CardType = 'c'   )

Begin

set @error = 30

set @error_message=N'You are Not authorised to change the Sales Employee'

End

END

 

With Regards

 

Balaji Sampath              


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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