Cargando...
Buscando...
Nada coincide
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 herencia 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.
 
void LanzarEvento_ServicioNoDisponible (string mensaje, TipoMensaje severidad)
 Lanza un evento de notificación de servicio no disponible.
 
void LanzarEvento_Progreso (int totalElementos, int elementoActual)
 Calcula y lanza un evento de progreso.
 
void LanzarEvento_BeforeEnvioElemento (ref bool llOk)
 Lanza un evento de inicio de proceso de un nuevo elemento.
 
void WorkerEnvios_RunWorkerCompleted (object sender, RunWorkerCompletedEventArgs e)
 
bool ValidarTerritorio (string territorio50)
 Metodo de validación de código de Sage50 para territorio.
 
bool ValidarTerritorio (int territorio50)
 Metodo de validación de código de Sage50 para territorio.
 
void DisposeAsyncProcess ()
 Libera el proceso asíncrono.
 
string GetTerritorioEnvio (bool usarValorComponente200, string tcEmpresa="")
 Get province code.
 
SoftwareFacturacionDTO ObtenerDatosSoftwareFacturacion (string tcEmpresa="")
 Método auxiliar para obtener los datos del software de facturación. Recupera eventuales sobreescrituras desde COMUNES.VARIABLES.
 
string ConvertirTerritorioDe50AComponente (int territorio50)
 Get the different codes for the Province mapped from Sage50 Values to TBai Component values.
 
string GetSigPolicyId_Description (string territorio)
 
string GetSigPolicyId_Identifier (string territorio)
 
string GetSigPolicyHash_DigestValue (string territorio)
 
string GetEntorno (string tcEmpresa="")
 Obtiene el entorno en el que se esta ejecutando (PRE o PRO)
 
bool TerritorioSoportaEnvioOnline ()
 Check if the current Territory Suppors Online sending

Devuelve
True if online sending is allowed

 
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.
 
decimal GetImporteTotalFacturaTickets (ewDocVentaTPV datosTicket)
 
decimal GetCuotaTotalFacturaTickets (ewDocVentaTPV datosTicket)
 
string NormalizarCaracteresNif (string nifCandidato)
 Suprime espacion y caráctetes especiales de un nif candidato.
 
string GetSendURL (string territorio, bool anulacion, DateTime documentDate, int sistemaFacturacionForzado=-1)
 For generating the URL for sending files depending on the Province.
 
string GetQrURL (string territorio, int sistemaFacturacionForzado=-1)
 For generating the URL for the QR Code.
 
void CheckURLList ()
 For Setting up the URL List.
 
void GenerateTrace (string basicInfo, string extendedInfo="")
 Traces for debugging.
 
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.
 
virtual 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.
 
bool OperacionIVAEuropeo (int tnOperacion)
 Devuelve si es una operación del IVA Europeo.
 
bool ObtenerSiiIva303 (string numFactura, string claveComprobar, string codigoTipoIva="")
 Checker for particular IVA/VAT types within a given invoice.
 
eTipoOperacionEmitidasSII ObtenerTipoOperacionFactura (string numFactura, string tipoIVA)
 Aux method for calculating the IVA/VAT regime of a given Invoice.
 
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.
 
bool ObtenerSiiIva303Ticket (ewDocVentaTPV datosTicket, string claveComprobar)
 Checker for particular IVA/VAT types within a given ticket.
 
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.
 
bool NifClienteEsEspecialOperaciones (string nifCliente)
 Nif especiales (empiezan por N o por W)
 
decimal _DeTextoADecimal (string tcValorEnTexto)
 Función auxiliar para convertir strings en formato libre a decimal. Si no puede devuelve 0.0.
 
DataRow GetRowCompletoTabla (string tableDatabase, string tableName, string whereClause)
 Helper for retrieving a whole Row of a database table.
 
List< string > GetAllSimpleValuesFromXML (string xmlContent, string tagName)
 Helper method for reading all tags from a XML string for a given field.
 
List< string > GetAllSimpleValuesFromJSON (string jsonContent, string tagName, string mascara)
 Helper method for reading all given tags from a JSON string.
 
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.
 
static void ReadTerminalData (string tcEmpresa="")
 Reading data from the Terminal used for Invoicing.
 
static void ConfigureCertificate (bool useCertificateFile, string certificateName, SecureString certificatePassword=null)
 Configure the Certificate data for signing the file.
 

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.
 
ew.docsven.ewDocVentaFRA loFactura = null
 Member for holding additional Invoice data.
 

Atributos estáticos protegidos

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

Propiedades

string NombreComponente [get]
 Nombre del componente que encapsulará el adapter derivado.
 
string ErrorMessage = "" [get, protected set]
 Public property for retrieving errors.
 
string GeneratedSignature = "" [get, protected set]
 Public property for retrieving the generated digital signature data.
 
string GeneratedXMLFile = "" [get, protected set]
 Public property for retrieving a generated XML signed file.
 
string GeneratedCode = "" [get, protected set]
 Public property for retrieving a generated Code.
 
string GeneratedQR = "" [get, protected set]
 Public property for retrieving a generated QR Code.
 
static bool UseCertificateFile = false [get, set]
 Use a physical file with certificate data.
 
static string CertificateName = "" [get, set]
 Either the filenme of a physical file with certificate data, or the Certificate name in the Windows Cert Storage.
 
static SecureString CertificatePassword = null [get, set]
 For physical files with certificate data, the password, for Stored Certificates, the thumbprint.
 
static string TerminalCertificateName = null [get, set]
 Selected certificate name from Sage50 Terminal.
 
static string TerminalSerialNumber = null [get, set]
 Sage50 Terminal Serial Number.
 
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.
 
sage.addons.factucert.Negocio.Interficies.MassiveSendEnded _MassiveSendEnded
 Evento que se produce al concluir la certificación.
 
sage.addons.factucert.Negocio.Interficies.MassiveSendRunWorkerCompleted _MassiveSendRunWorkerCompleted
 Evento delegado que se produce al abacar el proceso asincrono.
 
sage.addons.factucert.Negocio.Interficies.MassiveSendProgress _MassiveSendProgress
 Evento que se produce al incrementar el progreso del proceso.
 
sage.addons.factucert.Negocio.Interficies.CertifiedFileNotFound _CertifiedFileNotFound
 Evento que se produce al no encontrar un fichero certificado para enviar.
 
sage.addons.factucert.Negocio.Interficies.FileRejected _FileRejected
 Evento que se produce al recibir un rechazo.
 
sage.addons.factucert.Negocio.Interficies.ServiceUnavailable _ServiceUnavailable
 Evento que se produce cuando el servicio no esta disponible.
 

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 de constructores y destructores

◆ 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 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 1232 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 716 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 1153 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 1171 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 632 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 709 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 353 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 326 del archivo CertificationAdapter.cs.

◆ DisposeAsyncProcess()

void sage.addons.factucert.Negocio.Clases.CertificationAdapter.DisposeAsyncProcess ( )
abstractprotected

Libera el proceso asíncrono.

◆ EsNoSujeta()

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

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

◆ EsSujeta()

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

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

◆ GenerarClaveRegimenEspecialTrascendencia()

virtual 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 )
inlineprotectedvirtual

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

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

Reimplementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu.

Definición en la línea 790 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 653 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 1312 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 1286 del archivo CertificationAdapter.cs.

◆ GetCuotaTotalFacturaTickets()

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

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

◆ GetEntorno()

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

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

Devuelve

Definición en la línea 423 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 538 del archivo CertificationAdapter.cs.

◆ GetImporteTotalFacturaTickets()

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

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

◆ GetQrURL()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetQrURL ( string territorio,
int sistemaFacturacionForzado = -1 )
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 602 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 1259 del archivo CertificationAdapter.cs.

◆ GetSendURL()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetSendURL ( string territorio,
bool anulacion,
DateTime documentDate,
int sistemaFacturacionForzado = -1 )
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 590 del archivo CertificationAdapter.cs.

◆ GetSigPolicyHash_DigestValue()

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

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

◆ GetSigPolicyId_Description()

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

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

◆ GetSigPolicyId_Identifier()

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

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

◆ GetTerritorioEnvio()

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.GetTerritorioEnvio ( bool usarValorComponente200,
string tcEmpresa = "" )
inlineprotected

Get province code.

Parámetros
tcEmpresaCódigo de empresa, si llega vacío el parámetro se asume la empresa activa.
Devuelve
TBai Province code

Definición en la línea 291 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 773 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 171 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 101 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 146 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 135 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 1220 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 576 del archivo CertificationAdapter.cs.

◆ ObtenerDatosRectificadasMultiplesFacturas()

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

Definición en la línea 1058 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 1050 del archivo CertificationAdapter.cs.

◆ ObtenerDatosSoftwareFacturacion()

SoftwareFacturacionDTO sage.addons.factucert.Negocio.Clases.CertificationAdapter.ObtenerDatosSoftwareFacturacion ( string tcEmpresa = "")
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 310 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 1000 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 1093 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 1022 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 1071 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 981 del archivo CertificationAdapter.cs.

◆ ReadTerminalData()

static void sage.addons.factucert.Negocio.Clases.CertificationAdapter.ReadTerminalData ( string tcEmpresa = "")
inlinestaticprotected

Reading data from the Terminal used for Invoicing.

Definición en la línea 689 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 435 del archivo CertificationAdapter.cs.

◆ ToMonedaEmpresa()

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

Definición en la línea 499 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 494 del archivo CertificationAdapter.cs.

◆ ValidarTerritorio() [1/2]

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.ValidarTerritorio ( int territorio50)
abstractprotected

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

Parámetros
territorio50
Devuelve

◆ ValidarTerritorio() [2/2]

bool sage.addons.factucert.Negocio.Clases.CertificationAdapter.ValidarTerritorio ( string territorio50)
abstractprotected

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

Parámetros
territorio50
Devuelve

◆ WorkerEnvios_RunWorkerCompleted()

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

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

Documentación de campos

◆ _ActiveTraces

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

Definición en la línea 264 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 242 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 252 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 247 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 257 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 991 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 220 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 225 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 188 del archivo CertificationAdapter.cs.

◆ FacturasCreadasEstaSesionSinEnviar

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

Definición en la línea 666 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 203 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 208 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 193 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 198 del archivo CertificationAdapter.cs.

◆ NombreComponente

string sage.addons.factucert.Negocio.Clases.CertificationAdapter.NombreComponente
getabstractprotected

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 230 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 235 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 215 del archivo CertificationAdapter.cs.

Documentación de 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 80 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 85 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 60 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 65 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 75 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 70 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 90 del archivo CertificationAdapter.cs.


La documentación de esta clase está generada del siguiente archivo: