on 11-12-2019 9:42 PM
Muy buenas tardes estimados
Favor solicito el apoyo de la comunidad pues me entrampado y no se como resolver el requerimiento, ocurre que se necesita hacer una validacion que no permita el ingreso de los productos gestionados por lote que no cuenten con fecha de vencimiento, he intentado hacerla desde la entrada de mercancia y tambien desde la ventana de lotes y no logro que funcione. Utilizamos SBO 9.3 PL7
Favor su apoyo y gracias.
Buenas tardes estimados
Aun tengo este problema el cual no logro resolver, he intentado con un query que lo copio a continuacion:
IF @object_type = '20' AND @transaction_type IN ('A') begin
declare @v_loteSinFec int
set @v_loteSinFec = ( SELECT COUNT(1)
FROM IBT1 T1 LEFT JOIN OPDN T2 ON T2."DocEntry" = T1."BaseEntry" LEFT JOIN PDN1 T3 ON T2."DocEntry"= T3."DocEntry" AND T1."BaseLinNum" = T3."LineNum" left JOIN OBTN T4 ON T1."ItemCode" = T4."ItemCode" AND T1."BatchNum"=T4."DistNumber"
WHERE T2."DocEntry" = @list_of_cols_val_tab_del and ISNULL(T4."ExpDate",'') = '' AND T2.CANCELED= 'N' )
if @v_loteSinFec > 0 begin
SET @error = 20
SET @error_message = 'Es obligatorio registrar la fecha de vencimiento para el nro de lote '
end
END
Pero no funciona como se esperaba, bloquea todos los ingresos tengan lote o no y tambien sin fecha de vencimiento.
Les agradezco de antemano su ayuda.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.