Referencia de la Clase sage.addons.factucert.Negocio.Clases.CertificationAdapterabstract

Clase abstracta de soporte a los diferentes Adapters que envuelven a los componentes externos Más...

Diagrama de herencias de sage.addons.factucert.Negocio.Clases.CertificationAdapter
sage.addons.factucert.Negocio.Clases.CertificationAdapterTbai sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu

Métodos protegidos

 CertificationAdapter (string mascaraCertificacion)
 
void LanzarEvento_Finalizacion (List< string > completados, List< string > correctos, List< string > fallidos, List< string > pendientes, List< string > rechazados, bool canceled=false)
 Lanza un evento con el resultado de la ejecución Más...
 
void LanzarEvento_ServicioNoDisponible (string mensaje, TipoMensaje severidad)
 Lanza un evento de notificación de servicio no disponible Más...
 
void LanzarEvento_Progreso (int totalElementos, int elementoActual)
 Calcula y lanza un evento de progreso Más...
 
void LanzarEvento_BeforeEnvioElemento (ref bool llOk)
 Lanza un evento de inicio de proceso de un nuevo elemento Más...
 
void WorkerEnvios_RunWorkerCompleted (object sender, RunWorkerCompletedEventArgs e)
 
abstract bool ValidarTerritorio (string territorio50)
 Metodo de validación de código de Sage50 para territorio Más...
 
abstract bool ValidarTerritorio (int territorio50)
 Metodo de validación de código de Sage50 para territorio Más...
 
abstract void DisposeAsyncProcess ()
 Libera el proceso asíncrono Más...
 
string GetTerritorioEnvio (bool usarValorComponente200)
 Get province code Más...
 
SoftwareFacturacionDTO ObtenerDatosSoftwareFacturacion ()
 Método auxiliar para obtener los datos del software de facturación. Recupera eventuales sobreescrituras desde COMUNES.VARIABLES Más...
 
string ConvertirTerritorioDe50AComponente (int territorio50)
 Get the different codes for the Province mapped from Sage50 Values to TBai Component values Más...
 
string GetSigPolicyId_Description (string territorio)
 
string GetSigPolicyId_Identifier (string territorio)
 
string GetSigPolicyHash_DigestValue (string territorio)
 
string GetEntorno ()
 Obtiene el entorno en el que se esta ejecutando (PRE o PRO) Más...
 
bool TerritorioSoportaEnvioOnline ()
 Check if the current Territory Suppors Online sending

Devuelve
True if online sending is allowed
Más...
 
string TratarImporte (AsientosFacturasVentaGenerador datosFactura, decimal importe, string mascara)
 
decimal ToMonedaEmpresa (AsientosFacturasVentaGenerador datosFactura, decimal importe)
 
decimal GetImporteRetencionFiscal (AsientosFacturasVentaGenerador datosFactura)
 Obtiene el importe de la retención fical a partir de los datos de factuara Más...
 
decimal GetImporteTotalFacturaTickets (ewDocVentaTPV datosTicket)
 
string NormalizarCaracteresNif (string nifCandidato)
 Suprime espacion y caráctetes especiales de un nif candidato. Más...
 
string GetSendURL (string territorio, bool anulacion, DateTime documentDate)
 For generating the URL for sending files depending on the Province Más...
 
string GetQrURL (string territorio)
 For generating the URL for the QR Code Más...
 
void CheckURLList ()
 For Setting up the URL List Más...
 
void GenerateTrace (string basicInfo, string extendedInfo="")
 Traces for debugging Más...
 
Enums.TipoRegistroCertif AjustarTipoRegistroParaAnulaciones (bool esAnulacion, Enums.TipoRegistroCertif tipo)
 
string IncorporarPaisAlNif (string codigoPais, string nifCliente)
 Método auxiliar para encapsular los casos especiales a la hora de incorporar el país al nif Más...
 
void GenerarClaveRegimenEspecialTrascendencia (DataRow toFactura, Certification_XML_Parameters XML_generator_parameters, int _nTerritorio, int lnComuni_c, string lcNif, bool llCritCaja, bool llIvaNoCero, out string ClaveRegimenEspecialOTrascendencia, out string ClaveRegimenEspecialOTrascendenciaAdicional1)
 Method for calculating the IVA/VAT regime of a given Invoice Más...
 
bool OperacionIVAEuropeo (int tnOperacion)
 Devuelve si es una operación del IVA Europeo Más...
 
bool ObtenerSiiIva303 (string numFactura, string claveComprobar, string codigoTipoIva="")
 Checker for particular IVA/VAT types within a given invoice Más...
 
eTipoOperacionEmitidasSII ObtenerTipoOperacionFactura (string numFactura, string tipoIVA)
 Aux method for calculating the IVA/VAT regime of a given Invoice Más...
 
IEnumerable< DetalleTicketRectificativoDTOObtenerDatosRectificadasMultiplesTickets (string ticket, string letra)
 
IEnumerable< DetalleFacturaRectificativaDTOObtenerDatosRectificadasMultiplesFacturas (string factura)
 
eTipoOperacionEmitidasSII ObtenerTipoOperacionTicket (ewDocVentaTPV datosTicket, string VATCode)
 Aux method for calculating the IVA/VAT regime of a given Ticket Más...
 
bool ObtenerSiiIva303Ticket (ewDocVentaTPV datosTicket, string claveComprobar)
 Checker for particular IVA/VAT types within a given ticket Más...
 
string CalcularBaseIvaAplicandoEntregas (AsientosFacturasVentaGenerador.TipoIvaLinea iva, AsientosFacturasVentaGenerador datosFactura, EntregasEnFactura datosEntregas)
 
List< string > CalcularBasesExentasAplicandoEntregas (List< string > basesExentas, AsientosFacturasVentaGenerador datosFactura, EntregasEnFactura datosEntregas)
 Los datos de bases exentas son a libre asignación del usuario pero hay que aplicar de alguna forma una minoración en base a las entregas Más...
 
bool NifClienteEsEspecialOperaciones (string nifCliente)
 Nif especiales (empiezan por N o por W) Más...
 
decimal _DeTextoADecimal (string tcValorEnTexto)
 Función auxiliar para convertir strings en formato libre a decimal. Si no puede devuelve 0.0 Más...
 
DataRow GetRowCompletoTabla (string tableDatabase, string tableName, string whereClause)
 Helper for retrieving a whole Row of a database table Más...
 
List< string > GetAllSimpleValuesFromXML (string xmlContent, string tagName)
 Helper method for reading all tags from a XML string for a given field Más...
 
List< string > GetAllSimpleValuesFromJSON (string jsonContent, string tagName, string mascara)
 Helper method for reading all given tags from a JSON string Más...
 
bool EsSujeta (eTipoOperacionEmitidasSII tipoOpIva)
 
bool EsNoSujeta (eTipoOperacionEmitidasSII tipoOpIva)
 

Métodos protegidos estáticos

static string ConvertirTerritorioDe200A50 (string territorio200)
 Get the different codes for the Province mapped from TBai Component values Values to Sage50 Más...
 
static void ReadTerminalData ()
 Reading data from the Terminal used for Invoicing Más...
 
static void ConfigureCertificate (bool useCertificateFile, string certificateName, SecureString certificatePassword=null)
 Configure the Certificate data for signing the file Más...
 

Atributos protegidos

readonly string MonedaEmpresa = Convert.ToString(EW_GLOBAL._GetVariable("wc_moneda"))
 
readonly string _mascaraParaCertificacion = "0.00"
 Mask for formatting strings toxml document. It is fixed in the derived definition document and XML schema, so we ignore Sage50 internal masks. Más...
 
ew.docsven.ewDocVentaFRA loFactura = null
 Member for holding additional Invoice data Más...
 

Atributos protegidos estáticos

static ICertificationDA DataAccess = DependencyInjector.Instance.Retrieve<ICertificationDA>()
 Acceso a datos Más...
 
static BackgroundWorker _workerEnvios = null
 Background worker for async operations Más...
 
static int _workerQueueLenght = 0
 Background worker queue lenght Más...
 
static int _workerQueueCompleted = 0
 Background worker queued items completed count Más...
 
static bool AbortRequested = false
 Flag for a controlled termination of the Async sending process Más...
 
static bool _ActiveTraces = false
 

Propiedades

abstract string NombreComponente [get]
 Nombre del componente que encapsulará el adapter derivado Más...
 
string ErrorMessage = "" [get, protected set]
 Public property for retrieving errors Más...
 
string GeneratedSignature = "" [get, protected set]
 Public property for retrieving the generated digital signature data Más...
 
string GeneratedXMLFile = "" [get, protected set]
 Public property for retrieving a generated XML signed file Más...
 
string GeneratedCode = "" [get, protected set]
 Public property for retrieving a generated Code Más...
 
string GeneratedQR = "" [get, protected set]
 Public property for retrieving a generated QR Code Más...
 
static bool UseCertificateFile = false [get, set]
 Use a physical file with certificate data Más...
 
static string CertificateName = "" [get, set]
 Either the filenme of a physical file with certificate data, or the Certificate name in the Windows Cert Storage Más...
 
static SecureString CertificatePassword = null [get, set]
 For physical files with certificate data, the password, for Stored Certificates, the thumbprint. Más...
 
static string TerminalCertificateName = null [get, set]
 Selected certificate name from Sage50 Terminal Más...
 
static string TerminalSerialNumber = null [get, set]
 Sage50 Terminal Serial Number Más...
 
static HashSet< string > FacturasCreadasEstaSesionSinEnviar [get]
 

Eventos

sage.addons.factucert.Negocio.Interficies.MassiveSendAbort _MassiveSendAbort
 Evento que se produce antes de la ejecución de cada certificación Más...
 
sage.addons.factucert.Negocio.Interficies.MassiveSendEnded _MassiveSendEnded
 Evento que se produce al concluir la certificación Más...
 
sage.addons.factucert.Negocio.Interficies.MassiveSendRunWorkerCompleted _MassiveSendRunWorkerCompleted
 Evento delegado que se produce al abacar el proceso asincrono Más...
 
sage.addons.factucert.Negocio.Interficies.MassiveSendProgress _MassiveSendProgress
 Evento que se produce al incrementar el progreso del proceso Más...
 
sage.addons.factucert.Negocio.Interficies.CertifiedFileNotFound _CertifiedFileNotFound
 Evento que se produce al no encontrar un fichero certificado para enviar Más...
 
sage.addons.factucert.Negocio.Interficies.FileRejected _FileRejected
 Evento que se produce al recibir un rechazo Más...
 
sage.addons.factucert.Negocio.Interficies.ServiceUnavailable _ServiceUnavailable
 Evento que se produce cuando el servicio no esta disponible Más...
 

Descripción detallada

Clase abstracta de soporte a los diferentes Adapters que envuelven a los componentes externos

Definición en la línea 24 del archivo CertificationAdapter.cs.

Documentación del constructor y destructor

◆ CertificationAdapter()

sage.addons.factucert.Negocio.Clases.CertificationAdapter.CertificationAdapter ( string  mascaraCertificacion)
inlineprotected

Parámetros
mascaraCertificacion

Definición en la línea 49 del archivo CertificationAdapter.cs.

Documentación de las funciones miembro

◆ _DeTextoADecimal()

decimal sage.addons.factucert.Negocio.Clases.CertificationAdapter._DeTextoADecimal ( string  tcValorEnTexto)
inlineprotected

Función auxiliar para convertir strings en formato libre a decimal. Si no puede devuelve 0.0

Parámetros
tcValorEnTexto
Devuelve

Definición en la línea 1197 del archivo CertificationAdapter.cs.

◆ AjustarTipoRegistroParaAnulaciones()

Enums.TipoRegistroCertif sage.addons.factucert.Negocio.Clases.CertificationAdapter.AjustarTipoRegistroParaAnulaciones ( bool  esAnulacion,
Enums.TipoRegistroCertif  tipo 
)
inlineprotected

Definición en la línea 682 del archivo CertificationAdapter.cs.

◆ CalcularBaseIvaAplicandoEntregas()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.CalcularBaseIvaAplicandoEntregas ( AsientosFacturasVentaGenerador.TipoIvaLinea  iva,
AsientosFacturasVentaGenerador  datosFactura,
EntregasEnFactura  datosEntregas 
)
inlineprotected

Definición en la línea 1118 del archivo CertificationAdapter.cs.

◆ CalcularBasesExentasAplicandoEntregas()

List<string> sage.addons.factucert.Negocio.Clases.CertificationAdapter.CalcularBasesExentasAplicandoEntregas ( List< string >  basesExentas,
AsientosFacturasVentaGenerador  datosFactura,
EntregasEnFactura  datosEntregas 
)
inlineprotected

Los datos de bases exentas son a libre asignación del usuario pero hay que aplicar de alguna forma una minoración en base a las entregas

Parámetros
bases
datosFactura
datosEntregas
Devuelve

Definición en la línea 1136 del archivo CertificationAdapter.cs.

◆ CheckURLList()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.CheckURLList ( )
inlineprotected

For Setting up the URL List

Definición en la línea 602 del archivo CertificationAdapter.cs.

◆ ConfigureCertificate()

static void sage.addons.factucert.Negocio.Clases.CertificationAdapter.ConfigureCertificate ( bool  useCertificateFile,
string  certificateName,
SecureString  certificatePassword = null 
)
inlinestaticprotected

Configure the Certificate data for signing the file

Parámetros
useCertificateFileUse a physical file with a cert, or a certificate placed in the Windows storage
certificateNameName for the certificate, either the File Name, or the Certificate Id in the Storage
certificatePasswordOptional. For physical files with certificate data, the password, for Stored Certificates, the thumbprint.

Definición en la línea 675 del archivo CertificationAdapter.cs.

◆ ConvertirTerritorioDe200A50()

static string sage.addons.factucert.Negocio.Clases.CertificationAdapter.ConvertirTerritorioDe200A50 ( string  territorio200)
inlinestaticprotected

Get the different codes for the Province mapped from TBai Component values Values to Sage50

Parámetros
territorio200The value of TBai Component territory
Devuelve
The value of the S50 territory

Definición en la línea 350 del archivo CertificationAdapter.cs.

◆ ConvertirTerritorioDe50AComponente()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.ConvertirTerritorioDe50AComponente ( int  territorio50)
inlineprotected

Get the different codes for the Province mapped from Sage50 Values to TBai Component values

Parámetros
territorio50The value of Sage50 territory
Devuelve
The value of the TBai Component territory

Definición en la línea 323 del archivo CertificationAdapter.cs.

◆ DisposeAsyncProcess()

abstract void sage.addons.factucert.Negocio.Clases.CertificationAdapter.DisposeAsyncProcess ( )
protectedpure virtual

◆ EsNoSujeta()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.EsNoSujeta ( eTipoOperacionEmitidasSII  tipoOpIva)
inlineprotected

Definición en la línea 1299 del archivo CertificationAdapter.cs.

◆ EsSujeta()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.EsSujeta ( eTipoOperacionEmitidasSII  tipoOpIva)
inlineprotected

Definición en la línea 1291 del archivo CertificationAdapter.cs.

◆ GenerarClaveRegimenEspecialTrascendencia()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.GenerarClaveRegimenEspecialTrascendencia ( DataRow  toFactura,
Certification_XML_Parameters  XML_generator_parameters,
int  _nTerritorio,
int  lnComuni_c,
string  lcNif,
bool  llCritCaja,
bool  llIvaNoCero,
out string  ClaveRegimenEspecialOTrascendencia,
out string  ClaveRegimenEspecialOTrascendenciaAdicional1 
)
inlineprotected

Method for calculating the IVA/VAT regime of a given Invoice

Parámetros
toFactura
_nTerritorioTerritorio SII
lnComuni_c
lcNif
llCritCaja
llIvaNoCero
ClaveRegimenEspecialOTrascendencia
ClaveRegimenEspecialOTrascendenciaAdicional1

Definición en la línea 756 del archivo CertificationAdapter.cs.

◆ GenerateTrace()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.GenerateTrace ( string  basicInfo,
string  extendedInfo = "" 
)
inlineprotected

Traces for debugging

Parámetros
basicInfoTrace info
extendedInfoTrace extra info

Definición en la línea 623 del archivo CertificationAdapter.cs.

◆ GetAllSimpleValuesFromJSON()

List<string> sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetAllSimpleValuesFromJSON ( string  jsonContent,
string  tagName,
string  mascara 
)
inlineprotected

Helper method for reading all given tags from a JSON string

Parámetros
jsonContentJSON string to process
tagNameTag to look for
Devuelve
List of string contents of the required tags

Definición en la línea 1274 del archivo CertificationAdapter.cs.

◆ GetAllSimpleValuesFromXML()

List<string> sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetAllSimpleValuesFromXML ( string  xmlContent,
string  tagName 
)
inlineprotected

Helper method for reading all tags from a XML string for a given field

Parámetros
xmlContentXML string to process
tagNameTag to look for
Devuelve
List of string contents of the required tags

Definición en la línea 1251 del archivo CertificationAdapter.cs.

◆ GetEntorno()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetEntorno ( )
inlineprotected

Obtiene el entorno en el que se esta ejecutando (PRE o PRO)

Devuelve

Definición en la línea 420 del archivo CertificationAdapter.cs.

◆ GetImporteRetencionFiscal()

decimal sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetImporteRetencionFiscal ( AsientosFacturasVentaGenerador  datosFactura)
inlineprotected

Obtiene el importe de la retención fical a partir de los datos de factuara

Parámetros
datosFactura
Devuelve

Definición en la línea 521 del archivo CertificationAdapter.cs.

◆ GetImporteTotalFacturaTickets()

decimal sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetImporteTotalFacturaTickets ( ewDocVentaTPV  datosTicket)
inlineprotected

Definición en la línea 531 del archivo CertificationAdapter.cs.

◆ GetQrURL()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetQrURL ( string  territorio)
inlineprotected

For generating the URL for the QR Code

Parámetros
territorioProvince code as defined by the component
Devuelve
The web URL endpoint for getting the QR code

Definición en la línea 582 del archivo CertificationAdapter.cs.

◆ GetRowCompletoTabla()

DataRow sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetRowCompletoTabla ( string  tableDatabase,
string  tableName,
string  whereClause 
)
inlineprotected

Helper for retrieving a whole Row of a database table

Parámetros
tableDatabaseDatabase to read
tableNameTable name to read
whereClauseWhere clause
Devuelve
The selected DataRow, if any

Definición en la línea 1224 del archivo CertificationAdapter.cs.

◆ GetSendURL()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetSendURL ( string  territorio,
bool  anulacion,
DateTime  documentDate 
)
inlineprotected

For generating the URL for sending files depending on the Province

Parámetros
territorioProvince code as defined by the TBai component
anulacionIs a cancellation URL request
Devuelve
The web URL endpoint for sending the XML file

Definición en la línea 560 del archivo CertificationAdapter.cs.

◆ GetSigPolicyHash_DigestValue()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetSigPolicyHash_DigestValue ( string  territorio)
inlineprotected

Definición en la línea 402 del archivo CertificationAdapter.cs.

◆ GetSigPolicyId_Description()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetSigPolicyId_Description ( string  territorio)
inlineprotected

Definición en la línea 374 del archivo CertificationAdapter.cs.

◆ GetSigPolicyId_Identifier()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetSigPolicyId_Identifier ( string  territorio)
inlineprotected

Definición en la línea 388 del archivo CertificationAdapter.cs.

◆ GetTerritorioEnvio()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetTerritorioEnvio ( bool  usarValorComponente200)
inlineprotected

Get province code

Devuelve
TBai Province code

Definición en la línea 289 del archivo CertificationAdapter.cs.

◆ IncorporarPaisAlNif()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.IncorporarPaisAlNif ( string  codigoPais,
string  nifCliente 
)
inlineprotected

Método auxiliar para encapsular los casos especiales a la hora de incorporar el país al nif

Parámetros
codigoPais
nifCliente
Devuelve

Definición en la línea 739 del archivo CertificationAdapter.cs.

◆ LanzarEvento_BeforeEnvioElemento()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.LanzarEvento_BeforeEnvioElemento ( ref bool  llOk)
inlineprotected

Lanza un evento de inicio de proceso de un nuevo elemento

Parámetros
llOk

Definición en la línea 170 del archivo CertificationAdapter.cs.

◆ LanzarEvento_Finalizacion()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.LanzarEvento_Finalizacion ( List< string >  completados,
List< string >  correctos,
List< string >  fallidos,
List< string >  pendientes,
List< string >  rechazados,
bool  canceled = false 
)
inlineprotected

Lanza un evento con el resultado de la ejecución

Parámetros
completadosEnvíos completados (sin importar el resultado)
correctosEnvíos correctos
fallidosEnvíos con errores
pendientesEnvíos no realizados
rechazadosEnvíos rechazados
canceledTrue para operación cancelada

Definición en la línea 100 del archivo CertificationAdapter.cs.

◆ LanzarEvento_Progreso()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.LanzarEvento_Progreso ( int  totalElementos,
int  elementoActual 
)
inlineprotected

Calcula y lanza un evento de progreso

Parámetros
totalElementos
elementoActual

Definición en la línea 145 del archivo CertificationAdapter.cs.

◆ LanzarEvento_ServicioNoDisponible()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.LanzarEvento_ServicioNoDisponible ( string  mensaje,
TipoMensaje  severidad 
)
inlineprotected

Lanza un evento de notificación de servicio no disponible

Parámetros
mensaje
severidad

Definición en la línea 134 del archivo CertificationAdapter.cs.

◆ NifClienteEsEspecialOperaciones()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.NifClienteEsEspecialOperaciones ( string  nifCliente)
inlineprotected

Nif especiales (empiezan por N o por W)

Parámetros
nifCliente
Devuelve

Definición en la línea 1185 del archivo CertificationAdapter.cs.

◆ NormalizarCaracteresNif()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.NormalizarCaracteresNif ( string  nifCandidato)
inlineprotected

Suprime espacion y caráctetes especiales de un nif candidato.

Parámetros
nifCandidatoNif candidato
Devuelve
Nif sin carácteres especiales ni espacios

Definición en la línea 546 del archivo CertificationAdapter.cs.

◆ ObtenerDatosRectificadasMultiplesFacturas()

IEnumerable<DetalleFacturaRectificativaDTO> sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerDatosRectificadasMultiplesFacturas ( string  factura)
inlineprotected

Definición en la línea 1023 del archivo CertificationAdapter.cs.

◆ ObtenerDatosRectificadasMultiplesTickets()

IEnumerable<DetalleTicketRectificativoDTO> sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerDatosRectificadasMultiplesTickets ( string  ticket,
string  letra 
)
inlineprotected

Definición en la línea 1015 del archivo CertificationAdapter.cs.

◆ ObtenerDatosSoftwareFacturacion()

SoftwareFacturacionDTO sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerDatosSoftwareFacturacion ( )
inlineprotected

Método auxiliar para obtener los datos del software de facturación. Recupera eventuales sobreescrituras desde COMUNES.VARIABLES

Devuelve

Definición en la línea 307 del archivo CertificationAdapter.cs.

◆ ObtenerSiiIva303()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerSiiIva303 ( string  numFactura,
string  claveComprobar,
string  codigoTipoIva = "" 
)
inlineprotected

Checker for particular IVA/VAT types within a given invoice

Parámetros
numFacturaInvoice number
claveComprobarType of VAT to check for
codigoTipoIvaSpecific code to check
Devuelve
Existance of given VAT type

Definición en la línea 965 del archivo CertificationAdapter.cs.

◆ ObtenerSiiIva303Ticket()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerSiiIva303Ticket ( ewDocVentaTPV  datosTicket,
string  claveComprobar 
)
inlineprotected

Checker for particular IVA/VAT types within a given ticket

Parámetros
datosTicketTicket data
claveComprobarType of VAT to check for
Devuelve
Existance of given VAT type

Definición en la línea 1058 del archivo CertificationAdapter.cs.

◆ ObtenerTipoOperacionFactura()

eTipoOperacionEmitidasSII sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerTipoOperacionFactura ( string  numFactura,
string  tipoIVA 
)
inlineprotected

Aux method for calculating the IVA/VAT regime of a given Invoice

Parámetros
numFacturaInvoice number
Devuelve
The SII type of operation of this invoice

Definición en la línea 987 del archivo CertificationAdapter.cs.

◆ ObtenerTipoOperacionTicket()

eTipoOperacionEmitidasSII sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerTipoOperacionTicket ( ewDocVentaTPV  datosTicket,
string  VATCode 
)
inlineprotected

Aux method for calculating the IVA/VAT regime of a given Ticket

Parámetros
datosTicketTicket data
Devuelve
The SII type of operation of this ticket

Definición en la línea 1036 del archivo CertificationAdapter.cs.

◆ OperacionIVAEuropeo()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.OperacionIVAEuropeo ( int  tnOperacion)
inlineprotected

Devuelve si es una operación del IVA Europeo

Operaciones:

  1. Operaciones en el Régimen de la Unión - OSS Servicio Sujeto Servicio No Sujeto Bien Sujeto Bien No sujeto Bien no sujeto: (pendiente de confirmar IMMA)
  2. Operaciones en el Régimen Exterior de la unión -OSS Servicio Sujeto Servicio No Sujeto
  3. Ventas a distancia de bienes importados de escaso valor Bien Sujeto Bien No sujeto Bien no sujeto: (pendiente de confirmar IMMA)
  4. Operaciones IVA destino Servicio No Sujeto Bien No sujeto Bien no sujeto: (pendiente de confirmar IMMA)
Parámetros
tnOperacionOperación del asiento
Devuelve

Definición en la línea 946 del archivo CertificationAdapter.cs.

◆ ReadTerminalData()

static void sage.addons.factucert.Negocio.Clases.CertificationAdapter.ReadTerminalData ( )
inlinestaticprotected

Reading data from the Terminal used for Invoicing

Definición en la línea 659 del archivo CertificationAdapter.cs.

◆ TerritorioSoportaEnvioOnline()

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.TerritorioSoportaEnvioOnline ( )
inlineprotected

Check if the current Territory Suppors Online sending

Devuelve
True if online sending is allowed

Definición en la línea 432 del archivo CertificationAdapter.cs.

◆ ToMonedaEmpresa()

decimal sage.addons.factucert.Negocio.Clases.CertificationAdapter.ToMonedaEmpresa ( AsientosFacturasVentaGenerador  datosFactura,
decimal  importe 
)
inlineprotected

Definición en la línea 489 del archivo CertificationAdapter.cs.

◆ TratarImporte()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.TratarImporte ( AsientosFacturasVentaGenerador  datosFactura,
decimal  importe,
string  mascara 
)
inlineprotected

Definición en la línea 484 del archivo CertificationAdapter.cs.

◆ ValidarTerritorio() [1/2]

abstract bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.ValidarTerritorio ( string  territorio50)
protectedpure virtual

Metodo de validación de código de Sage50 para territorio

Parámetros
territorio50
Devuelve

Implementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu y sage.addons.factucert.Negocio.Clases.CertificationAdapterTbai.

◆ ValidarTerritorio() [2/2]

abstract bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.ValidarTerritorio ( int  territorio50)
protectedpure virtual

Metodo de validación de código de Sage50 para territorio

Parámetros
territorio50
Devuelve

Implementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu y sage.addons.factucert.Negocio.Clases.CertificationAdapterTbai.

◆ WorkerEnvios_RunWorkerCompleted()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.WorkerEnvios_RunWorkerCompleted ( object  sender,
RunWorkerCompletedEventArgs  e 
)
inlineprotected

Definición en la línea 175 del archivo CertificationAdapter.cs.

Documentación de los campos

◆ _ActiveTraces

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter._ActiveTraces = false
staticprotected

Definición en la línea 263 del archivo CertificationAdapter.cs.

◆ _mascaraParaCertificacion

readonly string sage.addons.factucert.Negocio.Clases.CertificationAdapter._mascaraParaCertificacion = "0.00"
protected

Mask for formatting strings toxml document. It is fixed in the derived definition document and XML schema, so we ignore Sage50 internal masks.

Definición en la línea 31 del archivo CertificationAdapter.cs.

◆ _workerEnvios

BackgroundWorker sage.addons.factucert.Negocio.Clases.CertificationAdapter._workerEnvios = null
staticprotected

Background worker for async operations

Definición en la línea 241 del archivo CertificationAdapter.cs.

◆ _workerQueueCompleted

int sage.addons.factucert.Negocio.Clases.CertificationAdapter._workerQueueCompleted = 0
staticprotected

Background worker queued items completed count

Definición en la línea 251 del archivo CertificationAdapter.cs.

◆ _workerQueueLenght

int sage.addons.factucert.Negocio.Clases.CertificationAdapter._workerQueueLenght = 0
staticprotected

Background worker queue lenght

Definición en la línea 246 del archivo CertificationAdapter.cs.

◆ AbortRequested

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.AbortRequested = false
staticprotected

Flag for a controlled termination of the Async sending process

Definición en la línea 256 del archivo CertificationAdapter.cs.

◆ DataAccess

ICertificationDA sage.addons.factucert.Negocio.Clases.CertificationAdapter.DataAccess = DependencyInjector.Instance.Retrieve<ICertificationDA>()
staticprotected

Acceso a datos

Definición en la línea 43 del archivo CertificationAdapter.cs.

◆ loFactura

ew.docsven.ewDocVentaFRA sage.addons.factucert.Negocio.Clases.CertificationAdapter.loFactura = null
protected

Member for holding additional Invoice data

Definición en la línea 956 del archivo CertificationAdapter.cs.

◆ MonedaEmpresa

readonly string sage.addons.factucert.Negocio.Clases.CertificationAdapter.MonedaEmpresa = Convert.ToString(EW_GLOBAL._GetVariable("wc_moneda"))
protected

Definición en la línea 26 del archivo CertificationAdapter.cs.

Documentación de propiedades

◆ CertificateName

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.CertificateName = ""
staticgetsetprotected

Either the filenme of a physical file with certificate data, or the Certificate name in the Windows Cert Storage

Definición en la línea 219 del archivo CertificationAdapter.cs.

◆ CertificatePassword

SecureString sage.addons.factucert.Negocio.Clases.CertificationAdapter.CertificatePassword = null
staticgetsetprotected

For physical files with certificate data, the password, for Stored Certificates, the thumbprint.

Definición en la línea 224 del archivo CertificationAdapter.cs.

◆ ErrorMessage

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.ErrorMessage = ""
getprotected set

Public property for retrieving errors

Definición en la línea 187 del archivo CertificationAdapter.cs.

◆ FacturasCreadasEstaSesionSinEnviar

HashSet<string> sage.addons.factucert.Negocio.Clases.CertificationAdapter.FacturasCreadasEstaSesionSinEnviar
staticgetprotected

Definición en la línea 637 del archivo CertificationAdapter.cs.

◆ GeneratedCode

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GeneratedCode = ""
getprotected set

Public property for retrieving a generated Code

Definición en la línea 202 del archivo CertificationAdapter.cs.

◆ GeneratedQR

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GeneratedQR = ""
getprotected set

Public property for retrieving a generated QR Code

Definición en la línea 207 del archivo CertificationAdapter.cs.

◆ GeneratedSignature

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GeneratedSignature = ""
getprotected set

Public property for retrieving the generated digital signature data

Definición en la línea 192 del archivo CertificationAdapter.cs.

◆ GeneratedXMLFile

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GeneratedXMLFile = ""
getprotected set

Public property for retrieving a generated XML signed file

Definición en la línea 197 del archivo CertificationAdapter.cs.

◆ NombreComponente

abstract string sage.addons.factucert.Negocio.Clases.CertificationAdapter.NombreComponente
getprotected

Nombre del componente que encapsulará el adapter derivado

Definición en la línea 36 del archivo CertificationAdapter.cs.

◆ TerminalCertificateName

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.TerminalCertificateName = null
staticgetsetprotected

Selected certificate name from Sage50 Terminal

Definición en la línea 229 del archivo CertificationAdapter.cs.

◆ TerminalSerialNumber

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.TerminalSerialNumber = null
staticgetsetprotected

Sage50 Terminal Serial Number

Definición en la línea 234 del archivo CertificationAdapter.cs.

◆ UseCertificateFile

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.UseCertificateFile = false
staticgetsetprotected

Use a physical file with certificate data

Definición en la línea 214 del archivo CertificationAdapter.cs.

Documentación de los eventos

◆ _CertifiedFileNotFound

sage.addons.factucert.Negocio.Interficies.CertifiedFileNotFound sage.addons.factucert.Negocio.Clases.CertificationAdapter._CertifiedFileNotFound

Evento que se produce al no encontrar un fichero certificado para enviar

Definición en la línea 79 del archivo CertificationAdapter.cs.

◆ _FileRejected

sage.addons.factucert.Negocio.Interficies.FileRejected sage.addons.factucert.Negocio.Clases.CertificationAdapter._FileRejected

Evento que se produce al recibir un rechazo

Definición en la línea 84 del archivo CertificationAdapter.cs.

◆ _MassiveSendAbort

sage.addons.factucert.Negocio.Interficies.MassiveSendAbort sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendAbort

Evento que se produce antes de la ejecución de cada certificación

Definición en la línea 59 del archivo CertificationAdapter.cs.

◆ _MassiveSendEnded

sage.addons.factucert.Negocio.Interficies.MassiveSendEnded sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendEnded

Evento que se produce al concluir la certificación

Definición en la línea 64 del archivo CertificationAdapter.cs.

◆ _MassiveSendProgress

sage.addons.factucert.Negocio.Interficies.MassiveSendProgress sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendProgress

Evento que se produce al incrementar el progreso del proceso

Definición en la línea 74 del archivo CertificationAdapter.cs.

◆ _MassiveSendRunWorkerCompleted

sage.addons.factucert.Negocio.Interficies.MassiveSendRunWorkerCompleted sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendRunWorkerCompleted

Evento delegado que se produce al abacar el proceso asincrono

Definición en la línea 69 del archivo CertificationAdapter.cs.

◆ _ServiceUnavailable

sage.addons.factucert.Negocio.Interficies.ServiceUnavailable sage.addons.factucert.Negocio.Clases.CertificationAdapter._ServiceUnavailable

Evento que se produce cuando el servicio no esta disponible

Definición en la línea 89 del archivo CertificationAdapter.cs.


La documentación para esta clase fue generada a partir del siguiente fichero: