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

Re: Don't allow update of all fields if the Draft Document has been approved

$
0
0

Hi

Try this

 

If @object_type = '18' and @transaction_type in ('U')

begin

if exists (SELECT T0.[DocEntry] FROM OPCH T0  INNER JOIN ODRF T1 ON T0.[draftKey] = T1.[DocEntry] WHERE T0.[docEntry]= @list_of_cols_val_tab_del and T1.[DocStatus] ='C')

begin

set @error = 2100

set @error_message = ('A/P Invoice is Approved can not Update!')

end

End


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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