Informe de Contabilidad Resumen
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Service\Informe\Contabilidad\Resumen;
|
||||
use Carbon\Carbon;
|
||||
use GuzzleHttp\Client;
|
||||
use App\Definition\Controller;
|
||||
use App\Alias\PHPExcel;
|
||||
use Incoviba\Common\Factory\Model;
|
||||
use Incoviba\old\Proyecto\Proyecto;
|
||||
use Incoviba\old\Proyecto\Agente;
|
||||
use Incoviba\old\Proyecto\ProyectoAgente;
|
||||
@ -555,8 +557,14 @@ class Informes
|
||||
{
|
||||
if (get('proyecto')) {
|
||||
$id = get('proyecto');
|
||||
$proyecto = model(Proyecto::class)->findOne($id);
|
||||
$fecha = get('fecha');
|
||||
|
||||
$service = new Resumen();
|
||||
$service->build($id, new \DateTimeImmutable($fecha));
|
||||
|
||||
return;
|
||||
|
||||
$proyecto = model(Proyecto::class)->findOne($id);
|
||||
$mes = null;
|
||||
if ($fecha != null) {
|
||||
$mes = Carbon::parse($fecha)->addMonths(1)->subDays(1);
|
||||
|
Reference in New Issue
Block a user