Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
3| Name | Data Type | Length | Description |
|---|---|---|---|
| @cuit | varchar | 20 | |
| @codigo | int | 4 | |
| @user | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.afip_padron_actividades
@cuit varchar(20),
@codigo int,
@user int
AS
BEGIN
SET NOCOUNT ON;
declare @id_padron int = (select top 1 id_padron from padrones where identificacion = @cuit and habilitado = 1 order by id_padron)
if (@id_padron is not null)
begin
insert into padron_actividades (id_padron, codigo_actividad, created, created_by, visible)
values(@id_padron, @codigo,getdate(),@user,'1')
end
return '0'
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.afip_padron_actividades
@cuit varchar(20),
@codigo int,
@user int
AS
BEGIN
SET NOCOUNT ON;
declare @id_padron int = (select top 1 id_padron from padrones where identificacion = @cuit and habilitado = 1 order by id_padron)
if (@id_padron is not null)
begin
insert into padron_actividades (id_padron, codigo_actividad, created, created_by, visible)
values(@id_padron, @codigo,getdate(),@user,'1')
end
return '0'
END
GO
Depends On
2Used By
No items found