@if($info['TIPO_IMPRESSAO'] == 1)
{{$info['DESC_UP']}}
FORNECEDOR:{{$info['EMPRESA']['DESC_EMPRESA']}}
@php $total_parc = 0;
@php $qtd_talao = 0;
@php $total_talao = 0;
@php $desconto_geral = 0;
@php $total_geral = 0;
@php $qtd_geral = 0;
@if($info['VER_TALOES'] != 4)
PARCELAMENTOS
@endif
@foreach($info['AGRUPAMENTO_DOC'] AS $agrupamento_doc)
@php $total_parc = 0;
@php $qtd_talao = 0;
@php $total_talao = 0;
@php $qtd_modelo = 0;
@php $total_modelo = 0;
@php $total_desc = 0;
@php $parcelas = $agrupamento_doc['PARCELAS'];
@php $descontos = $agrupamento_doc['DESCONTOS'];
@php $taloes = $agrupamento_doc['DADOS_REMESSA'];
@php $modelos = $agrupamento_doc['DADOS_MODELO'];
@php $modelos_cores = $agrupamento_doc['DADOS_MODELO_COR'];
@if($info['VER_TALOES'] != 4)
DOCUMENTO: {{$agrupamento_doc['FDOCUMENTO']}}
SEQUÊNCIA |
FORMA DE PAGAMENTO |
DT.VENCIMENTO |
DIAS |
VALOR |
@foreach ($parcelas AS $PARCELA)
@php $total_parc = $total_parc + $PARCELA['VALOR_TOTAL'];
{{($PARCELA['FPARCELA'])}} |
@if($PARCELA['NAO_RESIDUAL'] == 0)
(R)
@endif
@if($PARCELA['NAO_RESIDUAL'] == 1)
@endif
|
{{($PARCELA['FDATA_VENCIMENTO'])}} |
{{($PARCELA['QUANTIDADE_DIAS'])}} |
R$ {{Number($PARCELA['VALOR_TOTAL'], 2, 5, true)}} |
@endforeach
@php $total_geral = $info['TIPO_IMPRESSAO'] == 1 ? $total_geral + $total_parc : $total_geral;
TOTAL |
|
|
|
R$ {{number_format($total_parc, 2, ',', '.')}} |
@if(count($descontos) > 0)
DESCONTOS
DT.LANÇAMENTO |
OPERAÇÃO |
HISTÓRICO |
VALOR |
@foreach ($descontos AS $DESCONTO)
@php $total_desc = $total_desc + $DESCONTO['VALOR_TOTAL'];
@php $desconto_geral = $desconto_geral + $DESCONTO['VALOR_TOTAL'];
{{($DESCONTO['DATA_LANCAMENTO'])}} |
{{($DESCONTO['DESCRICAO'])}} |
{{($DESCONTO['HISTORICO'])}} |
R$ {{Number($DESCONTO['VALOR_TOTAL'], 2, 5, true)}} |
@endforeach
TOTAL DESCONTO |
|
|
R$ {{number_format($total_desc, 2, ',', '.')}} |
TOTAL LÍQUIDO |
|
|
R$ {{number_format(($total_parc-$total_desc), 2, ',', '.')}} |
@endif
@if($info['VER_TALOES'] == 1)
TALÃO |
DATA |
PRODUTO |
QTD |
VR.UNIT |
VR.TOTAL |
@foreach ($taloes AS $TALAO)
@php $qtd_talao = $qtd_talao + $TALAO['QUANTIDADE_PRODUZIDA'];
@php $total_talao = $total_talao + $TALAO['VALOR_TOTAL'];
@if($TALAO['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{($TALAO['FDATA'])}} |
{{($TALAO['PRODUTO_ID'])}} - {{($TALAO['PRODUTO_DESCRICAO'])}} {{($TALAO['TAMANHO_DESCRICAO'])}} |
{{intval($TALAO['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($TALAO['VALOR_SERVICO'], 2, 4, true)}} |
R$ {{number_format(round((float)$TALAO['VALOR_TOTAL'],2), 2, ',', '.')}} |
@endforeach
@php $qtd_geral = $qtd_geral + $qtd_talao;
@endif
@if($info['VER_TALOES'] == 2)
MODELO |
COR |
QTD |
VR.TOTAL |
@foreach ($modelos_cores AS $MODELO_COR)
@php $qtd_talao = $qtd_talao + $MODELO_COR['QUANTIDADE_PRODUZIDA'];
@php $total_talao = $total_talao + $MODELO_COR['VALOR_TOTAL'];
@if($MODELO_COR['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{$MODELO_COR['COR_DESCRICAO']}} |
{{intval($MODELO_COR['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($MODELO_COR['VALOR_TOTAL'], 2, 5, true)}} |
@endforeach
@php $qtd_geral = $qtd_geral + $qtd_talao;
@endif
@if($info['VER_TALOES'] == 3)
MODELO |
QTD |
VR.TOTAL |
@foreach ($modelos AS $modelos)
@php $qtd_modelo = $qtd_modelo + $modelos['QUANTIDADE_PRODUZIDA'];
@php $total_modelo = $total_modelo + $modelos['VALOR_TOTAL'];
@if($modelos['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{intval($modelos['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($modelos['VALOR_TOTAL'], 2, 5, true)}} |
@endforeach
@endif
@else
@php $dados_agrupamentos = $agrupamento_doc['DADOS_AGRUPADOS'];
DATA |
REMESSA |
MODELO |
COR |
QTD |
VR.UNIT |
VR.TOTAL |
@foreach ($dados_agrupamentos AS $AGP)
@php $total_geral = $total_geral + round((float)$AGP['VALOR_TOTAL'],2);
{{($AGP['FDATA'])}} |
@if($AGP['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{($AGP['MODELO_DESCRICAO'])}} |
{{($AGP['COR_DESCRICAO'])}} |
{{intval($AGP['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($AGP['VALOR_SERVICO'], 2, 5, true)}} |
R$ {{number_format(round((float)$AGP['VALOR_TOTAL'],2), 2, ',', '.')}} |
@endforeach
@php $valor_agp_cor = 0;
@php $dados_agrup_modelo_cor = $agrupamento_doc['DADOS_AGP_MODELO_COR'];
MODELO |
QTD |
VR.UNIT |
VR.TOTAL |
@foreach ($dados_agrup_modelo_cor AS $AGP_MOD_COR)
@php $valor_agp_cor = $valor_agp_cor + round((float)$AGP_MOD_COR['VALOR_TOTAL'],2);
@if($AGP_MOD_COR['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{intval($AGP_MOD_COR['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($AGP_MOD_COR['VALOR_SERVICO'], 2, 5, true)}} |
R$ {{number_format(round((float)$AGP_MOD_COR['VALOR_TOTAL'],2), 2, ',', '.')}} |
@endforeach
|
|
|
|
R$ {{number_format(round((float)$valor_agp_cor,2), 2, ',', '.')}} |
@endif
@if($info['VER_TALOES'] == 0)
@foreach ($taloes AS $TALAO)
@php $qtd_talao = $qtd_talao + $TALAO['QUANTIDADE_PRODUZIDA'];
@php $total_talao = $total_talao + $TALAO['VALOR_TOTAL'];
@endforeach
@endif
@endforeach
@if($info['VER_TALOES'] != 4)
TOTAL GERAL
R$ {{number_format($total_geral, 2, ',', '.')}}
@if($info['VER_TALOES'] == 1)
{{intval($qtd_geral)}}
@endif
TOTAL DESCONTOS
R$ {{number_format($desconto_geral, 2, ',', '.')}}
TOTAL LÍQUIDO
R$ {{number_format($total_geral-$desconto_geral, 2, ',', '.')}}
@endif
@else
@php $qtd_geral = 0;
@php $total_geral = 0;
@php $desconto_geral = 0;
@foreach ($info['DADOS_UP'] AS $up)
{{$up['DESCRICAO']}}
FORNECEDOR: {{$up['DESC_FORNECEDOR']}}
@php $total_up = 0;
@php $qtd_up = 0;
@if($info['VER_TALOES'] != 4)
@if(count($up['DADOS_REMESSA']) != 0)
@foreach($up['DADOS_REMESSA'] AS $remessa)
@php $parcelas = $remessa['PARCELAS'];
@php $descontos = $remessa['DESCONTOS'];
@php $taloes = $remessa['TALOES'];
@php $modelos = $remessa['MODELOS'];
@php $modelos_cores = $remessa['MODELO_COR'];
REMESSA: {{$remessa['REMESSA']}}
@php $total_desc = 0;
@php $total_parc = 0;
@php $total_qtd = 0;
@php $qtd_modelo = 0;
@php $total_modelo = 0;
@php $qtd_talao = 0;
@php $total_talao = 0;
SEQUÊNCIA |
FORMA DE PAGAMENTO |
DT.VENCIMENTO |
DIAS |
QTD |
VALOR |
@foreach ($parcelas AS $PARCELA)
@php $total_parc = $total_parc + $PARCELA['VALOR_TOTAL'];
@php $total_qtd = $total_qtd + $PARCELA['QTD_PROD'];
{{($PARCELA['FPARCELA'])}} |
@if($PARCELA['NAO_RESIDUAL'] == 0)
(R)
@endif
@if($PARCELA['NAO_RESIDUAL'] == 1)
@endif
|
{{($PARCELA['FDATA_VENCIMENTO'])}} |
{{($PARCELA['QUANTIDADE_DIAS'])}} |
{{Number($PARCELA['QTD_PROD'], 2, 5, true)}} |
R$ {{Number($PARCELA['VALOR_TOTAL'], 2, 5, true)}} |
@endforeach
@php $total_up = $total_up + $total_parc;
@if($info['VER_TALOES'] == 0)
@php $qtd_up = $qtd_up + $total_qtd;
@endif
TOTAL |
|
|
|
{{intval($total_qtd)}} |
R$ {{number_format($total_parc, 2, ',', '.')}} |
@if(count($descontos) > 0)
DESCONTOS
DT.LANÇAMENTO |
OPERAÇÃO |
HISTÓRICO |
VALOR |
@foreach ($descontos AS $DESCONTO)
@php $total_desc = $total_desc + $DESCONTO['VALOR_TOTAL'];
@php $desconto_geral = $desconto_geral + $DESCONTO['VALOR_TOTAL'];
{{($DESCONTO['DATA_LANCAMENTO'])}} |
{{($DESCONTO['DESCRICAO'])}} |
{{($DESCONTO['HISTORICO'])}} |
R$ {{Number($DESCONTO['VALOR_TOTAL'], 2, 5, true)}} |
@endforeach
TOTAL DESCONTO |
|
|
R$ {{number_format($total_desc, 2, ',', '.')}} |
TOTAL LÍQUIDO |
|
|
R$ {{number_format(($total_parc-$total_desc), 2, ',', '.')}} |
@endif
@if($info['VER_TALOES'] == 1)
TALÃO |
DATA |
PRODUTO |
QTD |
VR.UNIT |
VR.TOTAL |
@foreach ($taloes AS $TALAO)
@php $qtd_talao = $qtd_talao + $TALAO['QUANTIDADE_PRODUZIDA'];
@php $total_talao = $total_talao + round((float)$TALAO['VALOR_TOTAL'],2);
@if($TALAO['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{($TALAO['FDATA'])}} |
{{($TALAO['PRODUTO_ID'])}} - {{($TALAO['PRODUTO_DESCRICAO'])}} {{($TALAO['TAMANHO_DESCRICAO'])}} |
{{intval($TALAO['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($TALAO['VALOR_SERVICO'], 2, 5, true)}} |
R$ {{number_format(round((float)$TALAO['VALOR_TOTAL'],2), 2, ',', '.')}} |
@endforeach
@php $qtd_up = $qtd_up + $qtd_talao;
@endif
@if($info['VER_TALOES'] == 2)
MODELO |
COR |
QTD |
VR.TOTAL |
@foreach ($modelos_cores AS $MODELO_COR)
@php $qtd_talao = $qtd_talao + $MODELO_COR['QUANTIDADE_PRODUZIDA'];
@php $total_talao = $total_talao + $MODELO_COR['VALOR_TOTAL'];
@if($MODELO_COR['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{$MODELO_COR['COR_DESCRICAO']}} |
{{intval($MODELO_COR['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number(round((float)$MODELO_COR['VALOR_TOTAL'],2), 2, 5, true)}} |
@endforeach
@php $qtd_geral = $qtd_geral + $qtd_talao;
@endif
@if($info['VER_TALOES'] == 3)
MODELO |
QTD |
VR.TOTAL |
@foreach ($modelos AS $modelos)
@php $qtd_modelo = $qtd_modelo + $modelos['QUANTIDADE_PRODUZIDA'];
@php $total_modelo = $total_modelo + round((float)$modelos['VALOR_TOTAL'],2);
@if($info['VER_TALOES'] == 2)
@php $qtd_up = $qtd_up + $modelos['QUANTIDADE_PRODUZIDA'];
@endif
@if($modelos['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{intval($modelos['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number(round((float)$modelos['VALOR_TOTAL'],2), 2, 5, true)}} |
@endforeach
@endif
@if($info['VER_TALOES'] != 0)
@foreach ($taloes AS $TALAO)
@php $qtd_talao = $qtd_talao + $TALAO['QUANTIDADE_PRODUZIDA'];
@php $total_talao = $total_talao + $TALAO['VALOR_TOTAL'];
@endforeach
@if($info['VER_TALOES'] == 3)
@php $qtd_up = $qtd_up + $qtd_talao;
@endif
@endif
@endforeach
@endif
@if($info['VER_TALOES'] != 2)
@php $qtd_geral = $qtd_geral + $qtd_up;
@endif
@php $total_geral = $total_geral + $total_up;
@else
@php $dados_agrupamentos = $up['DADOS_AGRUPADOS'];
DATA |
REMESSA |
MODELO |
COR |
QTD |
VR.UNIT |
VR.TOTAL |
@foreach ($dados_agrupamentos AS $AGP)
@php $total_geral = $total_geral + round((float)$AGP['VALOR_TOTAL'],2);
{{($AGP['FDATA'])}} |
@if($AGP['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{($AGP['MODELO_DESCRICAO'])}} |
{{($AGP['COR_DESCRICAO'])}} |
{{intval($AGP['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($AGP['VALOR_SERVICO'], 2, 5, true)}} |
R$ {{number_format(round((float)$AGP['VALOR_TOTAL'],2), 2, ',', '.')}} |
@endforeach
@php $valor_agp_cor = 0;
@php $dados_agrup_modelo_cor = $up['DADOS_AGP_MODELO_COR'];
MODELO |
QTD |
VR.UNIT |
VR.TOTAL |
@foreach ($dados_agrup_modelo_cor AS $AGP_MOD_COR)
@php $valor_agp_cor = $valor_agp_cor + round((float)$AGP_MOD_COR['VALOR_TOTAL'],2);
@if($AGP_MOD_COR['REGISTRO_DEFEITO'] == 1)
D
@endif
|
{{intval($AGP_MOD_COR['QUANTIDADE_PRODUZIDA'])}} |
R$ {{Number($AGP_MOD_COR['VALOR_SERVICO'], 2, 5, true)}} |
R$ {{number_format(round((float)$AGP_MOD_COR['VALOR_TOTAL'],2), 2, ',', '.')}} |
@endforeach
|
|
|
|
R$ {{number_format(round((float)$valor_agp_cor,2), 2, ',', '.')}} |
@endif
@endforeach
@if($info['VER_TALOES'] != 4)
TOTAL GERAL
@if($info['VER_TALOES'] != 0)
{{intval($qtd_geral)}}
@endif
R$ {{number_format($total_geral, 2, ',', '.')}}
@if($desconto_geral > 0)
TOTAL DESCONTOS
R$ {{number_format($desconto_geral, 2, ',', '.')}}
@endif
TOTAL LÍQUIDO
R$ {{number_format($total_geral-$desconto_geral, 2, ',', '.')}}
@endif
@endif
_____________________________________________________
Assinatura do Responsável