FIX: tesoreria no cargaba datos
This commit is contained in:
@ -14,7 +14,8 @@
|
|||||||
<h4 class="ui centered sub header">{{$fecha->format('d M Y')}}</h4>
|
<h4 class="ui centered sub header">{{$fecha->format('d M Y')}}</h4>
|
||||||
<div class="ui grid">
|
<div class="ui grid">
|
||||||
<div class="three wide column">
|
<div class="three wide column">
|
||||||
<a href="/contabilidad/informes/xlsx/tesoreria/{{$fecha->format('Y-m-d')}}" target="_blank" style="color: inherit;">
|
<a href="/contabilidad/informes/xlsx/tesoreria/{{$fecha->format('Y-m-d')}}" target="_blank"
|
||||||
|
style="color: inherit;">
|
||||||
<div class="ui inverted green center aligned segment">
|
<div class="ui inverted green center aligned segment">
|
||||||
Descargar en Excel <i class="file excel icon"></i>
|
Descargar en Excel <i class="file excel icon"></i>
|
||||||
</div>
|
</div>
|
||||||
@ -83,11 +84,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($informes['inmobiliarias'] as $inmobiliaria_rut => $informe)
|
@foreach ($informes['sociedades'] as $sociedad_rut => $informe)
|
||||||
@foreach ($informe->cuentas as $i => $cuenta)
|
@foreach ($informe->cuentas as $i => $cuenta)
|
||||||
<tr>
|
<tr>
|
||||||
@if ($i === 0)
|
@if ($i === 0)
|
||||||
<td rowspan="{{count($informe->cuentas)}}">{{$informe->inmobiliaria->razon}}</td>
|
<td rowspan="{{count($informe->cuentas)}}">{{$informe->sociedad->razon}}</td>
|
||||||
@endif
|
@endif
|
||||||
<td>{{$cuenta->banco}}</td>
|
<td>{{$cuenta->banco}}</td>
|
||||||
<td>{{$cuenta->numero}}</td>
|
<td>{{$cuenta->numero}}</td>
|
||||||
@ -98,10 +99,14 @@
|
|||||||
<td class="right aligned">{{$format->pesos($cuenta->deposito)}}</td>
|
<td class="right aligned">{{$format->pesos($cuenta->deposito)}}</td>
|
||||||
<td class="right aligned">{{$format->pesos($cuenta->saldo())}}</td>
|
<td class="right aligned">{{$format->pesos($cuenta->saldo())}}</td>
|
||||||
@if ($i === 0)
|
@if ($i === 0)
|
||||||
<td class="right aligned" rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->total())}}</td>
|
<td class="right aligned"
|
||||||
<td class="right aligned" rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->ffmm())}}</td>
|
rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->total())}}</td>
|
||||||
<td class="right aligned" rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->deposito())}}</td>
|
<td class="right aligned"
|
||||||
<td class="right aligned" rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->caja())}}</td>
|
rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->ffmm())}}</td>
|
||||||
|
<td class="right aligned"
|
||||||
|
rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->deposito())}}</td>
|
||||||
|
<td class="right aligned"
|
||||||
|
rowspan="{{count($informe->cuentas)}}">{{$format->pesos($informe->caja())}}</td>
|
||||||
@endif
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -3,14 +3,14 @@ namespace Incoviba\Controller;
|
|||||||
|
|
||||||
use DateInterval;
|
use DateInterval;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
use Incoviba\Common\Alias\View;
|
use Incoviba\Common\Alias\View;
|
||||||
use Incoviba\Common\Ideal\Controller;
|
use Incoviba\Common\Ideal\Controller;
|
||||||
use Incoviba\Common\Implement\Exception\{EmptyRedis, EmptyResult};
|
use Incoviba\Common\Implement\Exception\{EmptyRedis, EmptyResult};
|
||||||
use Incoviba\Model;
|
use Incoviba\Model;
|
||||||
use Incoviba\Repository;
|
use Incoviba\Repository;
|
||||||
use Incoviba\Service;
|
use Incoviba\Service;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
|
||||||
|
|
||||||
class Contabilidad extends Controller
|
class Contabilidad extends Controller
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user