@include('reportes._partials.header', ['nombreReporte'=>'Reporte consolidado de pérdidas y ganancias', 'ciudad'=>false])
{{-- --}} @php $totalPediSubtotal = $totalPediCargo = $totalPediFeeextra = $totalComisionComercio = $totalCostoVenta = $totalDescuentoApp = $totalReventa = $totalPlanillaDelivery = $totalProcesador = 0; @endphp @foreach ($dataSucursales as $item) @php $totalPediSubtotal += $item->PEDI_SUBTOTAL; $totalPediCargo += $item->PEDI_CARGO; $totalPediFeeextra += $item->PEDI_FEEEXTRA; $totalComisionComercio += $item->comisionComercio; $totalCostoVenta += $item->costoVenta; $totalDescuentoApp += $item->PEDI_PROMODESCUENTO; $totalReventa += ($item->PEDI_SUBTOTAL-$item->costoVenta); $totalPlanillaDelivery += ($item->dataRepartidores); $totalProcesador += $item->procesador; @endphp @endforeach
{{$sucursal->SUCU_NOMBRE}}
No. SUCURSAL VENTAS DESCUENTOS VENTAS NETAS GASTOS OPERACIÓN INGRESOS
P D CCL CCO TV CV DA TD R CCO CCL D TVN PL PROC TGO
{{ $loop->index + 1 }} {{ $item->SUCU_NOMBRE }} $ {{ $item->PEDI_SUBTOTAL }} ${{ number_format($item->PEDI_CARGO, 2) }} {{ $item->PEDI_FEEEXTRA }} $ {{ $item->comisionComercio }} ${{ number_format($item->PEDI_SUBTOTAL+$item->PEDI_CARGO+$item->comisionComercio+$item->PEDI_FEEEXTRA, 2) }} ${{ number_format($item->costoVenta, 2) }} $ {{ number_format($item->PEDI_PROMODESCUENTO, 2) }} $ {{ number_format($item->costoVenta+$item->PEDI_PROMODESCUENTO, 2) }} $ {{ number_format($item->PEDI_SUBTOTAL-$item->costoVenta, 2) }} $ {{ number_format($item->comisionComercio, 2) }} $ {{ number_format($item->PEDI_FEEEXTRA, 2) }} $ {{ number_format($item->PEDI_CARGO-$item->PEDI_PROMODESCUENTO, 2) }} $ {{ number_format(($item->PEDI_SUBTOTAL-$item->costoVenta)+$item->comisionComercio+$item->PEDI_FEEEXTRA+($item->PEDI_CARGO-$item->PEDI_PROMODESCUENTO), 2) }} $ {{ number_format(($item->dataRepartidores), 2) }} $ {{ number_format($item->procesador, 2) }} $ {{ number_format(($item->dataRepartidores)+$item->procesador, 2) }} $ {{ number_format(($item->PEDI_SUBTOTAL-$item->costoVenta)+$item->comisionComercio+$item->PEDI_FEEEXTRA+($item->PEDI_CARGO-$item->PEDI_PROMODESCUENTO)-($item->dataRepartidores)-$item->procesador, 2) }}
TOTALES $ {{ number_format($totalPediSubtotal, 2) }} ${{ number_format($totalPediCargo, 2) }} $ {{ number_format($totalPediFeeextra, 2) }} $ {{ number_format($totalComisionComercio, 2) }} $ {{ number_format($totalPediSubtotal+$totalPediCargo+$totalPediFeeextra+$totalComisionComercio, 2) }} $ {{ number_format($totalCostoVenta, 2) }} $ {{ number_format( $totalDescuentoApp, 2) }} $ {{ number_format($totalCostoVenta+$totalDescuentoApp, 2) }} $ {{ number_format($totalPediSubtotal-$totalCostoVenta, 2) }} $ {{ number_format($totalComisionComercio, 2) }} $ {{ number_format($totalPediFeeextra, 2) }} $ {{ number_format($totalPediCargo-$totalDescuentoApp, 2) }} $ {{ number_format(($totalPediSubtotal-$totalCostoVenta)+$totalComisionComercio+$totalPediFeeextra+($totalPediCargo-$totalDescuentoApp), 2) }} $ {{ number_format($totalPlanillaDelivery, 2) }} $ {{ number_format($totalProcesador, 2) }} $ {{ number_format($totalPlanillaDelivery+$totalProcesador, 2) }} $ {{ number_format((($totalPediSubtotal-$totalCostoVenta)+$totalComisionComercio+$totalPediFeeextra+($totalPediCargo-$totalDescuentoApp))-($totalPlanillaDelivery+$totalProcesador), 2) }}
P: Productos
CCO: Comisión comercio
CCL: Comisión cliente
D: Delivery
TV: Total ventas
CV: Costo ventas
DA: Descuento App
TD: Total Desctos.
R: Reventa
TVN: Total ventas netas
PLD: Planilla delivery
PROC: Procesador
TGO: T. Gtos. Op.
{{-- @if ($loop->index + 1 != count($sucursales))
@endif --}}