[16.0][IMP] l10n_es_account_statement_import_n43: detectar partner en transferencias entrantes Sabadell - #4817
Open
IJOL wants to merge 3 commits into
Open
[16.0][IMP] l10n_es_account_statement_import_n43: detectar partner en transferencias entrantes Sabadell#4817IJOL wants to merge 3 commits into
IJOL wants to merge 3 commits into
Conversation
Contributor
|
Hi @pedrobaeza, |
…ferencias entrantes Sabadell Las transferencias entrantes N43 de Sabadell codifican el nombre del partner en el concepto 01 usando prefijos específicos. La detección existente no reconocía estos formatos, dejando muchas líneas entrantes sin partner asignado. Se añade detección para tres prefijos de transferencias entrantes: - NOMBRE DEL ORDENANTE (transferencias) - ORDENANTE DE LA TRANSFERENCIA (transferencias SEPA) - TRANSFERENC. DE (formato corto) El nombre del partner se extrae tras el prefijo, se eliminan sufijos legales (SL, SA, SLU, etc.) para manejar diferencias de notación, y se busca con ilike. Como último recurso, se busca por palabras individuales con regex de word boundary para nombres truncados en el límite de 35 caracteres del campo concepto N43.
IJOL
force-pushed
the
16.0-fix-n43-sabadell-incoming-partner
branch
from
February 12, 2026 12:39
583841a to
52bdaa0
Compare
Author
|
Los fallos de CI en "test with Odoo" y "test with OCB" no están relacionados con este PR. Resumen: Causa raíz: El segundo fallo corrompe el savepoint de PostgreSQL, provocando que los 12 tests restantes de ticketbai_pos cascadeen con Los 10 tests de N43 (3 originales + 7 nuevos de Sabadell) pasan sin errores en ambas ejecuciones. |
…t_ref The N43 record 23 stores concept text as two halves split at the fixed-width boundary (position 39). The previous code added each half as a separate element to a list and joined them with spaces, which introduced a spurious space when the split fell mid-word (e.g. "TPC CO CINAS" instead of "TPC COCINAS"). Now both halves of the same concept record are concatenated directly before appending to the list, matching the existing partner_name construction logic.
… prefixes Add three new Sabadell partner detection prefixes: - BENEFICIARIO DE LA TRANSFERENCIA (outgoing transfers, long form) - BENEFICIARIO (outgoing transfers, short form) - CORE (SEPA direct debits, name glued without space) Prefix order matters: longer prefixes first to avoid partial matches (e.g. BENEFICIARIO DE LA TRANSFERENCIA before BENEFICIARIO).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Las transferencias entrantes N43 de Sabadell codifican el nombre del partner en el concepto 01 usando prefijos específicos que la detección existente no reconocía.
Se añade detección para tres prefijos:
NOMBRE DEL ORDENANTE(transferencias)ORDENANTE DE LA TRANSFERENCIA(transferencias SEPA)TRANSFERENC. DE(formato corto)El nombre se extrae tras el prefijo, se eliminan sufijos legales (SL, SA, SLU, etc.) y se busca con
ilike. Como último recurso, se busca por palabras individuales con regex de word boundary (\m...\M) para nombres truncados en el límite de 35 caracteres del campo concepto N43.Test plan