on 08-08-2013 11:50 PM
Hola a todos.
En la Nota de Pedido tengo un campo de usuario que lo alimenta una búsqueda formateda. Dicha información determina si se dispara un flujo de aprobación o no. El problema es que algunos usuarios se percataron del uso de este campo y lo modifican para burlar el flujo.
Mi pregunta es saber si es posible impedir a los usuarios modificar dicho campo con una opción distinta a la de Parametrización de campos de usuario. Ojalá la solución estuviera a nivel de Transaction Notification.
Saludos
Patricio Godoy
apoyate en este query, es para no modificar el campo de correlativo de una factura ya creada
--/*
if (@object_type ='15' and @transaction_type='U') -- Guia de Remision
begin
DECLARE @CORRDOCG AS NVARCHAR(13)
DECLARE @CORRLOCG AS NVARCHAR(13)
set @CORRDOCG=(select top 1 U_BPP_MDCD from ODLN where docentry=@list_of_cols_val_tab_del)
set @CORRLOCG=(
SELECT TOP 1 X.U_BPP_MDCD
FROM
(select U_BPP_MDCD,loginstanc
from adoc
where objtype='15' and docentry=@list_of_cols_val_tab_del
AND Loginstanc=(SELECT MAX(LOGINSTANC) FROM ADOC WHERE objtype='15' and docentry=@list_of_cols_val_tab_del)) X
)
--set @usuario_aux=(select top 1 usersign2 from orpc where docentry=@list_of_cols_val_tab_del)
--set @areaUSER =(select top 1 department from ousr where userid=@usuario_aux)
if @CORRDOCG<>@CORRLOCG
begin
set @error=1
set @aux=' AE :No puede cambiar el correlativo de este documento '+@CORRDOCG+' '+@CORRLOCG
set @error_message=@list_of_key_cols_tab_del+' '+@list_of_cols_val_tab_del+' '+@aux
end
end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.