dbo.afip_padron_impuestos

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_impuestos
@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_impuestos (id_padron, codigo_impuesto, created, created_by, visible) 
             values(@id_padron, @codigo,getdate(),@user,'1') 
                                
 end 
 return '0'
END 

GO

Used By

No items found