Repository navigation
Corregir el NIF del operador comunitario (Grecia y Reino Unido) - #27
Merged
Merged
Conversation
…a de la UE El NIF del operador comunitario empieza por las dos primeras letras de su NIF-IVA, que coinciden con el código ISO salvo en Grecia (EL, no GR). Además, el core aún incluye el Reino Unido en Paises::MIEMBROS_UE, y sus clientes y proveedores salían como operadores comunitarios. - vatPrefix(): EL para Grecia y el código ISO para el resto, hasta que el core tenga Vies::vatPrefix() (NeoRazorX/facturascripts#2059). - Del número se quitan el código ISO y el prefijo del NIF-IVA. - El Reino Unido (GB) no es operador comunitario. - Se pasa a mayúsculas antes de quitar los separadores: un NIF en minúsculas perdía las letras. - Test del NIF del operador comunitario.
…or comunitario El core 2026.72 ya incluye la corrección (NeoRazorX/facturascripts#2059): Vies::vatPrefix() devuelve EL para Grecia y el Reino Unido ya no está en Paises::MIEMBROS_UE. Se quitan el método local vatPrefix() y la excepción del Reino Unido, y se sube el min_version a 2026.72. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Descripción
Dos fallos en el campo NIF del operador comunitario del registro de declarados:
EL, noGR). El plugin escribíaGR, y si el NIF venía conEL, el número se quedaba con él.Las dos causas se corrigieron en el core en NeoRazorX/facturascripts#2059, publicada en la 2026.72:
Vies::vatPrefix()devuelveELpara Grecia yGBya no está enPaises::MIEMBROS_UE. Esta PR usa esa corrección y sube elmin_versiondel plugin a 2026.72.Cambios realizados
getNifOperadorComunitario()usaVies::vatPrefix()del core para el prefijo y quita del número tanto el código ISO como el prefijo del NIF-IVA.de123456789) perdía las letras.min_versionsube de 2025.6 a 2026.72.testNifOperadorComunitario.Cómo probar
EL123456789, con facturas que superen el límite del 347.EL123456789. Con un cliente del Reino Unido, el campo queda en blanco.Txt347ExportTestyModTestpasan en PHP 8.1–8.5 con MySQL y PostgreSQL.FacturasTestfalla también enmastercon el core actual (cant create table recibospagoscli in transaction); no lo causa esta PR.🤖 Generated with Claude Code