dbo.servicios_afip_error

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@p_cuit varchar 20

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <25 Ago 2017>
-- Description: <Almacenar padron que no tiene pdf en servicio externo>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.servicios_afip_error 
 -- Add the parameters for the stored procedure here
 --@p_id_padron int,
 @p_cuit varchar(20)
AS
BEGIN
 SET NOCOUNT ON;
 if exists (select * from padrones where identificacion = @p_cuit and habilitado = 1 and isnull(nombre_persona,'') = '')
 --> si el nombre en padrones esta vacío y AFIP dijo que había error en ese cuit se marca como no habilitado.
  begin
   update padrones set habilitado = 0 where identificacion = @p_cuit and habilitado = 1 and isnull(nombre_persona,'') = ''
  end 
END

GO

Depends On

1

Used By

No items found