108 lines
3.5 KiB
C#
108 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static bdAsegasa.db.registrosverifactu;
|
|
|
|
namespace bdAsegasa.db
|
|
{
|
|
public partial class registrosverifactu
|
|
{
|
|
public string CSV
|
|
{
|
|
get
|
|
{
|
|
if (this.idRespuestaVerifactuNavigation == null)
|
|
{
|
|
return string.Empty;
|
|
}
|
|
else
|
|
{
|
|
return this.idRespuestaVerifactuNavigation.CSV;
|
|
}
|
|
}
|
|
}
|
|
public string DescripcionEstado
|
|
{
|
|
get
|
|
{
|
|
return ((EstadoEnum)this.Estado).ToString().Replace("_"," ");
|
|
}
|
|
}
|
|
|
|
public string DescripcionOperacion
|
|
{
|
|
get
|
|
{
|
|
return ((OperacionEnum)this.Operacion).ToString().Replace("_", " ");
|
|
}
|
|
}
|
|
|
|
public string DescripcionTipoFactura
|
|
{
|
|
get
|
|
{
|
|
switch ((TipoFacturaEnum)this.TipoFactura)
|
|
{
|
|
case TipoFacturaEnum.F1:
|
|
return "F1 - Factura (art. 6, 7.2 y 7.3 del RD 1619/2012)";
|
|
case TipoFacturaEnum.F2:
|
|
return "F2 - Factura Simplificada y Facturas sin identificación del destinatario";
|
|
case TipoFacturaEnum.F3:
|
|
return "F3 - Factura emitida en sustitución de facturas simplificadas facturadas y declaradas";
|
|
case TipoFacturaEnum.R1:
|
|
return "R1 - Factura Rectificativa (Error fundado en derecho y Art. 80 Uno Dos y Seis LIVA)";
|
|
case TipoFacturaEnum.R2:
|
|
return "R2 - Factura Rectificativa (Art. 80.3). Cuando el destinatario de las operaciones sujetas al Impuesto no haya hecho efectivo el pago de las cuotas repercutidas y siempre que, con posterioridad al devengo de la operación, se dicte auto de declaración de concurso.";
|
|
case TipoFacturaEnum.R3:
|
|
return "R3 - Factura Rectificativa (Art. 80.4). Cuando los créditos correspondientes a las cuotas repercutidas por las operaciones gravadas sean total o parcialmente incobrables.";
|
|
case TipoFacturaEnum.R4:
|
|
return "R4 - Factura Rectificativa (Resto)";
|
|
case TipoFacturaEnum.R5:
|
|
return "R5 - Factura Rectificativa en facturas simplificadas. Factura emitida en sustitución de facturas simplificadas facturadas y declaradas";
|
|
default:
|
|
return "Tipo de factura desconocido";
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum TipoFacturaEnum
|
|
{
|
|
F1,
|
|
F2,
|
|
F3,
|
|
R1,
|
|
R2,
|
|
R3,
|
|
R4,
|
|
R5
|
|
}
|
|
|
|
public enum OperacionEnum
|
|
{
|
|
ALTA = 0,
|
|
SUBSANACION = 1,
|
|
ALTA_POR_RECHAZO = 2,
|
|
REENVÍO = 3,
|
|
ANULACIÓN = 9,
|
|
CONSULTA_DATOS = 5,
|
|
OBTENCIÓN_QR = 100
|
|
}
|
|
|
|
public enum EstadoEnum
|
|
{
|
|
PENDIENTE_RESPUESTA = 0,
|
|
CORRECTO = 1,
|
|
ACEPTADO_CON_ERRORES = 2,
|
|
INCORRECTO = 3,
|
|
COMPLETADO = 10
|
|
}
|
|
public enum AplicacionEnum
|
|
{
|
|
LIQUIDACION_AGENTE = 0,
|
|
|
|
}
|
|
}
|
|
}
|