Skip to Content
author's profile photo Former Member
Former Member

​ Agregar una alerta al crear pallet (lote) para la fecha de fabricacion

Estoy intentando validar que en todos los documentos de entrada al momento de crear los pallet(lote) a través de la ventana "Pallet : Definir" este valide que la fecha de fabricación no sea mayor a la fecha actual, para ello agregue el siguiente código en el procedimiento almacenado "SBO_SP_TransactionNotification", pero no arroja el error ni advertencia. Probablemente esta mal el Object_Type. Necesito crear esta validación para disminuir la probabilidad de error. Seria de gran ayuda si pudieran orientarme con esto.

IF @transaction_type in ('A') AND (@OBJECT_TYPE='10000044')



where ( T0.AbsEntry = @list_of_cols_val_tab_del) AND

format(T0.MnfDate, 'dd-MM-yyyy') < format(GETDATE(), 'dd-MM-yyyy') )


SELECT @error = 101

SELECT @error_message = 'la fecha no puede ser mayor a la fecha actual' END END --------------

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.