|
|
|
@ -1255,7 +1255,8 @@ class SerializacaoMDFe(Serializacao): |
|
|
|
veicTracao = etree.SubElement(rodo, 'veicTracao') |
|
|
|
etree.SubElement(veicTracao, 'cInt').text = item.cInt |
|
|
|
etree.SubElement(veicTracao, 'placa').text = item.placa |
|
|
|
etree.SubElement(veicTracao, 'RENAVAM').text = item.RENAVAM |
|
|
|
if item.RENAVAM: |
|
|
|
etree.SubElement(veicTracao, 'RENAVAM').text = item.RENAVAM |
|
|
|
etree.SubElement(veicTracao, 'tara').text = '{:.0f}'.format(item.tara or 0) |
|
|
|
etree.SubElement(veicTracao, 'capKG').text = '{:.0f}'.format(item.capKG or 0) |
|
|
|
etree.SubElement(veicTracao, 'capM3').text = '{:.0f}'.format(item.capM3 or 0) |
|
|
|
@ -1296,10 +1297,11 @@ class SerializacaoMDFe(Serializacao): |
|
|
|
veicReboque = etree.SubElement(rodo, 'veicReboque') |
|
|
|
etree.SubElement(veicReboque, 'cInt').text = item_reboque.cInt |
|
|
|
etree.SubElement(veicReboque, 'placa').text = item_reboque.placa |
|
|
|
etree.SubElement(veicReboque, 'RENAVAM').text = item_reboque.RENAVAM |
|
|
|
etree.SubElement(veicReboque, 'tara').text = '{:.2f}'.format(item_reboque.tara or 0) |
|
|
|
etree.SubElement(veicReboque, 'capKG').text = '{:.2f}'.format(item_reboque.capKG or 0) |
|
|
|
etree.SubElement(veicReboque, 'capM3').text = '{:.2f}'.format(item_reboque.capM3 or 0) |
|
|
|
if item_reboque.RENAVAM: |
|
|
|
etree.SubElement(veicReboque, 'RENAVAM').text = item_reboque.RENAVAM |
|
|
|
etree.SubElement(veicReboque, 'tara').text = '{:.0f}'.format(item_reboque.tara or 0) |
|
|
|
etree.SubElement(veicReboque, 'capKG').text = '{:.0f}'.format(item_reboque.capKG or 0) |
|
|
|
etree.SubElement(veicReboque, 'capM3').text = '{:.0f}'.format(item_reboque.capM3 or 0) |
|
|
|
|
|
|
|
# Propritario do veículo Reboque |
|
|
|
if item_reboque.proprietario: |
|
|
|
|