Skip to content

Tarea #2144 - Añadir filtros al agrupar documentos.#1339

Open
daniel89fg wants to merge 12 commits intoNeoRazorX:masterfrom
daniel89fg:2144_filtros_agrupar_documentos
Open

Tarea #2144 - Añadir filtros al agrupar documentos.#1339
daniel89fg wants to merge 12 commits intoNeoRazorX:masterfrom
daniel89fg:2144_filtros_agrupar_documentos

Conversation

@daniel89fg
Copy link
Copy Markdown
Contributor

Tarea #2144

¿Cómo has probado los cambios?

Toda modificación debe haber sido mínimamente probada. Marca o describe las pruebas que has realizado:

  • He revisado mi código antes de enviarlo.
  • He probado que funciona correctamente en mi PC.
  • He probado que funciona correctamente con una base de datos vacía.
  • He ejecutado los tests unitarios.

Copy link
Copy Markdown
Contributor

@abdedarghal111 abdedarghal111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parece estar okey

@NeoRazorX NeoRazorX closed this Feb 25, 2026
@NeoRazorX NeoRazorX reopened this Feb 27, 2026
Copilot AI review requested due to automatic review settings February 27, 2026 12:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds filtering functionality to the document grouping feature (DocumentStitcher). It introduces filters for payment methods and dates, allowing users to narrow down the list of available documents when grouping or splitting them. The implementation adds a collapsible filter section in the UI and modifies the backend to handle filter processing.

Changes:

  • Added filter support to DocumentStitcher controller with payment method and date filters
  • Modified the template to display filters in a collapsible section with separate search and add forms
  • Updated FormasPago data source to support filtering by company (incomplete/broken implementation)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 12 comments.

File Description
Core/Controller/DocumentStitcher.php Added filter properties, methods to initialize filters (addFilters) and process filter requests (processFormDataLoad)
Core/View/DocumentStitcher.html.twig Restructured the "more documents" section to include a filter form and separate search/add actions
Core/DataSrc/FormasPago.php Attempted to add company filtering to payment methods (broken implementation with undefined variables)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

foreach ($this->filters as $filter) {
$filter->setValueFromRequest($this->request);
if ($filter->getDataBaseWhere($this->where)) {
$this->showFilters = true;
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property $showFilters is used in the template and set on line 459, but it's not declared as a class property. Add a public property declaration for $showFilters in the class definition (around lines 45-64) to avoid undefined property warnings.

Copilot uses AI. Check for mistakes.
Daniel Fernández Giménez added 2 commits March 2, 2026 10:47
Se actualiza el método addFilters en DocumentStitcher para que utilice todos los métodos de pago disponibles en lugar de solo los que tienen un código específico. Además, se ajusta la forma en que se almacenan los métodos de pago en el filtro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants