本文整理汇总了Python中PySPED.pysped.xml_sped.XMLNFe类的典型用法代码示例。如果您正苦于以下问题:Python XMLNFe类的具体用法?Python XMLNFe怎么用?Python XMLNFe使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XMLNFe类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: 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
示例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
示例3: 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
示例4: 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
示例5: 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
示例6: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.cancCTe.xml.replace(ABERTURA, '')
xml += self.retCancCTe.xml.replace(ABERTURA, '')
xml += '</procCancCTe>'
return xml
示例7: 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
示例8: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.tpAmb.xml
xml += self.nRec.xml
xml += '</consReciCTe>'
return xml
示例9: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.inutNFe.xml.replace(ABERTURA, '')
xml += self.retInutNFe.xml.replace(ABERTURA, '')
xml += '</ProcInutNFe>'
return xml
示例10: get_xml
def get_xml(self):
if not self.NSU.valor:
return ''
xml = XMLNFe.get_xml(self)
xml += '<consNSU>'
xml += self.NSU.xml
xml += '</consNSU>'
return xml
示例11: 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
示例12: 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
示例13: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
if self.NFeZip.valor and self.protNFeZip.valor:
xml += '<procNFeGrupoZip>'
xml += self.NFeZip.xml
xml += self.protNFeZip.xml
xml += '</procNFeGrupoZip>'
return xml
示例14: 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
示例15: get_xml
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.idLote.xml
for n in self.NFe:
xml += tira_abertura(n.xml)
xml += '</enviNFe>'
return xml