FIX: filter
This commit is contained in:
@ -32,7 +32,14 @@ class Resumen
|
||||
protected function getVentas($id_proyecto)
|
||||
{
|
||||
$proyecto = model(Proyecto::class)->findOne($id_proyecto);
|
||||
return array_unique($proyecto->ventas());
|
||||
$ventas = $proyecto->ventas();
|
||||
$output = [];
|
||||
foreach ($ventas as $venta) {
|
||||
if (!in_array($venta, $output)) {
|
||||
$output []= $venta;
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
protected function startOfYear(DateTimeInterface $up_to)
|
||||
{
|
||||
|
Reference in New Issue
Block a user