| {{ $item->cd_venda }} |
{{ \Carbon\Carbon::parse($item->dt_venda)->format('d/m/Y') }} |
{{ $item->nm_fantasia }} / {{ $item->rz_social }} |
{{ $item->quantidade }} {{ $pedido->unidade }} |
@if( $mostra_dm == "S" )
@forelse( $itens_dma->where('cd_produto', '=', $pedido->cod_produto)->where('cd_itemvenda', '=', $pedido->cd_itemvenda) as $dma )
{{ $dma->qt_entrada }} {{ $pedido->unidade }} |
{{ ($pedido->quantidade - $dma->qt_entrada) }} {{ $pedido->unidade }} |
@php( $diff_dma = $dma->qt_entrada )
@empty
-- |
-- |
@php( $diff_dma = 0 )
@endforelse
@endif
R$ {{ number_format(($item->vr_unitariodesc + $vr_icmsst + $vr_acrescimo), 2, ',', '.') }} |
R$ {{ number_format(($item->vr_unitariodesc + $vr_icmsst + $vr_acrescimo) * $item->quantidade, 2, ',', '.') }} |
@php( $total_qtde += $item->quantidade )
@php( $total_icmsst += $item->vr_icmsst )
@php( $vr_total += ($item->vr_unitariodesc + $vr_icmsst + $vr_acrescimo) * $item->quantidade )
@endif
@empty
| Totais: |
{{ $total_qtde }} {{ $pedido->unidade }} |
|
R$ {{ number_format($vr_total, 2, ',', '.') }} |