private void GuardarInformacion(TimbreWs33 topPComprobante, int idErrorSat, string strLAcuseReciboSat,
                                        Acuse acuseReciboSAT)
        {
            try
            {
                NtLinkTimbrado t = new NtLinkTimbrado();

                //si por falta de conexión no actualizo//
                if (idErrorSat == 103 || idErrorSat == 502 || idErrorSat == 501)
                {
                    return;
                }

                topPComprobante.Acuse      = strLAcuseReciboSat;
                topPComprobante.FechaEnvio = acuseReciboSAT.Fecha;

                if (idErrorSat != 0)
                {
                    topPComprobante.Error    = idErrorSat;
                    topPComprobante.StrError = acuseReciboSAT.Incidencia[0].MensajeIncidencia;
                    topPComprobante.Status   = 90;
                }
                else
                {
                    topPComprobante.Status = 1;
                }

                t.GuardarTimbre(topPComprobante);
            }
            catch (Exception ex)
            {
                Log.Error("Error al intentar salvar la información, Err:" + ex.ToString());
            }
        }
Example #2
0
 public AcuseRecepcion(SAT.CFDI.Cliente.Procesamiento.ServicioRecepcionCFDI.Acuse AcuseRecepcionCFDI)
 {
     this.AcuseRecepcionCFDI = AcuseRecepcionCFDI;
 }