本文整理汇总了Python中pysped.xml_sped.XMLNFe类的典型用法代码示例。如果您正苦于以下问题:Python XMLNFe类的具体用法?Python XMLNFe怎么用?Python XMLNFe使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XMLNFe类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += '<nfse:RetornoCancelamentoNFSe xmlns:nfse="http://localhost:8080/WsNFe2/lote">'
xml += self.Cabecalho.xml
if len(self.NotasCanceladas):
xml += '<NotasCanceladas>'
for n in self.NotasCanceladas:
xml += n.xml
xml += '</NotasCanceladas>'
if len(self.Alertas):
xml += '<Alertas>'
for a in self.Alertas:
xml += a.xml
xml += '</Alertas>'
if len(self.Erros):
xml += '<Erros>'
for e in self.Erros:
xml += e.xml
xml += '</Erros>'
xml += '</nfse:RetornoCancelamentoNFSe>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:32,代码来源:retornocancelamentonfse_100.py
示例2: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.versaoDados.xml
xml += '</cabecMsg>'
return xml
开发者ID:Anferi,项目名称:PySPED,代码行数:7,代码来源:soap_100.py
示例3: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
if self.Id.xml:
xml += self.Id.xml
else:
xml += '<infEvento>'
xml += self.tpAmb.xml
xml += self.verAplic.xml
xml += self.cOrgao.xml
xml += self.cStat.xml
xml += self.xMotivo.xml
xml += self.chNFe.xml
xml += self.tpEvento.xml
xml += self.xEvento.xml
xml += self.nSeqEvento.xml
if self.CNPJDest.valor:
xml += self.CNPJDest.xml
elif self.CPFDest.valor:
xml += self.CPFDest.xml
xml += self.emailDest.xml
xml += self.dhRegEvento.xml
xml += self.nProt.xml
xml += '</infEvento>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:28,代码来源:eventonfe_100.py
示例4: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += '<nfse:RetornoConsultaLote xmlns:nfse="http://localhost:8080/WsNFe2/lote">'
xml += self.Cabecalho.xml
if len(self.Alertas):
xml += '<Alertas>'
for a in self.Alertas:
xml += a.xml
xml += '</Alertas>'
if len(self.Erros):
xml += '<Erros>'
for e in self.Erros:
xml += e.xml
xml += '</Erros>'
if len(self.ListaNFSe):
xml += '<ListaNFSe>'
for c in self.ListaNFSe:
xml += c.xml
xml += '</ListaNFSe>'
xml += '</nfse:RetornoConsultaLote>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:33,代码来源:retornoconsultalote_100.py
示例5: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += '<nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/' + self.webservice + '">'
xml += self.cUF.xml
xml += self.versaoDados.xml
xml += '</nfeCabecMsg>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:7,代码来源:soap_200.py
示例6: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += '<nfse:RetornoConsultaSeqRps xmlns:nfse="http://localhost:8080/WsNFe2/lote" xmlns:tipos="http://localhost:8080/WsNFe2/tp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost:8080/WsNFe2/lote http://localhost:8080/WsNFe2/xsd/ConsultaSeqRps.xsd">'
xml += self.Cabecalho.xml
xml += '</nfse:RetornoConsultaSeqRps>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:7,代码来源:retornoconsultanfserps_100.py
示例7: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.infCons.xml
xml += '</ConsCad>'
return xml
开发者ID:Anferi,项目名称:PySPED,代码行数:7,代码来源:conscad_101.py
示例8: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.versao.xml
xml += self.descEvento.xml
xml += self.xCorrecao.xml
xml += self.xCondUso.xml
xml += '</detEvento>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:8,代码来源:evtccenfe_100.py
示例9: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.cancNFe.xml.replace(ABERTURA, '')
xml += self.retCancNFe.xml.replace(ABERTURA, '')
xml += '</procCancNFe>'
return xml
开发者ID:Anferi,项目名称:PySPED,代码行数:8,代码来源:cancnfe_107.py
示例10: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.NFe.xml.replace(ABERTURA, '')
xml += self.protNFe.xml.replace(ABERTURA, '')
xml += '</nfeProc>'
return xml
开发者ID:Anferi,项目名称:PySPED,代码行数:8,代码来源:consrecinfe_110.py
示例11: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.versao.xml
xml += self.descEvento.xml
xml += self.nProt.xml
xml += self.xJust.xml
xml += '</detEvento>'
return xml
开发者ID:arthur-debert,项目名称:PySPED,代码行数:8,代码来源:evtcancnfe_100.py
示例12: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.inutCTe.xml.replace(ABERTURA, '')
xml += self.retInutCTe.xml.replace(ABERTURA, '')
xml += '</procInutCTe>'
return xml
开发者ID:Anferi,项目名称:PySPED,代码行数:8,代码来源:inutcte_104.py
示例13: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.NSU.xml
xml += self.schema.xml
xml += self.base64Binary.xml
xml += '</docZip>'
return xml
开发者ID:odoo-brazil,项目名称:PySPED,代码行数:9,代码来源:distdfeint_100.py
示例14: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.tpAmb.xml
xml += self.xServ.xml
xml += self.chNFe.xml
xml += '</consSitCTe>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:9,代码来源:conssitcte_104.py
示例15: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.tpAmb.xml
xml += self.cUF.xml
xml += self.xServ.xml
xml += "</consStatServCte>"
return xml
开发者ID:joselobinho,项目名称:PySPED,代码行数:9,代码来源:consstatserv_104.py
示例16: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += "<Cabecalho>"
xml += self.CodCidade.xml
xml += self.CPFCNPJRemetente.xml
xml += self.Versao.xml
xml += self.NumeroLote.xml
xml += "</Cabecalho>"
return xml
开发者ID:elizeulinux,项目名称:PySPED,代码行数:9,代码来源:reqconsultalote_100.py
示例17: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += '<Cabecalho>'
xml += self.CodCid.xml
xml += self.IMPrestador.xml
xml += self.CPFCNPJRemetente.xml
xml += self.SeriePrestacao.xml
xml += self.Versao.xml
xml += '</Cabecalho>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:10,代码来源:consultaseqrps_100.py
示例18: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += '<retNFe>'
xml += self.chNFe.xml
xml += self.cStat.xml
xml += self.xMotivo.xml
xml += self.procNFeZip.xml
xml += self.procNFeGrupoZip.xml
xml += '</retNFe>'
return xml
开发者ID:FelipeLopes360,项目名称:PySPED,代码行数:10,代码来源:downloadnfe_100.py
示例19: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.Id.xml
if len(self.RPS):
for r in self.RPS:
xml += r.xml
xml += '</Lote>'
return xml
开发者ID:HostCERT,项目名称:PySPED,代码行数:10,代码来源:reqenvioloterps_100.py
示例20: get_xml
def get_xml(self):
if not self.nRec.valor:
return ""
xml = XMLNFe.get_xml(self)
xml += "<infRec>"
xml += self.nRec.xml
xml += self.tMed.xml
xml += "</infRec>"
return xml
开发者ID:joselobinho,项目名称:PySPED,代码行数:10,代码来源:envinfe_200.py
注:本文中的pysped.xml_sped.XMLNFe类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论