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

Re: Block Changing DueDate

$
0
0

Hi

 

You can Block using the TNSP.

 

If @object_type = '13' and (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')

 

Begin

 

If exists(

    select t0.docnum from OINV T0

    INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum

    where t0.docentry = @list_of_cols_val_tab_del and Dateadd(day, T1.Extradays, T0.DocDate) <> T0.[DocDueDate])

 

Begin

 

select @error = 1, @error_message = 'The Due Date is not correct'

 

End

End

 

Regards

Kennedy


Viewing all articles
Browse latest Browse all 9193

Trending Articles



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