Beispiel #1
0
        public static XmlNode ObterXmlStatusServicoNFe(NotaFiscal notaFiscal, XmlDocument xmlStatusServicoNFe)
        {
            var uf = LojaDAO.Instance.GetUf(notaFiscal.IdLoja.Value)?.ToUpper() ?? string.Empty;

            if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Producao)
            {
                return(GetWebService.NFeStatusServicoProducao(notaFiscal, null, uf).nfeStatusServicoNF(xmlStatusServicoNFe));
            }
            else if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Homologacao)
            {
                return(GetWebService.NFeStatusServicoHomologacao(notaFiscal, null, uf).nfeStatusServicoNF(xmlStatusServicoNFe));
            }

            return(null);
        }