{% for key, row in rows %} {% if row|length > 0 and key == 'preco'%} {%set i = 1%}

Renda


{%set a = false%} {% for r in row %} {%set a = not a%} {%set i = i + 1%} {% endfor %}
# Categoria de Pescado Quantidade total em (kg) Preço médio Preço total
{{ i }} {{r.categoria_pescado}} {{r.total_kg | number_format(2,',','.')}} {%if r.preco_medio is not null %} R$ {%endif%} {{r.preco_medio |number_format(2,',') }} {%if r.total_value is not null %} R$ {%endif%} {{r.total_value | number_format(2,',','.')}}
{%elseif row|length > 0 and key == 'descargas'%} {%set i = 1%}

Descargas


{%set a = false%} {% for r in row %} {%set a = not a%} {%set i = i + 1%} {% endfor %}
# Data Descarga Local de Descarga Município Unidade Produtiva Tripulantes
{{ i }} {{r.dat_descarga}} {{r.txt_local_descarga}} {{r.municipio}} {{r.txt_unidade_produtiva}} {{r.tripulantes}}
{%elseif row|length > 0 and key == 'producao'%} {%set i = 1%}

Produção


{%set a = false%} {% for r in row %} {%set a = not a%} {%set i = i + 1%} {% endfor %}
# Ano Mês Categoria de Pescado Quantidade (Kg) Instrumento Jurídico
{{ i }} {{r.ano}} {{r.mes}} {{r.txt_categoria_pescado}} {{r.total | number_format(2,',','.')}} {{r.instrumento_juridico}}
{%endif%} {% endfor %}