Quantcast
Channel: SCN : All Content - SAP Business One (Español)
Viewing all articles
Browse latest Browse all 982

Ayuda con Transaccion Notification

$
0
0

Buenas tardes comunidad, estoy realizando un sp que no permita crear Factura de proveedores si la fecha es posterior al ingreso de mercaderia

 

 

Revisando y investigando en los post he llegado a esto

 

 

IF @object_type = 18 AND @transaction_type in ('A') 

begin

if (select t1.docdate from opch t1 left join PDN1 t2 on t1.DocEntry = t2.DocEntry

where t1.Docdate = @list_of_cols_val_tab_del  and t1.docdate > t2.docdate)

    begin

 

 

      Set @error = 560

      Set @error_message = 'VERIFICAR FECHA DE LA FACTURA '

   goto SALIR

    end

  end

  salir:


Alguna sugerencia oh que estoy realizando mal. De ante mano muchas gracias por su atencion.

 

Saludos


Viewing all articles
Browse latest Browse all 982

Trending Articles



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