...
Feito mapeamento do JSON recebido na emissão de NFe para gerar a tag ICMS 80 no XML enviado para Sefaz. <p style='margin-left: 30.0px;'></p><p style='margin-left: 30.0px;'>JSON recebido:</p><p style='margin-left: 30.0px;'></p>XML gerado:
JSON recebido:
Bloco de código | ||
---|---|---|
| ||
"icms70": {
"orig": 0,
"cst": "70",
"modBC": 2,
"vbc": 11.0,
"picms": 12.0,
"vicms": 101.0,
"modBCST": 4,
"pmvast": 14.0,
"picmsst": 16.0,
"vicmsst": 51.0,
"vicmsDeson": 17.0,
"motDesICMS": 4,
"predBC": 11.0,
"vbcfcp": 31.0,
"vbcfcpst": 61.0,
"predBCST": 16.0,
"vbcst": 51.0,
"pfcpst": 16.0,
"vfcpst": 71.0,
"vfcp": 41.0,
"pfcp": 13.0
} |
XML gerado:
Bloco de código | ||
---|---|---|
| ||
<ICMS>
<ICMS70>
<orig>0</orig>
<CST>70</CST>
<modBC>2</modBC>
<pRedBC>11.0000</pRedBC>
<vBC>11.00</vBC>
<pICMS>12.0000</pICMS>
<vICMS>101.00</vICMS>
<vBCFCP>31.00</vBCFCP>
<pFCP>13.0000</pFCP>
<vFCP>41.00</vFCP>
<modBCST>4</modBCST>
<pMVAST>14.0000</pMVAST>
<pRedBCST>16.0000</pRedBCST>
<vBCST>51.00</vBCST>
<pICMSST>16.0000</pICMSST>
<vICMSST>51.00</vICMSST>
<vBCFCPST>61.00</vBCFCPST>
<pFCPST>16.0000</pFCPST>
<vFCPST>71.00</vFCPST>
<vICMSDeson>17.00</vICMSDeson>
<motDesICMS>4</motDesICMS>
</ICMS70>
</ICMS> |
Não se aplica
...