CREATE PROCEDURE sp_Api5_FacturaAnticipadaUpdate
    @activo INT,
    @tipdoc INT,
    @numdoc INT
AS
BEGIN
    UPDATE venEncabezado
    SET facturaAnticipada = @activo
    WHERE codsii = @tipdoc AND numinv = @numdoc;
END;
GO