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

Re: Transaction Notification Not Working

$
0
0

Hi,

 

Try this and let me know your feedback:

 

IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='17')

 

 

BEGIN

 

 

If exists ( SELECT t0.docentry FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITW T3 ON T2.ItemCode = T3.ItemCode WHERE T3.[WhsCode]  = '01' and 

(T3.[OnHand] -  T2.[IsCommited]) < T1.[Quantity] and T0.DocEntry =  @list_of_cols_val_tab_del)

 

 

Begin

 

 

SET @error = 10

SET @error_message = 'Please check stock in warehouse 01'

 

 

End

 

 

End

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9008

Trending Articles



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