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

Re: due date transection notification

$
0
0

If you don't want to test the userID anymore, try this:

 

IF@OBJECT_TYPE='202'AND@TRANSACTION_TYPE='U'

BEGIN

IFEXISTS(

  SELECTT0.DueDate

OWORT0

  INNERJOINAWORT1ONT1.DocEntry=T0.DocEntry

  WHERE (T0.DueDate<>T1.DueDate)AND  (T0.docentry=@list_of_cols_val_tab_del))

 

 

BEGIN

SELECT@ERROR= 1,@ERROR_MESSAGE='you are not allowed to change due date.'

END

END


Viewing all articles
Browse latest Browse all 962

Trending Articles



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