Reporte Kardex
Empresa: {{$company->name}} |
Fecha: {{date('Y-m-d')}} |
Ruc: {{$company->number}} |
Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}} |
# | Fecha y hora | Tipo transacción | Número | Entrada | Salida | Saldo |
---|---|---|---|---|---|---|
{{$value->id}} | {{$value->created_at}} | @switch($value->type) @case('sale') {{($value->sale_note_id) ? "Nota de Venta" : (($value->quantity >= 0) ? "Venta" : "Anulación")}} @break @case('purchase') {{"Compra"}} @break @default {{"Stock Inicial"}} @break @endswitch | @switch($value->type) @case('sale') {{($value->document_id) ? "{$value->document->series}-{$value->document->number}" : "{$value->sale_note->prefix}-{$value->sale_note->id}"}} @break @case('purchase') {{"{$value->purchase->series}-{$value->purchase->number}"}} @break @default {{"-"}} @break @endswitch | {{($value->type == 'purchase' || !$value->type) ? number_format($value->quantity, 4) : number_format(0, 4)}} | {{($value->type == 'sale') ? number_format($value->quantity, 4) : number_format(0, 4)}} | @php if ($value->type == 'purchase' || !$value->type) $balance += $value->quantity; if ($value->type == 'sale') $balance -= $value->quantity; @endphp{{number_format($balance, 4)}} |
No se encontraron registros.