on 07-28-2015 5:07 PM
Buenos dias; De que madera podría bloquear que el personal de tesoreria no haga pagos en la opcion cuenta? Tiene 3 opciones: Clientes Proveedores Cuenta Y quiero bloquear que no haga pagos a cuenta, busque en las autorizaciones pero no hay una opción especifica. Deseamos bloquearlo para PAGOS RECIBIDOS Y PAGOS EFECTUADOS. En espera de su ayuda. Saludos,
Buenas tardes
Debes realizarlo por transaction.
if @object_type='46' and @transaction_type='A'
begin
if exists(select 'A' from OVPM where DocType='A' and DocEntry=@list_of_cols_val_tab_del)
begin
set @error=123
set @error_message='No puede crear pagos de tipo cuenta'
end
end
if @object_type='24' and @transaction_type='A'
begin
if exists(select 'A' from ORCT where DocType='A' and DocEntry=@list_of_cols_val_tab_del)
begin
set @error=123
set @error_message='No puede crear pagos de tipo cuenta'
end
end
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.