Professional Documents
Culture Documents
Querys Practicos
Querys Practicos
--BEGIN
-- DECLARE
-- @CardCode varchar(12),
-- @Pago_OV SMALLINT,
-- @Pago_SN SMALLINT,
-- @UserId SMALLINT
SET @User3 = (Select T1.[USERID] FROM OINV T0 INNER JOIN OUSR T1 ON T0.[UserSign] = T1.
[USERID] Where CardCode=@CardCode)
@UserId2 SMALLINT,
@UserId SMALLINT
if (@UserId!= @UserId2)
begin
select @error = 1234
select @error_message='No se Permite Cambiar el eempleado de ventas
End
End
SELECT T0.[CardCode], T0.[CreateDate] FROM OCRD T0 WHERE T0.[CardType] = 'L' AND T0.
[CardCode] NOT LIKE '%B%'
FROM
Excluye
SELECT
FROM
order by tem
If @transaction_type in ('U') and @object_type in ('13')
BEGIN
DECLARE
@SlpCode varchar(12),
@Pago_OV SMALLINT,
@Pago_SN SMALLINT
Gracias por la ayuda Amigo. logre hacer los TNs con la informacion de ese Post. comparto
el codigo del TN:
BEGIN
IF
BEGIN
END
BEGIN
SET @error_message = 'No tiene autorizacion para establecer condicion de pago ni limite
de Credito -Feliz da!'
END
END
@UserId2 SMALLINT,
@UserId SMALLINT
begin
SET @error = 1234
SET @error_message= 'No se puede cambiar el empleado del departamente
de ventas'
End
End