|
|
@ -258,7 +258,7 @@ class SerializacaoXML(Serializacao): |
|
|
|
|
|
|
|
|
### ICMS |
|
|
### ICMS |
|
|
icms = etree.SubElement(imposto, 'ICMS') |
|
|
icms = etree.SubElement(imposto, 'ICMS') |
|
|
icms_csosn = ('102', '103', '300', '400') |
|
|
|
|
|
|
|
|
icms_csosn = ('102', '103', '300', '400', '500') |
|
|
if produto_servico.icms_modalidade in icms_csosn: |
|
|
if produto_servico.icms_modalidade in icms_csosn: |
|
|
icms_item = etree.SubElement(icms, 'ICMSSN'+produto_servico.icms_modalidade) |
|
|
icms_item = etree.SubElement(icms, 'ICMSSN'+produto_servico.icms_modalidade) |
|
|
etree.SubElement(icms_item, 'orig').text = str(produto_servico.icms_origem) |
|
|
etree.SubElement(icms_item, 'orig').text = str(produto_servico.icms_origem) |
|
|
|