Releases: phpcfdi/sat-catalogos-populate
Version 2.5.3
The catalog CCE - Fracciones arancelarias is composed of 3 different catalogs:
- Catálogo vigente hasta el 27 de diciembre de 2020.
- Catálogo vigente del 28 de diciembre de 2020 al 11 de diciembre de 2022.
- Catálogo vigente a partir del 12 de diciembre de 2022.
This update create the catalog cce_fracciones_arancelarias
by inserting or replacing the catalogs one after another.
Using this method, if an harmonized tariff schedule is found, it will override the previous record.
Other minor changes:
- Update dependencies, install
libreoffice-calc-nogui
andlibreoffice-java-common
.
Version 2.5.2
Fix text to locate the link for CCE - Fracciones arancelarias 2021.
Version 2.5.1
Fix how to find how many first equal lines are between two CSV files.
In Catálogos de CFDI 4.0 published at 2022-11-18 was found that the headers on files c_CodigoPostal_Parte_1
and c_CodigoPostal_Parte_2
were different because of empty cells at the end.
This fix include a better test and fix the issue by changing how csv lines are normalized.
Normalization: explode values, trim values, remove empty values at end, and implode values back.
Version 2.5.0
- Fix PHPStan issue:
str_getcsv
can returnarray<scalar|null>
. - Update signature for
SeekableIterator::seek
. UrlResponse
can have aStringable|string
body property.- Move logic to create a UrlResponse from a PSR Response
- Bump to PHP 8.1.
- Add badge for PHP 8.1.
- Remove badge for downloads.
- Upgrade development tools.
- Update GH workflow:
- Add PHP 8.2 to test matrix.
- Update GH actions to 8.1.
- Remove composer requierement when not needed.
- Fix composer script
dev:coverage
. - Implement development tool
composer-normalize
.
Version 2.4.2
- Fix Carta Porte 2.0 injector ProductosServicios headers.
- Update sample files for Carta Porte 2.0.
- Minimal improvements to PHP 8.0 features and strict types.
Version 2.4.1
- Fix origin
CCE - Fracciones arancelarias 2021
, the link contains extra characters now. - CI: run
apt-get update
before install other packages.
Version 2.4.0
Add CCP (Complemento de Carta Porte) 2.0 catalogs.
- Add Origin as a constant source, saving the file as
CatalogosCartaPorte20.xls
. - Add Source importer from
CatalogosCartaPorte20.xls
. It includes 25 catalogs. - Importers create tables with prefix
ccp_20_*
. - Update
docs/Catalogos.md
with CCP 2.0 catalogs. - Refactor export XLST to CSV, rename all exported files to remove spaces from name.
Thanks @G4g0 !!!
Version 2.3.0
Add CFDI 4.0 catalogs.
- Add Origin as a scrap from SAT website, saving the file as
cfdi_40.xsl
. - Add Source importer from
cfdi_40.xsl
. It includes 25 catalogs. - Importers create tables with prefix
cfdi_40_*
. - Update
docs/Catalogos.md
with CFDI 4.0 catalogs. - Refactor how to know what lines to skip when join two CVS files.
Version 2.2.1
Include Nóminas - Estados
origin to dump-origins
command.
Version 2.2.0
Allow scrap link text use wildcards as in fnmatch
.
Fix build because now catNomina.xls
does not contain Catálogo de estados.
Uses C_Estado.xls
from Complemento de comercio exterior to build nomina_estados
.
This is confirmed by XSD contents.
Update docs/Catalogos.md
, add missing nomina_*
tables.
Improve development environment:
- Update development tools.
- CI run
phpcs
on files set by config file. - Update
php-cs-fixer
config file. - Update
rector/rector
from development dependencies.