Limpieza de input de valor y filtro de datos a nivel Repo
This commit is contained in:
@ -81,4 +81,8 @@ class Pie extends Ideal\Repository
|
||||
->where('venta.id = ?');
|
||||
return $this->fetchOne($query, [$venta_id]);
|
||||
}
|
||||
public function filterData(array $data): array
|
||||
{
|
||||
return array_intersect_key($data, array_fill_keys(['fecha', 'valor', 'uf', 'cuotas', 'asociado', 'reajuste'], 0));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user