|
| CertificationAdapterTbai () |
| Constructor.
|
|
bool | GenerarXmlFirmado (List< ewDocVentaTPV > listaDatosAlbaranes, AsientosFacturasVentaGenerador datosFactura, ref Certification_XML_Parameters XML_generator_parameters) |
| Adapted call for interfacing with Sage50 for generating XML Ticket Bai files.
|
|
bool | GenerarXmlFirmadoEvento (ParamGenerarXmlFirmarEvento toParametros) |
| Genera un XML firmado evento parámetros recibidos(Por ahora sin funcionalidad )
|
|
bool | GenerarXmlAnulacionFirmado (ref Certification_Annulment_XML_Parameters annulmentParameters) |
| Genera un XML firmado para la operación de anulación.
|
|
bool | LaunchCertifyUnitTest () |
| For Unit Testing.
|
|
string | GetXMLFileNameForInvoiceOrTicket (string numDoc, DateTime fechaDoc) |
| Devuelve el nombre del fichero de la factura o ticket certificada.
|
|
string | GetXMLFileNameForAnnullment (string numDoc, DateTime fechaDoc) |
| Devuelve el nombre de la de fichero para operación de anulación.
|
|
void | Dispose () |
| Part of the IDisposable pattern.
|
|
bool | ExecuteMassiveSend (bool useAsyncWorker=true) |
| Public entry point for starting the send process of all pending TBai invoices/tickets - Parámetros
-
useAsyncWorker | Perform the upload process as a background task. On Release this should always be true, false only for debugging purposes |
- Devuelve
- A boolean indicating that the process was started successfully. A false means that other async process is already running in the background, and the current call will be ignored.
|
|
bool | ExecuteCustomSend (IEnumerable< EnvioPendiente > documentosRequeridos, Envios oEnvios, bool useAsyncWorker=true) |
| Ejecuta un envio personalizado.
|
|
bool | RequestMassiveSendAbortAndWait () |
| Sync method for stopping the Async TBai document sending thread.
|
|
bool | IsMassiveSendAsyncProcessRunning () |
| For checking if the Process is Running.
|
|
bool | IsMassiveSendAsyncProcessRunning (out int queueLenght, out int itemsCompleted) |
| For checking if the Process is Running, plus returning queue lenght and items completed values.
|
|
bool | IsMassiveSendAsyncProcessRunning (out int queueLenght, out int itemsCompleted, out List< string > listaFacturasSesionPendientes) |
| For checking if the Process is Running, plus returning queue lenght and items completed values, plus a list of Invoices generated this session and pending.
|
|
bool | LaunchSendUnitTest_Alava () |
| For Unit Testing.
|
|
bool | LaunchSendUnitTest_Vizcaya () |
| For Unit Testing.
|
|
bool | LaunchSendUnitTest_Gipuzkoa () |
| For Unit Testing.
|
|
|
override bool | ValidarTerritorio (string territorio) |
| Metodo de validación de código de Sage50 para territorio.
|
|
override bool | ValidarTerritorio (int territorio50) |
| Metodo de validación de código de Sage50 para territorio.
|
|
override void | DisposeAsyncProcess () |
| Libera el proceso asíncrono.
|
|
virtual void | Dispose (bool disposing) |
| Part of the IDisposable pattern.
|
|
| 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< DetalleTicketRectificativoDTO > | ObtenerDatosRectificadasMultiplesTickets (string ticket, string letra) |
|
IEnumerable< DetalleFacturaRectificativaDTO > | ObtenerDatosRectificadasMultiplesFacturas (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) |
|
|
override string | NombreComponente [get] |
| Nombre del componente que encapsula este adapter.
|
|
bool | EnviosForzados = false [get, set] |
| Indica si se deben forzar los envios. Especifico de Verifactu para indicar si hay que lidiar con los timers de envio.
|
|
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] |
|
string | ErrorMessage [get] |
| Mensaje de error.
|
|
string | GeneratedSignature [get] |
| Firma generada.
|
|
string | GeneratedCode [get] |
| Código generado.
|
|
string | GeneratedQR [get] |
| QR generado.
|
|
string | GeneratedXMLFile [get] |
| Fichero generado.
|
|
Adapter para el componente TBAI.
Definición en la línea 27 del archivo CertificationAdapterTbai.cs.