...
And for the C185 record in the 17 VL_UNIT_ICMS_ST_CONV_COMPL field, we have the detail:
In the calculation, 4 frames for refunding exist:
...
Outflow of Taxable Event not performed:
CFOP = 5927
CST = 90
QTD = 10
VL_UNI = 100.00
...
The system will frame the transaction as 2 - Taxable event not performed, and apply the formula described in the SPED guide:
VL_UNIT_ICMS_OP_EST = 12.00 (ICMS value in inflow)
...
The system will apply field 15 calculation as per SPED guide:
VL_UNIT_ICMS_OP_EST = 12.00 (ICMS value in inflow)
...
VL_UNIT_ICMS_NA_OPERACAO = 1,300 * 0.18 = 234.00 / 10 = 23.40 (presumed effective)
VL_UNIT_ICMS_ST_REST = 12.00 + 13.20 - 23.40 = 1.80
...
The calculation performed is as described in the Tax SPED guide:
VL_UNIT_ICMS_EST = 12.00 (ICMS value in inflow)
...
VL_UN_ICMS_NA_OPER = 1,200.00 * 0.18 = 216.00 / 10 = 21.60 (presumed effective)
VL_UNIT_ICMS_ST_REST = 12.00 + 13.20 - 21.60 = 3.60
...
In this case, the calculation performed will be the one described in the SPED practical guide as detailed in field 17 of record C185:
VL_UNIT_ICMS_OPERACAO = BC_ICMS * ALIQ_INTRA = 1600 * 0.18 = 288.00 / 10 = 28.80 (ICMS presumed effective)
VL_UNIT_ICMS_OP = 12.00
VL_UNIT_ICMS_ST = 13.20
VL_UNIT_ICMS_ST_COMPL = 28.80 - 12.00 - 13.20 = 3.60
If we multiply the unit value of the ICMS ST to complement by the quantity in the outflow, we have:Total value to complement = 3.60 * 10 = 36.00
...